Collabora / Unautorisierter WOPI-Host

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

I’m having trouble setting up a Collabora Docker container in Nextcloud. I’m running Nextcloud, NGINXProxyManager, and Collabora on Proxmox (9.0.11)/Docker LXC Containers (Debian 12.12). All three applications are running as individual containers. The NGINXProxyManager is the reverse proxy for the applications’ external access. I believe I’ve configured Collabora correctly because when I access it through the reverse proxy, I get an “OK” message in the browser. However, when I try to open a Word document via Nextcloud, I get the following error message: “Failed to load document. Unauthorized WOPI host. Please try again later and contact your administrator if the problem persists.” I’ve read quite a bit but haven’t quite grasped what a WOPI host is. Does anyone have any idea what I need to configure and where?

BR Jan

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debain 12.12, Docker version 28.5.1
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • a long time before
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker via Portainer
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • yes

Summary of the issue you are facing:

[…]

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

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.

{"reqId":"3h0JB1zvpbQamhkiJokH","level":3,"time":"2025-11-07T12:46:52+00:00","remoteAddr":"192.168.2.190","user":"jan","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/files/jan/","message":"Icewind\\SMB\\Native\\NativeState::lseek(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead at /app/www/public/3rdparty/icewind/smb/src/Native/NativeState.php#346","userAgent":"Mozilla/5.0 (Windows) mirall/4.0.1 (build 20251027) (Nextcloud, windows-10.0.26200 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.1.2","clientReqId":"8a6ac51a-7ee0-46f5-99da-e0a3b8758020","data":{"app":"PHP"},"id":"690dea4dac916"}

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/____:

PASTE HERE

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

root@nextcloud:/#occ config:list system
{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.niederdraeing.uk",
            "docker-proxmox",
            "docker-proxmox.fritz.box",
            "192.168.2.204"
        ],
        "dbtype": "mysql",
        "version": "32.0.1.2",
        "overwrite.cli.url": "https:\/\/nextcloud.niederdraeing.uk",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_phone_region": "DE",
        "default_language": "de",
        "defaultapp": "dashboard,files",
        "enable_previews": true,
        "preview_max_x": 4096,
        "preview_max_y": 4096,
        "preview_max_filesize_image": 50,
        "preview_max_memory": 256,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\jpg",
            "OC\\Preview\\JPG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\Image"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "stable",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "maintenance_window_start": 0,
        "app_install_overwrite": [
            "news",
            "maps",
            "bookmarks_fulltextsearch",
            "wopi",
            "backup",
            "keeweb",
            "memories",
            "bookmarks",
            "deck",
            "fulltextsearch",
            "fulltextsearch_elasticsearch",
            "libresign",
            "twofactor_admin"
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "loglevel": 3,
        "memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.index.path.blacklist": "\\\/@(Recently-Snapshot|Recycle)\\\/",
        "memories.db.triggers.fcu": true,
        "memories.gis_type": 1
    }
}

Apps

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

occ app:list
Enabled:
  - activity: 5.0.0-dev.0
  - admin_audit: 1.22.0
  - app_api: 32.0.0
  - bookmarks: 16.0.0
  - bruteforcesettings: 5.0.0-dev.0
  - calendar: 6.0.3
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contacts: 8.0.6
  - contactsinteraction: 1.13.1
  - cookbook: 0.11.5
  - dashboard: 7.12.0
  - dav: 1.34.2
  - deck: 1.16.0
  - external: 7.0.0
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_external: 1.24.0
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.0
  - files_trashbin: 1.22.0
  - fulltextsearch: 32.0.0
  - fulltextsearch_elasticsearch: 32.0.0
  - keeweb: 0.6.22
  - libresign: 12.1.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - mail: 5.5.12
  - maps: 1.6.0
  - memories: 7.7.0
  - news: 27.1.0
  - notes: 4.12.3
  - notifications: 5.0.0-dev.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0-dev.0
  - photos: 5.0.0-dev.1
  - previewgenerator: 5.10.0
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recognize: 10.0.5
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - richdocuments: 9.0.1
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - spreed: 22.0.2
  - support: 4.0.0-dev.0
  - survey_client: 4.0.0-dev.0
  - suspicious_login: 10.0.0-dev.0
  - systemtags: 1.22.0
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_admin: 4.8.0
  - twofactor_backupcodes: 1.21.0
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - twofactor_totp: 14.0.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - workflowengine: 2.14.0
Disabled:
  - backup: 1.4.0 (installed 1.4.0)
  - calendar_news: 1.1.16 (installed 1.1.16)
  - encryption: 2.20.0 (installed 2.17.0)
  - files_downloadlimit: 5.0.0-dev.0 (installed 2.0.0)
  - files_versions: 1.25.0 (installed 1.24.0)
  - firstrunwizard: 5.0.0-dev.0 (installed 2.18.0)
  - nextcloud_announcements: 4.0.0-dev.0 (installed 1.18.0)
  - user_ldap: 1.23.0 (installed 1.20.0)
  - wopi: 3.5.11 (installed 3.5.11)

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

The topic post up frequently please use search and review Collabora integration guide for details. There are also references to related posts

Thanks for youre answer. I read this documentation. And check my configuration.
In the Docker-container Nextcloud:

curl https://collabora.mysite.de/hosting/discovery

Answer was OK: Right Site for collabora was configured.

In the Docker-container collabora

curl https://nextcloud.mysite.de/hosting/discovery

OK. Get some answers. Right Site for Nextcloud was configured.

In the Docker-container collabora:

curl https://nextcloud.mysite.de/status.php
{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"32.0.1.2","versionstring":"32.0.1","edition":"","productname":"Nextcloud","extendedSupport":false}

In the Nextcloud Container ist the richdocuments enabled

occ config:app:set richdocuments wopi_url --value https://collabora.mysite.de 

Answer: Config value were not updated

occ richdocuments:activate-config

✓ Reset callback url autodetect
Checking configuration
🛈 Configured WOPI URL: https://collabora.mysite.de
🛈 Configured public WOPI URL: https://collabora.mysite.de
🛈 Configured callback URL:

✓ Fetched /hosting/discovery endpoint
✓ Valid mimetype response
✓ Valid capabilities entry
✓ Fetched /hosting/capabilities endpoint
✓ Detected WOPI server: Collabora Online Development Edition 25.04.7.1

Collabora URL (used for Nextcloud to contact the Collabora server):
https://collabora.mysite.de
Collabora public URL (used in the browser to open Collabora):
https://collabora.mysite.de
Callback URL (used by Collabora to connect back to Nextcloud):
autodetected (will use the same URL as your user for browsing Nextcloud)

I check the Adminsettings / Office

and test to open an docx file:

I don’t now what ist wrong or what can i check at next. Do you have any ideas?

BR

Jan

But not completely. - Scroll down in this window and check the authorized WOPI-URL.
If there is/are local IP-addresse(s) inserted, they may be wrong.

In normal case you access to Nextcloud over your public IP-address. So the authorized WOPI address may be set to 0.0.0.0 or the public IP. But the public IP changes frequentliy on dial-in router connections.

Edit: the correct IP-address is 0.0.0.0/0 (see below)

Hi,

thanks for you’re help.

I change the WOPI address to 0.0.0.0. bit it dosn’z work. The same error.

Do you see my mistakes?

BR
Jan

That looks good. But I found out, that after the URI of your Collabora Online Server the port number seems to be missing (1st screenshot).
What about the certificate-validation? Do you get an error, if you remove the mark?

@JanNi do you want to try this: Collabora CODE for Nextcloud with Docker

later Office versions (8.x.x) require a / slash at the end of your URL to connect successfully!

1 Like

if you want to allow all IPv4 addresses use 0.0.0.0/0 otherwise you only allow the single IPv4 address 0.0.0.0 which doesn’t exist :wink: I would recommend you look at the logs (“docker logs $collabora_container_name” and “docker logs $nextcloud_container_name” for docker setup) to see which address is used.. often it is your public IP but could be local lan as well depending on setup.. look at wopi_allowlist for more discussions

Hi everyone,
I adjusted the wopi-allowlist to the setting 0.0.0.0/0. After that, I was able to open Office documents in Netcloud. Thank you so much for your help. You put me on the right track, and I learned something new.

BR Jan

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.