Nextcloud can't edit document in collaboraonline

Hello.
I’m having a problem trying to edit a document from a nextcloud server.
My nextcloud server is running version v18.0.6 (I’ve just updated from v18.0.1 in case it was needed), on Centos 7, and php v7.3.8.
I’ve installed both the collabora online (v3.7.0) and Wopi (v3.5.4) apps in nextcloud.
I’m running collabora online development edition v4.2.3 in a docker container. I start it with the following command:

docker run --name collabora -t -d -p 10.210.54.71:9980:9980 -e "domain=xcloud.domain.com|nextcloud.domain.com" -e "username=admin" -e "password=some_password" --restart always --cap-add MKNOD collabora/code

When I try to edit some document, I get the following error:

Failed to read document from storage. Please contact your storage server (xcloud.domain.com) administrator

This is an excerpt from the docker container logs:

wsd-00006-00126 2020-06-09 18:42:54.503698 [ docbroker_00d ] ERR WOPI::CheckFileInfo failed with 403 Forbidden| wsd/Storage.cpp:585 wsd-00006-00126 2020-06-09 18:42:54.504248 [ docbroker_00d ] ERR loading document exception: WOPI::CheckFileInfo failed| wsd/DocumentBroker.cpp:1356 wsd-00006-00126 2020-06-09 18:42:54.504328 [ docbroker_00d ] ERR Failed to add session to [/owncloud/index.php/apps/richdocuments/wopi/files/2071240_ocod2c27dtnn] with URI [https://xcloud.domain.com/owncloud/index.php/apps/richdocuments/wopi/files/2071240_ocod2c27dtnn?access_token=EQxe0cvrAYEY6VaZ0Y2wJyTEZ31Eve9i&access_token_ttl=0]: WOPI::CheckFileInfo failed| wsd/DocumentBroker.cpp:1318 wsd-00006-00126 2020-06-09 18:42:54.504549 [ docbroker_00d ] ERR No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-04e| wsd/ClientSession.cpp:325 wsd-00006-00126 2020-06-09 18:42:54.504606 [ docbroker_00d ] ERR No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-04e| wsd/ClientSession.cpp:325 wsd-00006-00126 2020-06-09 18:42:54.681226 [ docbroker_00d ] ERR Invalid or unknown session [04e] to remove.| wsd/DocumentBroker.cpp:1394 warn:sal.osl:127:31:sal/osl/unx/security.cxx:442: mkdir(/opt/lool/.config): errno=2 wsd-00006-00030 2020-06-09 18:42:56.505861 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:1938

That 403 error in the first line annoys me…
In the nextcloud server logs I can find the following:

{"reqId":"Xt-YLq2Owdc2MhGnC7-wmwAAABE","level":3,"time":"2020-06-09T18:42:54+00:00","remoteAddr":"10.210.54.70","user":"--","app":"richdocuments","method":"GET","url":"/owncloud/index.php/apps/richdocuments/wopi/files/2071240_ocod2c27dtnn?access_token=EQxe0cvrAYEY6VaZ0Y2wJyTEZ31Eve9i&access_token_ttl=0","message":{"Exception":"BadFunctionCallException","Message":"path is not a valid attribute","Code":0,"Trace":[{"file":"/var/www/html/owncloud/lib/public/AppFramework/Db/Entity.php","line":149,"function":"setter","class":"OCP\\AppFramework\\Db\\Entity","type":"->","args":["path",[""]]},{"file":"/var/www/html/owncloud/lib/public/AppFramework/Db/Entity.php","line":75,"function":"__call","class":"OCP\\AppFramework\\Db\\Entity","type":"->","args":["setPath",[""]]},{"file":"/var/www/html/owncloud/apps/richdocuments/lib/Db/WopiMapper.php","line":131,"function":"fromRow","class":"OCP\\AppFramework\\Db\\Entity","type":"::","args":[{"id":"2673","owner_uid":"gcediel","editor_uid":"gcediel","fileid":"2071240","version":"0","path":"","canwrite":"1","server_host":"https://xcloud.domain.com/owncloud/","token":"EQxe0cvrAYEY6VaZ0Y2wJyTEZ31Eve9i","expiry":"1591729973","share":null,"template_destination":"0","hide_download":"0","direct":"0","is_remote_token":"0","template_id":"0"}]},{"file":"/var/www/html/owncloud/apps/richdocuments/lib/Controller/WopiController.php","line":139,"function":"getWopiForToken","class":"OCA\\Richdocuments\\Db\\WopiMapper","type":"->","args":["EQxe0cvrAYEY6VaZ0Y2wJyTEZ31Eve9i"]},{"file":"/var/www/html/owncloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"checkFileInfo","class":"OCA\\Richdocuments\\Controller\\WopiController","type":"->","args":["2071240","EQxe0cvrAYEY6VaZ0Y2wJyTEZ31Eve9i"]},{"file":"/var/www/html/owncloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"checkFileInfo"]},{"file":"/var/www/html/owncloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"checkFileInfo"]},{"file":"/var/www/html/owncloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\WopiController","checkFileInfo",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"fileId":"2071240_ocod2c27dtnn","_route":"richdocuments.wopi.checkFileInfo"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"fileId":"2071240_ocod2c27dtnn","_route":"richdocuments.wopi.checkFileInfo"}]},{"file":"/var/www/html/owncloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"fileId":"2071240_ocod2c27dtnn","_route":"richdocuments.wopi.checkFileInfo"}]},{"file":"/var/www/html/owncloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/wopi/files/2071240_ocod2c27dtnn"]},{"file":"/var/www/html/owncloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/owncloud/lib/public/AppFramework/Db/Entity.php","Line":120,"CustomMessage":"--"},"userAgent":"LOOLWSD WOPI Agent 4.2.3","version":"18.0.6.0"}

However, the interesting thing is that from another nextcloud instance (running v13.0.2), EVERYTHING WORKS, so it seems that it’s exclusively a problem with the nextcloud v18.0.6 instance. There are no firewall or routing issues involved, and no 403 errors shown in the docker container logs when the nextcloud v13.0.2 is connected to collabora.
Something weird I also see is that, from the web gui, the icons for the office documents are blank (not showing the libreoffice documents).

Any suggestions?

Thanks for your attention.

Strange that you has been able to update to 18.0.6 with document server enabled, what version did you come from? Document server not working on 18.0.5 and 18.0.6 is a issue several people have already reported the last two days

I upgraded from 18.0.3, but with the same issues.

If you have important dependency on document editing, i suggest to roll back to 18.0.3 and wait for those update issues with document server to be solved with probably 18.0.7 or an update to document server app. It is definitely defect and i am sure the DEV team is already doing their best to fix it.

Hello. I have tried onlyoffice with the embedded document server and it’s working. Also, it seems better than collabora, so I think I’ll keep onlyoffice.
Thanks for your attention.

I have NC 18.06 installed and using CollaboraCode installed within docker. This might be different than collaboraonline however. The docker version works.

I have the same issue. NC 19.0.1
Some time after NC upgrade I noticed collabora got broken

Same issue on NC 19.0.6 with native CODE packages installed on Debian 10. On testing environment also, but didn’t notice before installing on production. Other instance on 18.0.10 works great on same CODE server. So I’m not going to update another instance until we will find solution. Did someone find how to solve this? Thanks!

Still the same issue with this server. Today I have upgraded it to NC 20.0.7 (from 18.0.3), and with the same problem, and also with the intermediate version (NC 19.0.x). I’ve also updated collabora to the last container version. Considering that collabora is working from another NC server, I suppose that it’s something related to this NC instance.
Any suggestions about what to look for?
Thanks for your attention.

Just upgraded richdocuments (Collabora Online) app to 3.7.14 and it started to work. Without any changes made to Collabora online server. I’m on 19.0.6. IBut before I tried to reinstall app, also to remove app and install older app (which worked before) and nothing worked. But have no clue what was the problem :frowning: