Connection to Collabora lost after a few minutes, various error messages

Running Nextcloud 22.2.3 and Collabora CODE on docker.

Every time I load and edit a file, everything works fine for a few minutes, and then suddenly I can’t save anymore with the error message: “Document cannot be saved. Check your permissions or contact the storage server administrator.”

I would maybe suspect permission issues, but what’s weird is that things always work perfectly for the first few minutes.

Checking the logs of the container in Portainer, I see the following:

[ docbroker_002] ERR Unexpected response to WOPI::PutFile. Cannot upload file to WOPI storage uri [https://nextcloud.example.tld/index.php/apps/richdocuments/wopi/files/21466915_oczct4w6owiu?access_token=XXX&access_token_ttl=0]: 500 Internal Server Error: []| wsd/Storage.cpp:1475

[ docbroker_002] ERR Failed to upload docKey [/index.php/apps/richdocuments/wopi/files/21466915_oczct4w6owiu] to URI [https://nextcloud.example.tld/index.php/apps/richdocuments/wopi/files/21466915_oczct4w6owiu?access_token=XXX&access_token_ttl=0]. Notifying client.| wsd/DocumentBroker.cpp:1605

Any help or pointers would be very appreciated. I’ve spent quite some time setting this entire system up and this seems like (hopefully) the last roadblock before Nextcloud/Collabora can become a production system

Thanks @collahund for reporting it. And in your experience, does that happen while multiple users or sessions are editing the same file or also when one single instance is editing the file? (just trying to understand if it has anything to do with document overwrite)

Thanks for getting back to me!

It’s just one session, one single instance editing the file. I haven’t rolled out access yet to others, because of this issue.