Hello,
I am experiencing issues connecting OnlyOffice and Nextcloud, both hosted in separate Docker containers on a Debian VM on Proxmox.
- When accessing via Tailscale IP and using the OnlyOffice Tailscale IP in the connector, everything functions correctly.
Below are the configurations and symptoms of the problems I am facing:
- Host: Debian VM on Proxmox
- Containers: OnlyOffice and Nextcloud running in separate Docker containers
- Network: Both the VMs are part of my Tailscale network
OnlyOffice Docker Compose Configuration:
services:
documentserver-ee:
stdin_open: true
tty: true
ports:
- 8181:80
restart: always
volumes:
- /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice
- /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data
- /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice
- /app/onlyoffice/DocumentServer/db:/var/lib/postgresql
environment:
- JWT_SECRET=secret
image: onlyoffice/documentserver-ee
Caddy Configuration on LXC (part of the tailscale network):
I have configured Caddy to handle requests for nextcloud.mydomain.com
and onlyoffice.mydomain.com
, translating them to their respective internal IPs. This functions correctly.
# Nextcloud
nextcloud.mydomain.com {
reverse_proxy http://100.xx.xx.xx:8080
import cloudflare
}
# OnlyOffice
onlyoffice.mydomain.com {
reverse_proxy http://100.xx.xx.xx:8181
import cloudflare
}
Issue Description:
- After setting up HTTPS access via
nextcloud.mydomain.com
andonlyoffice.mydomain.com
using a guide and adding a CNAME in Cloudflare DNS pointing to the FQDN of the Caddy LXC:- Using the local IP or Tailscale IP in the connector results in:
Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.0.1.31)
- Using
https://onlyoffice.mydomain.com
results in:Error when trying to connect (cURL error 6: Could not resolve host: onlyoffice.mydomain.com) for https://onlyoffice.mydomain.com/healthcheck
- Using the local IP or Tailscale IP in the connector results in:
Additional Logs:
- The
out.log
of the converter shows:[2024-04-14T06:45:19.532] [ERROR] [localhost] [conv_check_1935636965_docx] [userId] nodeJS - dnsLookup error: hostname = nextcloud.mydomain.com Error: getaddrinfo ENOTFOUND nextcloud.mydomain.com
- Network diagnostics within the OnlyOffice Docker container show that
dig
resolvesnextcloud.mydomain.com
to the correct FQDN, butping
fails to recognize the name.
Attempts to Resolve:
- Explicitly added Cloudflare’s DNS to the Docker compose.
- Tried using
network_mode: "host"
, both to no avail.
I’ve reached a point where I’m unsure how to proceed. Here are my full logs for more details: this is the zip of my log-folder
I might have missed some steps, especially regarding the transition to HTTPS and using a custom domain, but I don’t have a clue atm.