richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

504 Gateway Time-out | Collabora Online - Built-in CODE Server (ARM64)

Open retiolus opened this issue 3 years ago • 3 comments

This is now the second time I try and I find myself in the same situation, after installing the Collabora Online - Built-in CODE Server (ARM64) (I am on a Raspberry Pi with a YunoHost installation), my Nextcloud server stops working and does not respond anymore.

image

retiolus avatar Oct 25 '22 17:10 retiolus

I experienced the same problem on my self-hosted Nextcloud instance (on Ubuntu 20.04, manually installed by serving via php-fpm and nginx). Immediately after I tried installing this app, my Nextcloud instance stopped responding, only got a 504 from nginx. The nginx access logs reported ~2000 calls in a couple of minutes to this url: (redacted ip) - - [28/Oct/2022:13:58:39 +0200] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 499 0 "-" "Nextcloud Server Crawler"

Kage0x3B avatar Oct 28 '22 12:10 Kage0x3B

After a long time, I was able to finally fix this, thanks to the info from BELGERON on this page:

https://www.collaboraoffice.com/online/connecting-collabora-online-built-in-code-server-with-nginx/

When I installed NextCloud, I used the suggested reverse proxy config for nginx from the official documentation:

https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html

the line for rewrite has an entry that only works with the x86 CODE, the relevant part is:

|.+\/richdocumentscode\/proxy

so I added the extra path for the ARM64 CODE:

|.+\/richdocumentscode\/proxy|.+\/richdocumentscode_arm64\/proxy

restarted both php-fpm and nginx and the server started to respond again.

Anyway, in the case this do not work and you are stuck, normally disabling the two apps fixes this (adapt the commands to your setup):

 sudo -u www-data php occ app:disable richdocumentscode_arm64
 sudo -u www-data php occ app:disable richdocuments

Cheers

lfom avatar Apr 21 '23 03:04 lfom

@lfom thanks, indeed it works! Reloading nginx is enough once the extra path is added.

djibux avatar Jun 09 '23 18:06 djibux