I have Nextcloud installed on a Raspberry Pi 4, via YunoHost, and then I installed the corresponding ARM64 version of the CODE server (richdocumentscode_arm64). When attempting to make CODE run, however, I’m shown the following notice:
Could not establish connection to the Collabora Online server. This might be due to a missing configuration of your web server. For more information, please visit: Connecting Collabora Online Single Click with Nginx
I followed the link, and it asks to edit the Nginx file to have the server correctly point to the CODE path - the problem is, YunoHost is apparently configured to do it already!
Is there anything else I’m supposed to modify here, or elsewhere? Is the fact that I installed richdocumentscode_arm64 instead of the normal richdocumentscode relevant to this case? (I already attempted to manually change the regex above to add the _arm64 instead, but to no avail)
IIRC, the problem was solved on the YunoHost-managed version of Nextcloud and yes, the fix was more or less adding the _arm64 on the corresponding Nginx config file.
If I recall correctly, that line was on the main /etc/nginx/nginx.conf file. If you don’t find it there, try searching for it on the /etc/nginx/conf.d/ folder
the “could not establish connection” error with collabora on rpi4 is almost always a reverse proxy issue. the tricky part is that collabora uses websockets heavily and a lot of nginx configs dont pass those through properly.
make sure your nginx config has these for the collabora location block:
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection “Upgrade”;
also check that the allowlist in collabora includes your nextcloud domain - if collabora doesnt recognize where the request is coming from it just drops the connection silently.
another common gotcha on rpi4 is that collabora code needs the ARM64 image specifically, the default one is x86 only.
if you want to skip all the nginx/config dance, theres Syncloud ( GitHub - syncloud/platform: Run popular services on your device with one click · GitHub ) which packages nextcloud + collabora together with automatic HTTPS and no reverse proxy needed. i made it for exactly this scenario on raspberry pi. but if you want to stick with your current setup the websocket headers are probably the fix