I recently upgraded my Nextcloud instance to 28.0.1. Since, I don¨t get the green mark anymore in Admin → Overview, but instead warnings about log messages.
Specifically regarding Collabora. I get a few of these every day:
[richdocuments] Error: Failed to fetch the Collabora capabilities endpoint: cURL error 6: Could not resolve host: office.example.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://office.example.com/hosting/capabilities
from ? by -- at 16 jan. 2024 07:35:08
However, https://office.example.com/hosting/capabilities seems to return an XML page:
{"convert-to":{"available":true,"endpoint":"/cool/convert-to"},"hasMobileSupport":true,"hasProxyPrefix":false,"hasTemplateSaveAs":false,"hasTemplateSource":true,"hasZoteroSupport":true,"productName":"Collabora Online Development Edition","productVersion":"23.05.6.4","productVersionHash":"aff0ccf","serverId":"4ff64844"}
And using Collabora for viewing / editing documents works fine. Does anyone know why these errors occur, and if anything can be done to get rid of them?
Can you resolve the hostname from the Nextcloud Server itself? Not knowing your installation method we can’t be more specific than that. If Docker, test from inside container not the underlying host.
I have now moved my Nextcloud server to run in a docker container. My collabora runs as a separate docker container, I am not using the built-in CODE server.
I still get these error, and a lot of them.
if you get similar output it should be OK… if you in fact get some XML output something is wrong… the only problem could be initial failure. This could result from slow DNS response - check if this repeats e.g. if you run the command an hour later - after this time cached DNS result should clear and your test is valid again.
so now once all your checks are susessful I would test again (maybe you need to restart NC after significant changes or run occ richdocuments:activate-config)
Restarted Nextcloud (and Collabora) and tested again today. The curl commands get the expected results. In both directions (NC → C & C → NC). But I still get these errors. Got new ones today. Anything else I could check? Anywhere else I should be looking?