Nextcloud & Collabora CODE "Document loading failed"

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, 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!

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.

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.

PASTE

Web server / Reverse Proxy

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

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!):

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

Hello @hansij66,
welcome to the Nextcloud community! :handshake:

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

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.

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

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 for details, give it a try.

This version is vulnerable, see CVE-2026-110447

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.

traefik configuration (only the relevant part)

entryPoints:
web-http:
address: “:80”

web-https:
address: “:443”

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

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

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

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’ was loaded over HTTPS, but requested an insecure element ‘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
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)

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%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%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/ 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?

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 :smiling_face_with_sunglasses:

Not sure why TRUSTED_PROXIES does not work.

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

ENV variables of the microservices image are kind of mystery - look at 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.