Can't open files with collabora

Hey everyone,

sorry if this is a duplicate or not the right place, but I have been scraping the net for hours and nothing i found is working.

Here is my setup:
ubuntu (20.04 server)
nginx (v 1.18.0)
nextcloud (v 21.0.5.1)

two domains (nextcloud.mydomain.eu, office.mydomain.eu) both using a certificate (also verifiying those subdomains) generated with certbot.

Collabora is in docker container installed with this command:

https://nextcloud.com/collaboraonline/

docker run -t -d -p 127.0.0.1:9980:9980 -e "domain=nextcloud\\.mydomain\\.eu" --restart always --cap-add MKNOD collabora/code:6.4.10.10

and nginx reverse proxy configured as recommended here:

https://icewind.nl/entry/collabora-online/

Installation went well and in the CODE settings in nextcloud admin panel it is seen as reachable. :white_check_mark:

Unfortunately when I try to open a document collabora it shows the message: “Well, this is embarrassing, we cannot connect to your document. Please try again.”

The nginx server log shows no error.

In the troubleshooting section of the installation guide there was mentioned that if you have problems opening the documents try to look for WOPI errors in the docker log.

So I ran

docker logs 5c4c1e6084cc | grep WOPI

output is:

wsd-00008-00008 2021-10-26 18:55:18.510477 [ loolwsd ] INF Adding trusted WOPI host: [nextcloud.mydomain.eu].| wsd/Storage.cpp:110
wsd-00008-00008 2021-10-26 18:55:18.510545 [ loolwsd ] INF Adding trusted WOPI host: [10.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage.cpp:110
wsd-00008-00008 2021-10-26 18:55:18.510570 [ loolwsd ] INF Adding trusted WOPI host: [172.1[6789].[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage.cpp:110
wsd-00008-00008 2021-10-26 18:55:18.510580 [ loolwsd ] INF Adding trusted WOPI host: [172.2[0-9].[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage.cpp:110
wsd-00008-00008 2021-10-26 18:55:18.510587 [ loolwsd ] INF Adding trusted WOPI host: [172.3[01].[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage.cpp:110
wsd-00008-00008 2021-10-26 18:55:18.510595 [ loolwsd ] INF Adding trusted WOPI host: [192.168.[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage.cpp:110
wsd-00008-00008 2021-10-26 18:55:18.510615 [ loolwsd ] INF Adding blocked WOPI host: [192.168.1.1].| wsd/Storage.cpp:115
wsd-00008-00043 2021-10-26 18:56:30.837035 [ docbroker_001 ] ERR WOPI::CheckFileInfo failed for URI [https://nextcloud. mydomain.eu/index.php/apps/richdocuments/wopi/files/622_oc9zao1nk4hx?access_token=yPJWIkagSPfB15ElZBezoft7ZtNMFXkd&access_token_ttl=0&permission=edit]: 0 . Headers: Body: | wsd/Storage.cpp:703
wsd-00008-00043 2021-10-26 18:56:30.837324 [ docbroker_001 ] ERR loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1917
wsd-00008-00043 2021-10-26 18:56:30.837360 [ docbroker_001 ] ERR Failed to add session to [/index.php/apps/richdocuments/wopi/files/622_oc9zao1nk4hx] with URI [https://nextcloud. mydomain.eu/index.php/apps/richdocuments/wopi/files/622_oc9zao1nk4hx?access_token=yPJWIkagSPfB15ElZBezoft7ZtNMFXkd&access_token_ttl=0&permission=edit]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1879
wsd-00008-00043 2021-10-26 18:56:30.837393 [ docbroker_001 ] ERR Storage error while starting session on /index.php/apps/richdocuments/wopi/files/622_oc9zao1nk4hx for socket #26. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/LOOLWSD.cpp:3595

So I don’t know what exactly is the problem. Hence I can’t search very effectively. Can someone help me understand what went wrong? I can guess what ChckFileInfo does, but why does it fail?

Kind regards
Orys

[update]
Got Collabora running without docker using this guide: https://www.linuxbabe.com/ubuntu/integrate-collabora-onlinenextcloud-without-docker
But I still don’t know why collabora inside the docker was not allowed to read the files. If anyone has an idea let me know. :slight_smile:

Hi there!

Some time ago, I was facing a similar error and I got it running again using –network host instead of -p 127.0.0.1:9980:9980. I still don’t know why my install suddenly stops working (it was a working installation), but that saves my day. I found the solution here:

Hope this helps you.

P.D. the command is with 2 -, I don`t konw why in the post appears only with 1 - . It is --network host

Thanks, maybe I will try it in the future. It’s of course more easy using docker.