The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Nextcloud Hub 25 Autumn (32.0.6)
- Operating system and version (e.g., Ubuntu 24.04):
- Linux 6.12.73+deb13-amd64 x86_64
- Web server and version (e.g, Apache 2.4.25):
- Package: apache2
Version: 2.4.66-1~deb13u1
Priority: optional
Section: httpd
Provides: httpd, httpd-cgi
Pre-Depends: init-system-helpers (>= 1.54~)
- Package: apache2
- Reverse proxy and version _(e.g. nginx 1.27.2)
Caddyfile:
(in my router, I have only port-forwarding for port 443 to the Debian server)
https://my.domain.be {
reverse_proxy 127.0.0.1:8080 {
header_up X-Forwarded-Ssl on
}
# Collabora Online
handle_path /lool* {
reverse_proxy http://127.0.0.1:9980
}
handle_path /browser* {
reverse_proxy http://127.0.0.1:9980
}
redir /.well-known/carddav /remote.php/dav/ 301
redir /.well-known/caldav /remote.php/dav/ 301
redir /.well-known/webfinger /index.php/.well-known/webfinger 301
redir /.well-known/nodeinfo /index.php/.well-known/nodeinfo 301
header {
Strict-Transport-Security "max-age=15552000; includeSubDomains"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "no-referrer"
X-XSS-Protection "1; mode=block"
}
# Content-Security-Policy voor Memories
header {
Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'self'; font-src 'self'; base-uri 'self'; frame-ancestors 'self';"
Referrer-Policy "no-referrer-when-downgrade"
}
@forbidden {
path /data/*
}
@limited {
remote_ip 0.0.0.0/0
remote_ip ::/0
}
respond @forbidden 404
}
/srv/nextcloud/config/config.php
<?php
$CONFIG = array (
'overwrite.cli.url' => 'https://my.domain.be',
'forwarded_for_headers' =>
array (
0 => 'HTTP_X_FORWARDED_FOR',
1 => 'HTTP_X_FORWARDED_PROTO',
),
'instanceid' => 'xxxxxx',
'passwordsalt' => 'xxxxxx',
'secret' => 'xxxxxx',
'trusted_domains' =>
array (
0 => '192.168.xx.xx:8080',
1 => 'my.domain.be',
2 => 'localhost',
),
'overwritehost' => 'my.domain.be',
'overwriteprotocol' => 'https',
'overwritewebroot' => '',
'overwritecondaddr' => '^127\\.0\\.0\\.1$',
'trusted_proxies' =>
array (
0 => '192.168.xx.xx',
1 => '127.0.0.1',
),
...
/etc/apache2/sites-available/nextcloud.conf:
<VirtualHost *:8080>
ServerName 192.168.178.53
DocumentRoot /srv/nextcloud
<Directory /srv/nextcloud>
Require all granted
AllowOverride All
Options FollowSymLinks
</Directory>
ProxyPassMatch "^/(.*\.php(/.*)?)$" \
"unix:/run/php/php8.3-fpm.sock|fcgi://localhost/srv/nextcloud/"
</VirtualHost>
- PHP version (e.g, 8.3):
- 8.3.30
- Is this the first time you’ve seen this error? (Yes / No):
yes
- When did this problem seem to first start?
from the start (after setting up the docker with collabora)
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
I’m running a collabora-server in Docker, I think all configuration files are setup correctly. In the NextCloud admin settings, Office, I have a “green light”. When I try to open an office document, after a few second I get:
Document laden mislukt
Kon Nextcloud Office niet laden - probeer het later opnieuw
(Loading document failed, couldn’t load NextCloud Office, try again later)
Steps to replicate it (hint: details matter!):
- Install collabora docker
- Open an office document
Log entries
Web Browser
Firefox, Chrome
Nextcloud admin panel
In green is stated that the collabora server is reachable
Collabora Online server is bereikbaar.
Collabora Online Development Edition 25.04.9.2 a9b866688f
URL die door de browser wordt gebruikt:
https://my.domain.be
Nextcloud URL gebruikt door Collabora:https://my.domain.be(Determined from the browser URL)
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!):
{
"system": {
"overwrite.cli.url": "https:\/\/my.domain.be",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR",
"HTTP_X_FORWARDED_PROTO"
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.xx.xx:8080",
"my.domain.be",
"localhost"
],
"overwritehost": "my.domain.be",
"overwriteprotocol": "https",
"overwritewebroot": "",
"overwritecondaddr": "^127\\.0\\.0\\.1$",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "32.0.6.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance_window_start": 1,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"default_phone_region": "BE",
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 1.5
},
"filelocking.enabled": true,
"theme": "",
"debug": true,
"loglevel": 0,
"allow_local_remote_servers": true,
"simpleSignUpLink.shown": false,
"enabledPreviewProviders": [
"OC\\Preview\\BMP",
"OC\\Preview\\GIF",
"OC\\Preview\\JPEG",
"OC\\Preview\\MarkDown",
"OC\\Preview\\MP3",
"OC\\Preview\\PNG",
"OC\\Preview\\TXT",
"OC\\Preview\\XBitmap",
"OC\\Preview\\OpenDocument",
"OC\\Preview\\Krita",
"OC\\Preview\\WebP",
"OC\\Preview\\Image",
"OC\\Preview\\HEIC",
"OC\\Preview\\TIFF",
"OC\\Preview\\Movie"
],
"app_install_overwrite": [],
"memories.db.triggers.fcu": true,
"memories.exiftool": "\/srv\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
"memories.vod.path": "\/srv\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
"memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
"memories.gis_type": 1,
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"ffmpeg.binaries": "\/usr\/bin\/ffmpeg",
"ffprobe.binaries": "\/usr\/bin\/ffprobe",
"maintenance": false
}
}
Apps
The output of occ app:list (if possible).
Enabled:
- activity: 5.0.0
- appointments: 2.6.3
- bruteforcesettings: 5.0.0
- calendar: 6.2.1
- circles: 32.0.0
- cloud_federation_api: 1.16.0
- contacts: 8.3.4
- contactsinteraction: 1.13.1
- dashboard: 7.12.0
- dav: 1.34.2
- federatedfilesharing: 1.22.0
- federation: 1.22.0
- files: 2.4.0
- files_downloadlimit: 5.0.0-dev.0
- files_external: 1.24.1
- files_pdfviewer: 5.0.0
- files_sharing: 1.24.1
- files_trashbin: 1.22.0
- files_versions: 1.25.0
- fileslibreofficeedit: 2.0.1
- firstrunwizard: 5.0.0
- forms: 5.2.4
- integration_deepl: 2.1.0
- logreader: 5.0.0
- lookup_server_connector: 1.20.0
- mail: 5.7.2
- memories: 7.8.2
- music: 3.0.0
- nextcloud_announcements: 4.0.0
- notes: 4.13.0
- notifications: 5.0.0
- oauth2: 1.20.0
- password_policy: 4.0.0
- photos: 5.0.0
- previewgenerator: 5.13.0
- privacy: 4.0.0
- profile: 1.1.0
- provisioning_api: 1.22.0
- qownnotesapi: 26.2.2
- recognize: 10.0.7
- recommendations: 5.0.0
- related_resources: 3.0.0
- richdocuments: 9.0.3
- serverinfo: 4.0.0
- settings: 1.15.1
- sharebymail: 1.22.0
- support: 4.0.0
- survey_client: 4.0.0
- systemtags: 1.22.0
- tables: 1.0.5
- tasks: 0.17.1
- text: 6.0.1
- text_templates: 1.3.0
- theming: 2.7.0
- twofactor_backupcodes: 1.21.0
- twofactor_nextcloud_notification: 6.0.0
- twofactor_webauthn: 2.6.0
- updatenotification: 1.22.0
- user_status: 1.12.0
- viewer: 5.0.0
- weather_status: 1.12.0
- webhook_listeners: 1.3.0
- workflowengine: 2.14.0
Disabled:
- admin_audit: 1.22.0
- app_api: 32.0.0 (installed 32.0.0)
- comments: 1.22.0 (installed 1.20.1)
- encryption: 2.20.0
- epubviewer: 1.9.2 (installed 1.9.2)
- files_reminders: 1.5.0 (installed 1.3.0)
- maps: 1.6.0 (installed 1.6.0)
- suspicious_login: 10.0.0
- twofactor_totp: 14.0.0
- user_ldap: 1.23.0
sudo ufw status
Status: active
To Action From
-- ------ ----
22/tcp ALLOW 100.64.0.0/10
443/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
22/tcp ALLOW 192.168.178.0/24
445/tcp ALLOW 192.168.178.0/24
139/tcp ALLOW 192.168.178.0/24
8096/tcp ALLOW 192.168.178.0/24
9090/tcp ALLOW Anywhere
9980 ALLOW 127.0.0.1
9980 DENY Anywhere
443/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
9090/tcp (v6) ALLOW Anywhere (v6)
9980 (v6) DENY Anywhere (v6)