I was running NC11 for some time and upgraded to 12 and now Collabora CODE is borked. All I get now are gray screens where the document should be.
The exact error I get in Chrome is:
WebSocket connection to TOKEN FILE failed: Error during WebSocket handshake: Unexpected response code: 404
initialize @ bundle.js:760
In firefox I get:
Firefox can’t establish a connection to the server at wss://TOKEN FILE
So I presume I now have a configuration error of some sort. Any tips on where to look? I read thru other posts and am kinda lost as where my issue could be.
Specifics:
Running on Amazon Lightsail with the Amazon Linux
Have NC and Collabora on same instance.
Setup Apache and the reverse proxy
Certs thru LetsEncrypt (and a valid cert, renewed it to make sure)
Did reboot after doing some system updates to see if that could be the case.
Tried hosting the container on an alt domain, getting an internal server error, with NC’s log showing:
Client error response [url] https://DOMIAN.com/hosting/discovery [status code] 404 [reason phrase] Not Found
Same host docker logs output shows:
[ websrv_poll ] WRN WOPI host did not pass optional access_token_ttl| wsd/FileServer.cpp:365
So :
1- reboot your collabora container,
2- wait 10 seconds
3- with the docker log command view in realtime the collaboralog, in the same time open a file on nextcloud who will open collabora.
The comland is docker log container_id
Or docker logs container_id
With the error code you can troubleshoot more easyly your problem.
Do us a copy/paste of them please.
Two things for me, i hope someone else can help you more :
1 - there is no SSL service for your Collabora server, i always use one but it’s not making the host working down
2- You don’t have several warnings when you try to open a document,
for my part i get some WRN : missing this module etc…
when i got trouble with collabora i got some : WRN (in red) with something like bad SSL Cert or bad communication…
You don’t have this kind of things, except : WOPI HOST DID NOT PASS OPTIONAL access_token_ttl
How do you work with your collabora server, is it on the same server than your nextcloud ? do you use a reverse proxy for getting access to it… can you give us more of your configuration ?
Please use the collabora url with port number if you define a particular port for collabora and nextcloud configuration file.
E.g- https://www.example.com:7008 and save