# Collabora + Nextcloud : Document loading failed

**URL:** <https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278>\
**Category:** Support\
**Tags:** english\
**Created:** [October 30, 2026, 1:54pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278 "2026-10-30T13:54:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimmp](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@dimmp](https://forum.yunohost.org/u/dimmp)\
**Post date:** [October 30, 2026, 1:54pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/1 "2026-10-30T13:54:55Z")

</div>

### I have searched the forum for similar issues

on

### This category is for general issues(=something is broken) regarding YunoHost, _NOT_ apps.

on

### This form is written in English but feel free to write in French if you’re more comfortable!

on

### What type of hardware are you using

VPS bought online

### What YunoHost version are you running

12.1.41.2

### How are you able to access your server

SSH

### Describe your issue

After a fresh install of the Collabora app, with its proper Nextcloud configuration, opening files led to a `Document loading failed` error with the message `Unauthorized WOPI host. Please try again later and report to your administrator if the issue persists.`.

### Share relevant logs or error messages

Oct 29 16:11:06 coolwsd[35045]: wsd-35045-35065 2026-10-29 16:11:06.805337 [websrv\_poll] ERR #25: WOPI::CheckFileInfo returned 403 (Forbidden) Forbidden for URI [https://\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/index.php/apps/richdocuments/wopi/files/30541\_oc0cljwsm7sd?access\_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx&access\_token\_ttl=0]. Headers: Server: nginx / Date: Thu, 29 Oct 2026 16:11:06 GMT / Content-Type: application/json; charset=utf-8 / Content-Length: 2 / Connection: keep-alive / X-SSO-WAT: You’ve just been SSOed / Set-Cookie: oc0cljwsm7sd=b589999ada11f3d667260a649e0d9415; path=/cloud; secure; HttpOnly; SameSite=Lax / X-Request-Id: xft6YrBiTrfYey0UpSi6 / Cache-Control: no-cache, no-store, must-revalidate / Content-Security-Policy: upgrade-insecure-requests / Feature-Policy: autoplay ‘none’;camera ‘none’;fullscreen ‘none’;geolocation ‘none’;microphone ‘none’;payment ‘none’ / X-Robots-Tag: noindex, nofollow / X-Content-Type-Options: nosniff / X-XSS-Protection: 1; mode=block / X-Download-Options: noopen / X-Permitted-Cross-Domain-Policies: none / X-Frame-Options: SAMEORIGIN / Permissions-Policy: interest-cohort=() / Strict-Transport-Security: max-age=63072000; includeSubDomains; preload / Referrer-Policy: no-referrer Body: []|home/collabora/jenkins/workspace/package\_code\_26.04\_rpm/rpmbuild/BUILD/coolwsd-26.04.5.2/wsd/wopi/CheckFileInfo.cpp:100

---

<div class="post-metadata">

**Author:** ![dimmp](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@dimmp](https://forum.yunohost.org/u/dimmp)\
**Post date:** [October 30, 2026, 1:56pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/2 "2026-10-30T13:56:28Z")

</div>

I could fix this by adding in `/etc/coolwsd/coolwsd.xml`, as first child of ``<config><storage><wopi> ... </wopi></storage></config>`` the following:

```auto
<alias_groups desc="default mode is 'first' it allows only the first host when groups are not defined. set mode to 'groups' and define group to allow multiple host and its aliases" mode="groups">
         <group>
            <host allow="true">https://mywebsite.net:443</host>
         </group>
</alias_groups>

```

---

<div class="post-metadata">

**Author:** ![dimmp](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@dimmp](https://forum.yunohost.org/u/dimmp)\
**Post date:** [October 30, 2026, 1:57pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/3 "2026-10-30T13:57:34Z")

</div>

As a bonus: Adding my IP to the “Allow list for WOPI requests” field in the Nextcloud admin settings didn’t work, instead I executed `grep "richdocuments/wopi" /var/log/nginx/*access*.log | tail -5` to get the actual IP used with `COOLWSD HTTP Agent` when opening a document.

---

<div class="post-metadata">

**Author:** ![sebh](https://forum.yunohost.org/user_avatar/forum.yunohost.org/sebh/32/14047_2.png) [@sebh](https://forum.yunohost.org/u/sebh)\
**Post date:** [October 30, 2026, 7:43pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/4 "2026-10-30T19:43:44Z")

</div>

Thanks for the write-up, the grep on the nginx logs to find the real WOPI IP is a nice trick. Just keep in mind that a manual edit in /etc/coolwsd/coolwsd.xml may be overwritten when the Collabora app is upgraded, since YunoHost regenerates its config files. Worth keeping a note of the change, or checking after each upgrade.

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [October 31, 2026, 9:36pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/5 "2026-10-31T21:36:45Z")

</div>

Sorry,

Did you keep or remove the lines by default ?

```auto
        <wopi desc="Allow/deny wopi storage." allow="true">
            <host desc="Regex pattern of hostname to allow or deny." allow="true"> __NEXTCLOUD_DOMAIN__ </host>
            <host desc="Regex pattern of hostname to allow or deny." allow="true">10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host>
            <host desc="Regex pattern of hostname to allow or deny." allow="true">172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3}</host>
            <host desc="Regex pattern of hostname to allow or deny." allow="true">172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3}</host>
            <host desc="Regex pattern of hostname to allow or deny." allow="true">172\.3[01]\.[0-9]{1,3}\.[0-9]{1,3}</host>
            <host desc="Regex pattern of hostname to allow or deny." allow="true">192\.168\.[0-9]{1,3}\.[0-9]{1,3}</host>
            <host desc="Regex pattern of hostname to allow or deny." allow="false">192\.168\.1\.1</host>

            <max_file_size desc="Maximum document size in bytes to load. 0 for unlimited." type="uint">0</max_file_size>

            <locking desc="Locking settings">
                <refresh desc="How frequently we should re-acquire a lock with the storage server, in seconds (default 15 mins) or 0 for no refresh" type="int" default="900">900</refresh>
            </locking>
        </wopi>

```

---

<div class="post-metadata">

**Author:** ![dimmp](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@dimmp](https://forum.yunohost.org/u/dimmp)\
**Post date:** [November 3, 2026, 2:43pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/6 "2026-11-03T14:43:24Z")

</div>

I kept every other lines, based on the doc they should get ignored due to `mode="groups"`.

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [November 3, 2026, 3:18pm UTC](https://forum.yunohost.org/t/collabora-nextcloud-document-loading-failed/43278/7 "2026-11-03T15:18:51Z")

</div>

> <https://github.com/YunoHost-Apps/collabora_ynh/pull/134/files>
>
> Add the ability to use collabora servers with extra WOPI hosts
