Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
retiolus opened this issue Oct 25, 2022 · 3 comments
Open

Comments

@retiolus
Copy link

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

@Kage0x3B
Copy link

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"

@lfom
Copy link

lfom commented Apr 21, 2023

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

@djibux
Copy link

djibux commented Jun 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants