I am running Nextcloud Hub 7 28.0.1 on a KVM server. Nextcloud is working fine, but I can’t get Nextcloud Office to work. I’ve installed the Built-In CODE app (don’t want to install my own Collabora server just yet), then the Nexcloud Office app. I get the following error:
ConnectException cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received
Sometimes I am also getting this error:
Failed to fetch the Collabora capabilities endpoint: ClientException Client error: GET (link)/apps/richdocumentscode/proxy.php?req=/hosting/capabilities resulted in a 404 Not Found
I read on a thread titled “Collabra online not able to connect to nextcloud server](Collabra online not able to connect to nextcloud server)” (sorry, can’t post more than 4 links as a new member) that it might be a DNS issue. I also found the following advice in nextcloud admin_manual/office/troubleshooting: “Make sure that the Nextcloud instance is able to reach itself using the same hostname that is used to access through the browser. You might want to add your Nextcloud domain to /etc/hosts to ensure the connectivity if DNS resolution doesn’t work for this: "
My question is: How do I make sure that NC is ‘able to reach itself’?
I did also try to edit my etc/hosts file. According to the thread above, it says to remove 127.0.0.1, but the website says to ADD it! Which is it?
The error shows DNS resolution fails for whatever reason. your “regular” DNS resolution fails to resolve the public fqdn of the server you need to add the FQDN+IP to /etc/hosts. the hosts file you posted looks good IMHO but the question is if your cloud is using this hosts file (or another one if this is a VM/container). As your system architecture is still unclear for me I can’t recommend you how to solve the issue.
basic troubleshooting would be to run curl https://<cloud.domain>/apps/richdocumentscode/proxy.php?req=/hosting/capabilities from the Nextcloud host/container/VM this is the step how Nextcloud learn the capabilities of the office server.