The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Nextcloud App Version: v31.0.8; Version v2.0.21
- Collabora v25.04.4.3.1
- Operating system and version (e.g., Ubuntu 24.04):
- TrueNAS Scale 25.04.2.1
- Web server and version (e.g, Apache 2.4.25):
- don’t know
- Reverse proxy and version _(e.g. nginx 1.27.2)
- Nginx Proxy Manager v2.12.6
- PHP version (e.g, 8.3):
- don’t know
- Is this the first time you’ve seen this error? (Yes / No):
- Yes
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- TrueNAS SCALE on bare metal. Collabora and Nextcloud installed as Apps.
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- Cloudflare, yes.
Summary of the issue you are facing:
I am not able to open documents on NextCloud, and instead am greeted by this message:
In the troubleshooting guide from Collabora integration guide, the step that fails is access to Nextcloud UI from Collabora. The log results are below.
Given that I installed Nextcloud and Collabora as regular apps on TrueNAS SCALE, many of the more advanced edits to configuration files are out of reach, and above my skill level.
Steps to replicate it (hint: details matter!):
-
I have Nextcloud and Collabora servers up and running on TrueNAS SCALE. I attempted configuration based on the following:
The “disable certificate verification” is now unchecked, unlike this image. -
I created a new document called “test_collabora.odt” and another .docx. Opening either from Nextcloud produces the same error message re: Unauthorized WOPI Host, as shown above.
-
https://collabora.mydomain.tld/hosting/discovery produces an XML file. https://collabora.mydomain.tld resolves to a blank page with “OK”. nextcloud.mydomain.tld resolves to my nextcloud instance.
-
I removed “OVERWRITECLI” parameter in Nextcloud app “edit” settings, and also removed specified host name, as noted in another post, but this did not resolve my problem.
-
I put “0.0.0.0/0” in authorized WOPI list to troubleshoot, but this did not resolve my problem.
-
I troubleshot the issue using this guide
A. from client: curl to nextcloud fine.
B. from client: curl to collabora/hosting/discovery fine
C. from nextcloud shell: curl to collabora/hosting/discovery is fine.
D. from collabora shell: curl to nextcloud subdomian ERROR MESSAGE:
curl: (7) Failed to connect to cloud.mydomain.tld port 443 after 1 ms: cold not connect to server
I then reran the curl with the port number for Nextcloud, which was not 443 but a different port number managed by TrueNAS SCALE (an update to the guide perhaps could specify this additional troubleshooting step).
The output when I ran "curl https://cloud.mydomain.tld:port/ was as follows:
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.
However, both subdomains were issued a wildcard SSL by Let’s Encrypt in NPM, and so I do not understand why this is an issue, or how to resolve it.
E. richdocuments already enabled in Nextcloud.
Log entries
$ curl -vvv https://cloud.mydomain.tld
19:20:13.224536 [0-x] == Info: [READ] client_reset, clear readers
19:20:13.225528 [0-0] == Info: Host cloud.mydomain.tld:443 was resolved.
19:20:13.225557 [0-0] == Info: IPv6: (none)
19:20:13.225572 [0-0] == Info: IPv4: 192.168.1.3
19:20:13.225595 [0-0] == Info: [HTTPS-CONNECT] adding wanted h2
19:20:13.225631 [0-0] == Info: [HTTPS-CONNECT] added
19:20:13.225671 [0-0] == Info: [HTTPS-CONNECT] connect, init
19:20:13.225716 [0-0] == Info: Trying 192.168.1.3:443...
19:20:13.225770 [0-0] == Info: [HTTPS-CONNECT] connect -> 0, done=0
19:20:13.225794 [0-0] == Info: [HTTPS-CONNECT] Curl_conn_connect(block=0) -> 0, done=0
19:20:13.225825 [0-0] == Info: [HTTPS-CONNECT] adjust_pollset -> 1 socks
19:20:13.225898 [0-0] == Info: connect to 192.168.1.3 port 443 from [obscured] port 54186 failed: Connection refused
19:20:13.225987 [0-0] == Info: Failed to connect to cloud.mydomain.tld port 443 after 1 ms: Could not connect to server
19:20:13.226081 [0-0] == Info: [HTTPS-CONNECT] connect, all attempts failed
19:20:13.226141 [0-0] == Info: [HTTPS-CONNECT] connect -> 7, done=0
19:20:13.226203 [0-0] == Info: [HTTPS-CONNECT] Curl_conn_connect(block=0) -> 7, done=0
19:20:13.226277 [0-0] == Info: [HTTPS-CONNECT] Curl_conn_connect(), filter returned 7
19:20:13.226357 [0-0] == Info: [WRITE] [OUT] done
19:20:13.226402 [0-0] == Info: closing connection #0
curl: (7) Failed to connect to cloud.mydomain.tld port 443 after 1 ms: Could not connect to server
LOG AFTER CORRECTING THE COLLABORA SHELL CURL COMMAND TO INCLUDE THE NEXTCLOUD PORT NUMBER:
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.

