A few days ago I installed Nextcloud snap on Ubuntu Server 20.04.2 LTS and Collabora Online + Built-In CODE Server was working perfectly. Ports 80 and 443 forwarded to the server, with a registered domain name and LetsEncrypt certificate. Running a split DNS setup and working from the LAN and the internet very nicely.
Today after rebooting Collabora times out and gives the error āFailed to load Collabora Online - please try again laterā. So I tried disabling/reenabling Collabora Online and Built-In CODE Server, no luck. Tried removing & re-downloading both, still no luck. After spinning my wheels I removed the snap and installed a new one, no luck.
In admin > Settings > Administration> Collabora Online there is a green checkmark next to āCollabora Online server is reachableā however if I click the radio button next to āUse the built-in CODE - Collaborata Online Development Editionā the checkmark changes to a red circle with a X in it and the message becomes āCould not establish connection to the Collabora Online server.ā Oddly, refreshing the page resets it to the green checkmark. This all seems like a clue to me but I have no idea what to make of it.
/var/snap/nextcloud/current/logs/nextcloud.log has a number of entries that look like this:
{"reqId":"AoKHQ76vnhWFVrEUleZG","level":3,"time":"2021-03-20T19:25:53+00:00","remoteAddr":"192.168.xx.xx","user":"admin","app":"richdocuments","method":"GET","url":"/index.php/apps/richdocuments/index?fileId=11&requesttoken=kzmPMdvKp1svfUWxgliH6eznSMsoAmKUVdMfhgx0AIQ%3D%3A20rXdZym1g1OMjOJ1iHTu7mvLLJyQCPEO5hz%2FEhHQbw%3D","message":{"Exception":"Exception","Message":"Could not find urlsrc in WOPI","Code":0,"Trace":[{"file":"/var/snap/nextcloud/26881/nextcloud/extra-apps/richdocuments/lib/TokenManager.php","line":217,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},{"file":"/var/snap/nextcloud/26881/nextcloud/extra-apps/richdocuments/lib/Controller/DocumentController.php","line":256,"function":"getToken","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/26881/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"index","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":["*** sensitive parameter replaced ***",null]},{"file":"/snap/nextcloud/26881/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\DocumentController"},"index"]},{"file":"/snap/nextcloud/26881/htdocs/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\DocumentController"},"index"]},{"file":"/snap/nextcloud/26881/htdocs/lib/private/Route/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"richdocuments.document.index"}]},{"file":"/snap/nextcloud/26881/htdocs/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/index"]},{"file":"/snap/nextcloud/26881/htdocs/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/snap/nextcloud/26881/nextcloud/extra-apps/richdocuments/lib/WOPI/Parser.php","Line":54,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36 OPR/74.0.3911.218","version":"20.0.8.1"}
āCould not find urlsrc in WOPIā seems interesting but again I have no clue where to go from here.
Any thoughts on troubleshooting this problem would be tremendously appreciated.