# Raspberry Pi 4 "Could not establish connection to the Collabora Online server" but Nginx seems to be configured correctly

**URL:** <https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202>\
**Category:** Installation & Configuration\
**Tags:** english-en\
**Created:** [February 17, 2021, 2:05pm UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202 "2021-02-17T14:05:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![csolisr](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@csolisr](https://forum.collaboraonline.com/u/csolisr)\
**Post date:** [February 17, 2021, 2:05pm UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/1 "2021-02-17T14:05:57Z")

</div>

I have Nextcloud installed on a Raspberry Pi 4, via [YunoHost](https://www.yunohost.org), 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](https://www.collaboraoffice.com/online/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!

```auto
  location ~ ^/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) {
    fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
    set $path_info $fastcgi_path_info;
    try_files $fastcgi_script_name =404;
    include fastcgi_params;

    fastcgi_param SCRIPT_FILENAME $request_filename;
    fastcgi_param PATH_INFO $path_info;
    fastcgi_param HTTPS on;
    # Avoid sending the security headers twice
    fastcgi_param modHeadersAvailable true;
    # Enable pretty urls
    fastcgi_param front_controller_active true;
    fastcgi_pass unix:/var/run/php/php7.3-fpm-nextcloud.sock;
    fastcgi_intercept_errors on;
    fastcgi_request_buffering off;
  }

```

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)

---

<div class="post-metadata">

**Author:** ![DaniJohni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danijohni/32/242_2.png) [@DaniJohni](https://forum.collaboraonline.com/u/DaniJohni)\
**Post date:** [October 14, 2021, 6:34pm UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/2 "2021-10-14T18:34:22Z")

</div>

Hey,  
Did you figure anything out regarding this, I have the same problem as you.

---

<div class="post-metadata">

**Author:** ![csolisr](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@csolisr](https://forum.collaboraonline.com/u/csolisr)\
**Post date:** [October 14, 2021, 7:51pm UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/3 "2021-10-14T19:51:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DaniJohni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danijohni/32/242_2.png) [@DaniJohni](https://forum.collaboraonline.com/u/DaniJohni)\
**Post date:** [October 15, 2021, 8:45am UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/4 "2021-10-15T08:45:31Z")

</div>

Sorry, this is probably a stupid question, but where can I find that NGINX config file? I saw here:

> <https://github.com/nextcloud/documentation/blob/1f7dd0bb814045d37ff38fbb1217274695c79cae/admin_manual/installation/nginx.rst>

it says something about /var/www/nextcloud, but I couldn’t find a config file that looks anything close to what is given there.

---

<div class="post-metadata">

**Author:** ![DaniJohni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danijohni/32/242_2.png) [@DaniJohni](https://forum.collaboraonline.com/u/DaniJohni)\
**Post date:** [October 15, 2021, 11:21am UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/5 "2021-10-15T11:21:57Z")

</div>

Okay, I found it, it was under /etc/nginx/conf.d/_yourdomain_.d/nextcloud.conf.  
I also just had to add \_arm64.  
Thanks for your help 😁.

---

<div class="post-metadata">

**Author:** ![bankmrc054](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/bankmrc054/32/271_2.png) [@bankmrc054](https://forum.collaboraonline.com/u/bankmrc054)\
**Post date:** [November 29, 2021, 4:54pm UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/6 "2021-11-29T16:54:21Z")

</div>

Please help!  
Where you put \_arm64 to?  
/etc/nginx/conf.d/\*.conf  
or /etc/nginx/nginx.conf

Thank you very much!

---

<div class="post-metadata">

**Author:** ![csolisr](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@csolisr](https://forum.collaboraonline.com/u/csolisr)\
**Post date:** [November 29, 2021, 5:29pm UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/7 "2021-11-29T17:29:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bankmrc054](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/bankmrc054/32/271_2.png) [@bankmrc054](https://forum.collaboraonline.com/u/bankmrc054)\
**Post date:** [November 30, 2021, 6:40am UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/8 "2021-11-30T06:40:06Z")

</div>

Thank you very much, but still showing the link attached below.  
[LINK](https://www.collaboraoffice.com/online/connecting-collabora-online-built-in-code-server-with-nginx/)

---

<div class="post-metadata">

**Author:** ![cyberb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/cyberb/32/2153_2.png) [@cyberb](https://forum.collaboraonline.com/u/cyberb)\
**Post date:** [April 13, 2026, 6:23am UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/9 "2026-04-13T06:23:35Z")

</div>

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](http://github.com/syncloud/platform) ) 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

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [April 20, 2026, 7:06am UTC](https://forum.collaboraonline.com/t/raspberry-pi-4-could-not-establish-connection-to-the-collabora-online-server-but-nginx-seems-to-be-configured-correctly/202/10 "2026-04-20T07:06:25Z")

</div>


