# Nextcloud & Collabora CODE "Document loading failed"

**URL:** <https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546>\
**Category:** ℹ️ Support\
**Tags:** traefik, docker, app\_api, wopi, docker-compose\
**Created:** [October 26, 2026, 6:31am UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546 "2026-10-26T06:31:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hansij66](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hansij66/32/80550_2.png) [@hansij66](https://help.nextcloud.com/u/hansij66)\
**Post date:** [October 26, 2026, 6:31am UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/1 "2026-10-26T06:31:56Z")

</div>

The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - docker nextcloud:`35`

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Debian 13.7 / docker`

- Web server and version _(e.g, Apache 2.4.25)_:
  - `Apache, as part of docker nextcloud:35 image`

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `traefik 3.6.25`

- PHP version _(e.g, 8.3)_:
  - `nextcloud:35 image; `PHP 8.5.12

- Is this the first time you’ve seen this error? (Yes / No):
  - `yes, initial configuration`

- When did this problem seem to first start?
  - `from the beginning I tried to run nextcloud & collabora/CODE`

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `docker, docker-compose.yml with nextcloud and collabora service, behind traefik reverse proxy`

- Are you using CloudfIare, mod\_security, or similar? _(Yes / No)_
  - `No`

### Summary of the issue you are facing:

I have followed the [Collabora Integration Guide](https://help.nextcloud.com/t/collabora-integration-guide/151879), specifically all checks in “implementation and troubleshooting checklist” pass OK.

I have configured install richdocuments app, configure CODE server URL.

In GUI “Administration Settings” \> Administration \> Office:

> Collabora Online server is reachable.
> 
> Collabora Online Development Edition 25.04.10.3 9f059c5093
> 
> **URL used by the browser:** `https://office.mydomain`  
> **Nextcloud URL used by Collabora:** `https://nextcloud.mydomain` _(Determined from the browser URL)_

### Steps to replicate it (hint: details matter!):

1. Document.docx → … → Open Locally → Open Online

2. I get a “hour glass”

3. 

> **Document loading failed**
> 
> Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout [Making sure you're not a bot!](https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html)

### Log entries

#### Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the _Copy raw_ option from _Administration settings-\>Logging_ screen or from your `nextcloud.log` located in your data directory). Feel free to use a pastebin/gist service if necessary.

```auto
nextcloud_collabora | frk-00017-00017 2026-10-25 21:26:53.263178 +0100 [forkit] INF Forked kit [22]| kit/ForKit.cpp:573
nextcloud_collabora | frk-00017-00017 2026-10-25 21:26:53.263206 +0100 [forkit] TRC Forking child took 3ms| kit/ForKit.cpp:584
nextcloud_collabora | frk-00017-00017 2026-10-25 21:26:53.263213 +0100 [forkit] INF Forkit initialization complete: setting log-level to [warning] as configured.| kit/ForKit.cpp:1055
nextcloud_collabora | frk-00017-00017 2026-10-25 21:26:53.620182 +0100 [forkit] WRN The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/passwd] is out-of-date. Will have to clone dynamic elements of systemplate to the jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:605
nextcloud_collabora | frk-00017-00017 2026-10-25 21:26:53.623541 +0100 [forkit] WRN The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/passwd] is out-of-date. Will have to clone dynamic elements of systemplate to the jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:605
nextcloud_collabora | frk-00017-00017 2026-10-25 21:26:53.626613 +0100 [forkit] WRN The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/passwd] is out-of-date. Will have to clone dynamic elements of systemplate to the jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:605
nextcloud_collabora | kit-00022-00022 2026-10-25 21:26:53.618411 +0100 [kit_spare_001] TRC #16: Set socket buffer size to 262144| net/Socket.hpp:298
nextcloud_collabora | kit-00022-00022 2026-10-25 21:26:53.618412 +0100 [kit_spare_001] INF New kit client websocket inserted.| kit/Kit.cpp:3992
nextcloud_collabora | kit-00022-00022 2026-10-25 21:26:53.618414 +0100 [kit_spare_001] INF Kit initialization complete: setting log-level to [warning] as configured.| kit/Kit.cpp:4006
nextcloud_collabora | wsd-00001-00016 2026-10-25 21:26:53.618617 +0100 [prisoner_poll] TRC ppoll start, timeoutMicroS: 17645040 size 3| net/Socket.cpp:534
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:27.435558 +0100 [websrv_poll] ERR Failed to get settings json from [http://nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=dw2yPiEskQV5wVmoB2kPni172XHMxSxL&fileId=-1] with status[Moved Permanently]| wsd/DocumentBroker.cpp:2024
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:27.435755 +0100 [websrv_poll] ERR #-1: Failed to install config [shared-http_nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings-6ade3afd4218e6ade3a96df037]| wsd/RequestVettingStation.cpp:195
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:27.791268 +0100 [websrv_poll] ERR Failed to get settings json from [http://nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=dw2yPiEskQV5wVmoB2kPni172XHMxSxL&fileId=-1] with status[Moved Permanently]| wsd/DocumentBroker.cpp:2024
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:27.791396 +0100 [websrv_poll] ERR #-1: Failed to install config [shared-http_nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings-6ade3afd4218e6ade3a96df037]| wsd/RequestVettingStation.cpp:195
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:30.155966 +0100 [websrv_poll] ERR Failed to get settings json from [http://nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=A7TE8mFeQL6AZ5RFz2sy5bRBQd4bHu7P&fileId=-1] with status[Moved Permanently]| wsd/DocumentBroker.cpp:2024
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:30.156137 +0100 [websrv_poll] ERR #-1: Failed to install config [shared-http_nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings-6ade3afd4218e6ade3a96df037]| wsd/RequestVettingStation.cpp:195
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:32.522131 +0100 [websrv_poll] ERR Failed to get settings json from [http://nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=C2fIFB0CwRYpelOQq0QEPJcCrrDyx2S1&fileId=-1] with status[Moved Permanently]| wsd/DocumentBroker.cpp:2024
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:32.522262 +0100 [websrv_poll] ERR #-1: Failed to install config [shared-http_nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings-6ade3afd4218e6ade3a96df037]| wsd/RequestVettingStation.cpp:195
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:34.897164 +0100 [websrv_poll] ERR Failed to get settings json from [http://nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=UTJ5HRcEk5kBGrXZovhaxkBiHeGsDyum&fileId=-1] with status[Moved Permanently]| wsd/DocumentBroker.cpp:2024
nextcloud_collabora | wsd-00001-00025 2026-10-25 21:27:34.897304 +0100 [websrv_poll] ERR #-1: Failed to install config [shared-http_nextcloud.mydomain/index.php/apps/richdocuments/wopi/settings-6ade3afd4218e6ade3a96df037]| wsd/RequestVettingStation.cpp:195
nextcloud_collabora | wsd-00001-00030 2026-10-25 21:27:47.790922 +0100 [docbroker_001] WRN getNewChild: No child available. Sending spawn request to forkit and failing.| wsd/COOLWSD.cpp:1027
nextcloud_collabora | wsd-00001-00030 2026-10-25 21:28:07.841093 +0100 [docbroker_001] WRN getNewChild: No child available. Sending spawn request to forkit and failing.| wsd/COOLWSD.cpp:1027
nextcloud_collabora | wsd-00001-00030 2026-10-25 21:28:07.841119 +0100 [docbroker_001] ERR Failed to get new child.| wsd/DocumentBroker.cpp:314
nextcloud_collabora | wsd-00001-00030 2026-10-25 21:28:07.841124 +0100 [docbroker_001] WRN _newCallbacks is non-empty when stopping, clearing it.| net/Socket.hpp:841

```

#### Web Browser

If the problem is related to the Web interface, open your browser inspector _Console_ and _Network_ tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

```auto
PASTE

```

#### Web server / Reverse Proxy

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
192.168.1.254 - - [25/Oct/2026:21:00:36 +0000] "GET /index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=PcetOtf2Tc83frwRGfF7c55jkfaFgB8k&fileId=-1 HTTP/1.1" 301 17 "-" "-" 74120 "nextcloud-http@docker" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:39 +0000] "GET /index.php/apps/richdocuments/wopi/files/13_oc4l85vc3c9p?access_token=jaUCiCqHTTZuUZhdNvG9SgxQHdUAzrgt&access_token_ttl=1792998035000&permission=edit HTTP/1.1" 200 1414 "-" "-" 74122 "nextcloud@docker" "http://172.16.0.33:80" 23ms
192.168.1.254 - - [25/Oct/2026:21:00:39 +0000] "GET /index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=nUWbTJXOrCjvYvoHhEw0jkm5D3cwpmBR&fileId=-1 HTTP/1.1" 301 17 "-" "-" 74123 "nextcloud-http@docker" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:39 +0000] "HEAD / HTTP/1.1" 499 21 "-" "-" 74124 "hobbybaan@docker" "http://172.16.0.28:80" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:40 +0000] "GET / HTTP/1.0" 404 19 "-" "-" 74125 "-" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:42 +0000] "GET /index.php/apps/richdocuments/wopi/files/13_oc4l85vc3c9p?access_token=jaUCiCqHTTZuUZhdNvG9SgxQHdUAzrgt&access_token_ttl=1792998035000&permission=edit HTTP/1.1" 200 1414 "-" "-" 74127 "nextcloud@docker" "http://172.16.0.33:80" 19ms
192.168.1.254 - - [25/Oct/2026:21:00:42 +0000] "GET /index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=gpg8Grx5FfTBy25B8hAInTNENAlUL84f&fileId=-1 HTTP/1.1" 301 17 "-" "-" 74128 "nextcloud-http@docker" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:45 +0000] "GET /index.php/apps/richdocuments/wopi/files/13_oc4l85vc3c9p?access_token=jaUCiCqHTTZuUZhdNvG9SgxQHdUAzrgt&access_token_ttl=1792998035000&permission=edit HTTP/1.1" 200 1414 "-" "-" 74130 "nextcloud@docker" "http://172.16.0.33:80" 22ms
192.168.1.254 - - [25/Oct/2026:21:00:45 +0000] "GET /index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=4EVgMuZUX0diCI5JJ5qYt6x3TghbR79G&fileId=-1 HTTP/1.1" 301 17 "-" "-" 74131 "nextcloud-http@docker" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:46 +0000] "POST /apps/text/session/144616925758996481/push HTTP/2.0" 200 65 "-" "-" 74132 "nextcloud@docker" "http://172.16.0.33:80" 13ms
192.168.1.254 - - [25/Oct/2026:21:00:46 +0000] "GET / HTTP/1.1" 301 17 "-" "-" 74133 "http-root@docker" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:47 +0000] "GET / HTTP/1.0" 404 19 "-" "-" 74134 "-" "-" 0ms
192.168.1.1 - - [25/Oct/2026:21:00:52 +0000] "GET / HTTP/1.1" 200 10700 "-" "-" 74135 "http-rootlocal@docker" "http://172.16.0.6:80" 0ms
192.168.1.254 - - [25/Oct/2026:21:00:53 +0000] "GET / HTTP/1.1" 200 98442 "-" "-" 74136 "hobbybaan@docker" "http://172.16.0.28:80" 7ms
192.168.1.254 - - [25/Oct/2026:21:00:55 +0000] "POST /apps/text/session/144616925758996481/sync HTTP/2.0" 200 394 "-" "-" 74137 "nextcloud@docker" "http://172.16.0.33:80" 14ms
192.168.1.254 - - [25/Oct/2026:21:00:58 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "-" 74138 "nextcloud@docker" "http://172.16.0.33:80" 13ms
192.168.1.254 - - [25/Oct/2026:21:00:58 +0000] "GET / HTTP/1.0" 404 19 "-" "-" 74139 "-" "-" 0ms
192.168.1.254 - - [25/Oct/2026:21:01:01 +0000] "POST /apps/text/session/144616925758996481/push HTTP/2.0" 200 65 "-" "-" 74141 "nextcloud@docker" "http://172.16.0.33:80" 17ms
192.168.1.254 - - [25/Oct/2026:21:01:01 +0000] "POST /apps/text/session/144616925758996481/sync HTTP/2.0" 200 394 "-" "-" 74140 "nextcloud@docker" "http://172.16.0.33:80" 22ms

```

### Configuration

#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

```auto
docker compose exec nextcloud php occ config:list system
{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "upgrade.disable-web": true,
        "passwordsalt": " ***REMOVED SENSITIVE VALUE***",
        "secret": " ***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.ijntema.com"
        ],
        "datadirectory": " ***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "35.0.2.2",
        "overwrite.cli.url": "http:\/\/localhost",
        "instanceid": " ***REMOVED SENSITIVE VALUE***",
        "dbname": " ***REMOVED SENSITIVE VALUE***",
        "dbhost": " ***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": " ***REMOVED SENSITIVE VALUE***",
        "dbpassword": " ***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "app_install_overwrite": []
    }

```

#### Apps

The output of `occ app:list` (if possible).

> docker compose exec nextcloud php occ app:list  
> Enabled:
> 
> - activity: 8.0.0
> 
> - app\_api: 35.0.0
> 
> - appstore: 2.0.0
> 
> - bruteforcesettings: 8.0.0
> 
> - circles: 35.0.0
> 
> - cloud\_federation\_api: 2.0.0
> 
> - comments: 2.0.0
> 
> - contactsinteraction: 2.0.0
> 
> - dashboard: 8.0.0
> 
> - dav: 2.0.0
> 
> - federatedfilesharing: 2.0.0
> 
> - federation: 2.0.0
> 
> - files: 3.0.0
> 
> - files\_downloadlimit: 5.3.0
> 
> - files\_lock: 35.0.1
> 
> - files\_pdfviewer: 8.0.0
> 
> - files\_reminders: 2.0.0
> 
> - files\_sharing: 2.0.0
> 
> - files\_trashbin: 2.0.0
> 
> - files\_versions: 2.0.0
> 
> - firstrunwizard: 8.0.0
> 
> - logreader: 8.0.0
> 
> - lookup\_server\_connector: 2.0.0
> 
> - nextcloud\_announcements: 7.0.0
> 
> - notifications: 8.0.1
> 
> - oauth2: 2.0.0
> 
> - office: 1.1.0
> 
> - password\_policy: 7.0.0
> 
> - photos: 8.0.0
> 
> - privacy: 7.0.0
> 
> - profile: 2.0.0
> 
> - provisioning\_api: 2.0.0
> 
> - recommendations: 8.0.0
> 
> - related\_resources: 6.0.0
> 
> - richdocuments: 12.0.1
> 
> - serverinfo: 7.0.0
> 
> - settings: 2.0.0
> 
> - sharebymail: 2.0.0
> 
> - sharing: 1.0.4
> 
> - support: 7.0.0
> 
> - survey\_client: 7.0.0
> 
> - systemtags: 2.0.0
> 
> - text: 9.0.1
> 
> - theming: 3.0.0
> 
> - twofactor\_backupcodes: 2.0.0
> 
> - twofactor\_totp: 17.1.0
> 
> - updatenotification: 2.0.0
> 
> - user\_status: 2.0.0
> 
> - viewer: 8.0.0
> 
> - weather\_status: 2.0.0
> 
> - webhook\_listeners: 2.0.0
> 
> - workflowengine: 3.0.0  
> Disabled:
> 
> - admin\_audit: 2.0.0
> 
> - encryption: 3.0.1
> 
> - eurooffice: 11.0.6 (installed 11.0.6)
> 
> - files\_external: 2.0.0
> 
> - suspicious\_login: 13.0.0
> 
> - twofactor\_nextcloud\_notification: 9.0.0
> 
> - user\_ldap: 2.0.0

###

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [October 26, 2026, 9:44am UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/2 "2026-10-26T09:44:22Z")

</div>

Hello @hansij66,  
welcome to the Nextcloud community! 🤝

I have no idea why but CODE tries to use plain http for connection to Nextcloud:

> [@hansij66](#):
>
> `Failed to get settings json from [http://nextcloud.mydomain/index.php/apps/rich...`

for this reason the connection fails. Did you add any networking tweaks to adjust internal connections?

Is there any reason you use CODE 25.04? 26.04. is already out.. I don’t think this is a reason.. but for new installation I would focus on recent versions.

Please post you compose and traefik config and browser log (f12) for further investigation.

---

<div class="post-metadata">

**Author:** ![hansij66](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hansij66/32/80550_2.png) [@hansij66](https://help.nextcloud.com/u/hansij66)\
**Post date:** [October 26, 2026, 9:53am UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/3 "2026-10-26T09:53:25Z")

</div>

Hi wwe,

Thanks for quick reply;)

1. I noticed the http request. I do have a redirect from http to https in traefik configured…still I was also puzzled, but where do I configure this?
2. Regarding CODE version; As the latest CODE is hardened, and you cannot get into a shell in docker, I downgraded 1 version to go through the checklist. I have same issue with latest CODE.
3. I will provide logs and config later tonight

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [October 26, 2026, 10:04am UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/4 "2026-10-26T10:04:28Z")

</div>

> [@hansij66](#):
>
> 1. I noticed the http request. I do have a redirect from http to https in traefik configured…still I was also puzzled, but where do I configure this?

from the log it looks CODE doesn’t follow the redirect and simply fails.. usually you don’t need to configure the protocol - they should be derived from proxy headers and traefik sets required headers by default.. likely something is wrong there. maybe Nextcloud ignores proxy headers because of missing `trusted_proxies` setting?

In my systems I use to set `OVERWRITEHOST` and `OVERWRITEPROTOCOL` see [101: reverse proxy](https://help.nextcloud.com/t/101-reverse-proxy/194840) for details, give it a try.

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [October 26, 2026, 5:01pm UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/5 "2026-10-26T17:01:11Z")

</div>

> [@wwe](#):
>
> Is there any reason you use CODE 25.04?

This version is vulnerable, see [CVE-2026-110447](https://www.cve.org/CVERecord?id=CVE-2026-110447)

---

<div class="post-metadata">

**Author:** ![hansij66](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hansij66/32/80550_2.png) [@hansij66](https://help.nextcloud.com/u/hansij66)\
**Post date:** [October 26, 2026, 6:39pm UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/6 "2026-10-26T18:39:49Z")

</div>

I know, but only reason I used that version is to run all tests in the “implementation and troubleshooting checklist”. The latest docker CODE 26 version does not include a shell anymore.

---

<div class="post-metadata">

**Author:** ![hansij66](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hansij66/32/80550_2.png) [@hansij66](https://help.nextcloud.com/u/hansij66)\
**Post date:** [October 26, 2026, 7:00pm UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/7 "2026-10-26T19:00:18Z")

</div>

traefik configuration (only the relevant part)

> entryPoints:  
> web-http:  
> address: “:80”
> 
> web-https:  
> address: “:443”
> 
> ```auto
> http:
> encodedCharacters:
> allowEncodedSlash: true
> allowEncodedBackSlash: true
> allowEncodedPercent: true # Crucial for Collabora WS requests
> allowEncodedQuestionMark: true
> 
> ```

docker-compose.yml (relevant parts)

> services:  
> nextcloud:  
> image: nextcloud:35  
> container\_name: nextcloud\_app  
> restart: unless-stopped
> 
> ```auto
> environment:
> - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
> - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
> - NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.mydomain.com
> # - TRUSTED_PROXIES
> - MYSQL_PASSWORD=${MYSQL_PASSWORD}
> - MYSQL_DATABASE=${MYSQL_DATABASE}
> - MYSQL_USER=${MYSQL_USER}
> - MYSQL_HOST=db
> - TZ=Europe/Amsterdam
> 
> expose:
> - 80
> 
> volumes:
> - ./data/nextcloud:/var/www/html
> - ./userdata:/var/www/html/data
> 
> labels:
> - "traefik.enable=true"
> 
> # redirect http to https
> - "traefik.http.routers.nextcloud-http.entrypoints=web-http"
> - "traefik.http.routers.nextcloud-http.rule=Host(`nextcloud.mydomain.com`)"
> - "traefik.http.routers.nextcloud-http.middlewares=nextcloud-http-redirectscheme"
> - "traefik.http.middlewares.nextcloud-http-redirectscheme.redirectscheme.scheme=https"
> - "traefik.http.middlewares.nextcloud-http-redirectscheme.redirectscheme.permanent=true"
> 
> # https
> - "traefik.http.routers.nextcloud.entrypoints=web-https"
> - "traefik.http.routers.nextcloud.rule=Host(`nextcloud.mydomain.com`)"
> - "traefik.http.routers.nextcloud.tls=true"
> - "traefik.http.routers.nextcloud.tls.certResolver=letsencrypt"
> - "traefik.http.routers.nextcloud.tls.options=noclientauth@file"
> 
> - "traefik.http.routers.nextcloud.service=nextcloud"
> - "traefik.http.services.nextcloud.loadbalancer.server.port=80"
> 
> - "traefik.http.routers.nextcloud.middlewares=${TAG}-headers"
> - "traefik.http.middlewares.${TAG}-headers.headers.referrerPolicy=no-referrer"
> - "traefik.http.middlewares.${TAG}-headers.headers.stsSeconds=31536000"
> - "traefik.http.middlewares.${TAG}-headers.headers.forceSTSHeader=true"
> - "traefik.http.middlewares.${TAG}-headers.headers.stsPreload=true"
> - "traefik.http.middlewares.${TAG}-headers.headers.stsIncludeSubdomains=true"
> - "traefik.http.middlewares.${TAG}-headers.headers.browserXssFilter=true"
> - "traefik.http.middlewares.${TAG}-headers.headers.customRequestHeaders.X-Forwarded-Proto=https"
> 
> networks:
> - backend
> - frontend
> 
> ```
> 
> ##############################################################################  
> ##############################################################################  
> cron:  
> image: nextcloud:35  
> restart: always
> 
> ```auto
> environment:
> - TZ=Europe/Amsterdam
> 
> volumes:
> - ./data/nextcloud:/var/www/html
> - ./userdata:/var/www/html/data
> - /etc/localtime:/etc/localtime:ro
> # NOTE: The `volumes` config of the `cron` and `app` containers must match
> 
> entrypoint: /cron.sh
> 
> labels:
> - "traefik.enable=false"
> 
> networks:
> - backend
> 
> ```
> 
> ##############################################################################  
> ##############################################################################  
> collabora:  
> image: collabora/code:25.04.10.3.1 # this version allows for shell access, to test requirements  
> container\_name: nextcloud\_collabora  
> restart: unless-stopped
> 
> ```auto
> expose:
> - 9980
> 
> cap_add:
> - MKNOD
> 
> environment:
> - "extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:logging.level=warning"
> - LC_CTYPE=C.UTF-8
> - VIRTUAL_HOST=office.mydomain.com
> - VIRTUAL_PORT=9980
> - VIRTUAL_PROTO=http
> - DONT_GEN_SSL_CERT=true
> - aliasgroup2=https://nextcloud.mydomain.com:443,https://nextcloud\\.mydomain\\.com:443 # enable for aliasgroup2
> - aliasgroup1=https://.*:443 # public access - Testing only
> - dictionaries=en_US nl
> - username=admin
> - password=${COLLABORA_ADMIN_PASSWORD}
> - server_name=office.mydomain.com
> - TZ=Europe/Amsterdam
> 
> volumes:
> - ./coolwsd.xml:/etc/coolwsd/coolwsd.xml
> 
> labels:
> - "traefik.enable=true"
> 
> # redirect http to https
> - "traefik.http.routers.collabora-http.entrypoints=web-http"
> - "traefik.http.routers.collabora-http.rule=Host(`office.mydomain.com`)"
> - "traefik.http.routers.collabora-http.middlewares=collabora-http-redirectscheme"
> - "traefik.http.middlewares.collabora-http-redirectscheme.redirectscheme.scheme=https"
> - "traefik.http.middlewares.collabora-http-redirectscheme.redirectscheme.permanent=true"
> 
> - "traefik.http.routers.collabora.entrypoints=web-https"
> - "traefik.http.routers.collabora.rule=Host(`office.mydomain.com`)"
> - "traefik.http.routers.collabora.tls=true"
> - "traefik.http.routers.collabora.tls.certResolver=letsencrypt"
> - "traefik.http.routers.collabora.tls.options=noclientauth@file"
> 
> - "traefik.http.routers.collabora.service=collabora"
> - "traefik.http.services.collabora.loadbalancer.server.port=9980"
> 
> networks:
> - backend
> - frontend
> 
> ```
> 
> ##############################################################################  
> ##############################################################################  
> networks:  
> backend:  
> name: nextcloud\_backend
> 
> frontend:  
> name: traefik-proxy  
> external: true

Browser log (chrome), not sure if you are looking for this

> Manifest: property ‘start\_url’ ignored, should be same origin as document.  
> images.js:55 [WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config {app: ‘viewer’, uid: ‘admin’, level: 2, ignoredMimes: Array(3)}  
> log @ index.mjs:44  
> warn @ index.mjs:62  
> (anonymous) @ images.js:55  
> Viewer.js:90 [ERROR] viewer: Could not register handler {app: ‘viewer’, uid: ‘admin’, level: 2, error: ‘The handler is already registered’, handler: {…}}  
> log @ index.mjs:47  
> error @ index.mjs:65  
> registerHandler @ Viewer.js:90  
> (anonymous) @ Viewer.vue:539  
> (anonymous) @ Viewer.vue:538  
> NotificationsApp.vue:581 Notifications permissions not yet requested  
> /apps/files/files:1 Mixed Content: The page at ‘[https://nextcloud.mydomain.com/apps/files/files](https://nextcloud.mydomain.com/apps/files/files)’ was loaded over HTTPS, but requested an insecure element ‘[http://nextcloud.mydomain.com/apps/firstrunwizard/img/user.svg](http://nextcloud.mydomain.com/apps/firstrunwizard/img/user.svg)’. This request was automatically upgraded to HTTPS, For more information see [https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html](https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html)  
> openLocallyAction.ts:110 [Violation] Permissions policy violation: unload is not allowed in this document.  
> (anonymous) @ index.mjs:855  
> (anonymous) @ runtime-core.esm-bundler.js:3165  
> callWithErrorHandling @ runtime-core.esm-bundler.js:199  
> callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206  
> (anonymous) @ runtime-core.esm-bundler.js:3145  
> flushPostFlushCbs @ runtime-core.esm-bundler.js:389  
> (anonymous) @ runtime-core.esm-bundler.js:6925  
> mount @ runtime-core.esm-bundler.js:4326  
> (anonymous) @ runtime-dom.esm-bundler.js:1942  
> (anonymous) @ index.mjs:27  
> spawnDialog @ index.mjs:9  
> show @ index.mjs:904  
> (anonymous) @ openLocallyAction.ts:110  
> (anonymous) @ openLocallyAction.ts:55  
> await in (anonymous)  
> (anonymous) @ openLocallyAction.ts:38  
> (anonymous) @ actionUtils.ts:50  
> onActionClick @ FileEntryActions.vue:187  
> click @ FileEntryActions.vue:5  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> invoker @ vue.runtime.esm.js:1832  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> (anonymous) @ vue.runtime.esm.js:3732  
> onClick @ actionText-BMig9Egt.mjs:78  
> handleClick @ NcActionButton-D7uypboC.mjs:145  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> invoker @ vue.runtime.esm.js:1832  
> (anonymous) @ vue.runtime.esm.js:7500  
> /apps/files/files/13?dir=/Documents:1 Failed to launch ‘nc://open/admin@nextcloud.mydomain.com/Documents/Welcome%20to%20Nextcloud%20Hub.docx?token=HJvO144USnZHZgAvAAneUlqIImj9K37zEK9Kvj7mdGotMU6326obSB8Bm5cIZacJKOlAaNwuqibJCse5ZApt5GKwihXX6lFHgHCeCuhdL14cNFfqJNjhnNPpNh26w5SV’ because the scheme does not have a registered handler.  
> Viewer.vue:494 [WARN] viewer: No files provided, skipping update {app: ‘viewer’, uid: ‘admin’, level: 2}  
> log @ index.mjs:44  
> warn @ index.mjs:62  
> files @ Viewer.vue:494  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> (anonymous) @ vue.runtime.esm.js:3550  
> flushSchedulerQueue @ vue.runtime.esm.js:4141  
> (anonymous) @ vue.runtime.esm.js:3159  
> flushCallbacks @ vue.runtime.esm.js:3081  
> Promise.then  
> (anonymous) @ vue.runtime.esm.js:3106  
> nextTick @ vue.runtime.esm.js:3171  
> queueWatcher @ vue.runtime.esm.js:4227  
> (anonymous) @ vue.runtime.esm.js:3529  
> (anonymous) @ vue.runtime.esm.js:732  
> set @ vue.runtime.esm.js:976  
> open @ Viewer.js:343  
> (anonymous) @ openLocallyAction.ts:60  
> await in (anonymous)  
> (anonymous) @ openLocallyAction.ts:38  
> (anonymous) @ actionUtils.ts:50  
> onActionClick @ FileEntryActions.vue:187  
> click @ FileEntryActions.vue:5  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> invoker @ vue.runtime.esm.js:1832  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> (anonymous) @ vue.runtime.esm.js:3732  
> onClick @ actionText-BMig9Egt.mjs:78  
> handleClick @ NcActionButton-D7uypboC.mjs:145  
> invokeWithErrorHandling @ vue.runtime.esm.js:3033  
> invoker @ vue.runtime.esm.js:1832  
> (anonymous) @ vue.runtime.esm.js:7500  
> TaskWorker.js:31 TaskWorker initialised  
> TaskWorker.js:31 TaskWorker initialised  
> TaskWorker.js:31 TaskWorker initialised  
> TaskWorker.js:31 TaskWorker initialised

Administration - office configuration

## **Nextcloud Office (Collabora)**

Nextcloud Office (powered by Collabora Online) is a powerful online office suite with collaborative editing, which supports all major documents, spreadsheet and presentation file formats and works together with all modern browsers.

Collabora Online server is reachable.

Collabora Online Development Edition 25.04.10.3 9f059c5093

**URL used by the browser:** `https://office.mydomain.com`  
**Nextcloud URL used by Collabora:** `https://nextcloud.mydomain.com` _(Determined from the browser URL)_

---

<div class="post-metadata">

**Author:** ![hansij66](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hansij66/32/80550_2.png) [@hansij66](https://help.nextcloud.com/u/hansij66)\
**Post date:** [October 26, 2026, 7:28pm UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/8 "2026-10-26T19:28:58Z")

</div>

In Firefox console I noticed: ( I have to delete a few things, not allowed to have more than 4 links)

> Firefox can’t establish a connection to the server at wss://office.mydomain.com/cool/https%3A%2F%[2Fnextcloud.mydomain.com](http://2Fnextcloud.mydomain.com)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F13\_oc4l85vc3c9p%3Faccess\_token%3DLlp9Eud2B63olsDDnHA2hgZPBedy7fOP%26access\_token\_ttl%3D1793076889000%26permission%3Dedit/ws?WOPISrc=https%3A%2F%[2Fnextcloud.mydomain.com](http://2Fnextcloud.mydomain.com)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F13\_oc4l85vc3c9p&compat=/ws.
> 
> Firefox can’t establish a connection to the server at wss://office.mydomain.com/cool/
> 
> Content-Security-Policy: The page’s settings blocked the loading of a resource (default-src) at [https://nextcloud.mydomain.com/apps/files/](https://nextcloud.mydomain.com/apps/files/) because it violates the following directive: “default-src ‘none’”

It seems that connection does not get upgraded to wss? Traefik should do this automatically. Any ideas?

---

<div class="post-metadata">

**Author:** ![hansij66](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hansij66/32/80550_2.png) [@hansij66](https://help.nextcloud.com/u/hansij66)\
**Post date:** [October 26, 2026, 9:03pm UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/9 "2026-10-26T21:03:08Z")

</div>

Well, I got it fixed. Thanks for asking questions… it helps to dive deeper.

I was playing with TRUSTED\_PROXIES variable in docker-compose.yml. I noticed that the setting does not get merged into nextcloud config.php.

if I set trusted\_proxies via occ config:set trusted\_proxies, setting does get merged in config.php and I can edit de docs with collabora server 😎

Not sure why TRUSTED\_PROXIES does not work.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [October 27, 2026, 12:07pm UTC](https://help.nextcloud.com/t/nextcloud-collabora-code-document-loading-failed/251546/10 "2026-10-27T12:07:22Z")

</div>

glad you found the problem.. so my guess about ignored proxy headers was good.. 😎

ENV variables of the microservices image are kind of mystery - look at [https://github.com/nextcloud/docker/issues/2224](https://github.com/nextcloud/docker/issues/2224) for details..

but

> - TRUSTED\_PROXIES and OVERWRITE\*
> - will override `config/config.php`
> - handled via `config/reverse.proxy.php`

should apply every time? in any case `occ config:list system` is the most reliable way to inspect a running config.
