Hello all,
NextCloud v30.04, AIO installation, Docker
When accessing the page:
https://[ourserverpublicname]/settings/admin/richdocuments we see the following:
"Could not establish connection to the Collabora Online server
Failed to connect to the remote server: cURL error 28: Connection timed out after 5002 milliseconds (see libcurl - Error Codes) for https://[ourserverpublicname]/hosting/discovery"
The installation is behind a NAT firewall on an isolated DMZ, hairpin nat used for internal LAN users to access the system via [ourserverpublicname] and inbound external users are also routed to [ourserverpublicname], a public DNS name resolving to the external NAT IP of the server.
Port 9980 is not published from the nextcloud-aio-collabora container to the bridge network - the only containers publishing any ports at a container level are apache and nextcloud.
When we configure the Collabora server to http://nextcloud-aio-collabora:9980 in the NextCloud office admin settings (using the container name and collaborate port) we get the following:
Collabora Online server is reachable.
Collabora Online Development Edition 24.04.10.2 a…
URL used by the browser: https://[ourserverpublicname]
Nextcloud URL used by Collabora: https://[ourserverpublicname]
(Determined from the browser URL)
We can then see the WOPI allow list which includes our external server IP address mapped to [ourserverpublicname].
With this configuration if a user goes to edit a file, like a sample .ODT file, we get “Document loading failed…Failed to load Nextcloud Office - please try again later”. Users cannot access NextCloud office.
The containers can all resolve the [ourserverpublicname] to the external IP of the installation. We can see that port 9980 is running on the collabora container and that the containers can communicate with each other on the bridge network (tested using curl, ps exec).
We see the following in the collabora logs:
2024-12-31T20:44:06.112546061Z wsd-00007-00029 2024-12-31 20:44:06.112415 +0000 [ websrv_poll ]
ERR #22: WOPI::CheckFileInfo failed for URI [https://[ourserverpublicname]/index.php/apps/richdocuments/wopi/files/[fileid]?access_token=xyz&access_token_ttl=0]: 0 (Unknown) . Headers: Body: | wsd/wopi/CheckFileInfo.cpp:98
2024-12-31T20:44:06.112550360Z wsd-00007-00029 2024-12-31 20:44:06.112429 +0000 [ websrv_poll ]
ERR #22: Invalid URI or access denied to [https://[ourserverpublicname]/index.php/apps/richdocuments/wopi/files/[fileid]?access_token=xyz&access_token_ttl=0]| wsd/wopi/CheckFileInfo.cpp:116
When we restart the containers the NextCloud Office configuration reverts to https://[ourserverpublicname] and the “Could not establish connection to the Collabora Online server…Failed to connect to the remote server: cURL error 28: Connection timed out after 5001 millisecond” error message returns.
It appears that collabora favors https://[ourserverpublicname] but there is nothing, other than an integration with NextCloud and Collabora at the back end, that would provide access via this URL.
This is a relatively straight forward setup with all of the AIO defaults running on Docker, running on Linux. There are no local Linux issues with DNS resolution and our host file has only localhost with no other entries, not even the local server name.
Any assistance appreciated.