Do you want to: Ask a how-to question
Document Server version: 7.2.1
Type of installation of the Document Server: docker
OS: Ubuntu Linux
Browser version: Firefox 107.0 (64 bit)
I have an existing server with Traefik and applications running behind Traefik.
Traefik does the TLS work (has certificate configured with Lets Encrypt).
There are applications that can be reached through this setting, so I consider Traefik as working.
Now I want to set up a docker container running ONLYOFFICE document server, to be used from a NextCloud on a different server.
I have done it as with the other docker containers that are already working behind Traefik:
- I have defined a subdomain “office” in the DNS.
- There are labels in the docker compose file that redirect calls to office.my-cool-domain to this container (note that “my-cool-domain” is not the real domain, I only use it here in order not to write the real domain).
- The container is put to the same docker network as Traefik is.
(full docker-compose is below)
This seems to work to some point: Entering
https://office.my-cool.domain leads to
https://office.my-cool.domain/welcome/ and I see “ONLYOFFICE Docs Community Edition installed”.
I then enabled the integrated test example as documented on this page.
After this, when I use the button “GO TO TEST EXAMPLE” at the bottom of the page, the example opens.
When I click to create a new text document", such a document opens for a moment, then a dialog box informs me that ‘Download failed’ and 'Press “ok” to return to document list".
After pressing “OK”, in the list of documents there is a new document. But clicking it does notwork, it leads to the same message.
Consulting the log of the docker container, I see messages like
2022-12-04T11:50:42.050082751Z [2022-12-04T11:50:42.043] [ERROR] [localhost] [31.nnn.nn.nnn__172.18.0.2new.docx1670154607109] [uid-1] nodeJS - dnsLookup error: hostname = office.my-cool.domain Error: getaddrinfo EAI_AGAIN office.my-cool.domain 2022-12-04T11:50:42.050635872Z at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) 2022-12-04T11:50:42.051028967Z [2022-12-04T11:50:42.044] [WARN] [localhost] [31.nnn.nn.nnn__172.18.0.2new.docx1670154607109] [uid-1] nodeJS - checkIpFilter error: url = https://office.my-cool.domain/example/track?filename=new.docx&useraddress=31.nnn.nn.nnn__172.18.0.2
The IP address I have replaced with nnn.nn.nnn above is not the one from my server. (maybe it is not important, but I wonder: What address is it?)
More important: What is wrong? How can I solve this dnsLookup error?
I have consulted other posts, but they usually set up Traefik in the same docker-compose as the documentserver, but my Traefik is already existing and working. I have also seen the official document about using Traefik as proxy for documentserver, but I think it does not apply to my situation, because Traefik is not only serving document server but also other other services and is in itself working well. So I do not want to fiddle with the Traefik setup. I think it is rather in the documentserver setup where something is wrong.
My docker-compose.yml file:
services: onlyoffice: image: onlyoffice/documentserver:7.2.1 container_name: onlyoffice_traefik stdin_open: true tty: true restart: unless-stopped networks: - traefik-bridge labels: - "traefik.enable=true" - "traefik.http.routers.onlyoffice.rule=Host(`office.my-cool.domain`)" networks: traefik-bridge: external: true
I know that could/should map some folders to volumes, but I want to know first for which folders/services this makes sense in my setup. (Remember that I have NextCloud and want to connect this documentserver there, so I do not need storage etc, this is done on NextCloud).
I guess there is some setting missing in the docker-compose or somewhere - what do I have to configure where?
Thanks a lot for help or hints!