# Nextcloud not saving Collabora url

**URL:** <https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616>\
**Category:** 📄 Office\
**Tags:** docker, wopi, curl\_err\_28, collabora-online, aio, docker-compose\
**Created:** [August 13, 2024, 12:18am UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616 "2024-08-13T00:18:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rinkfaraway](https://help.nextcloud.com/letter_avatar/rinkfaraway/32/6_449c533f586939b6e5f246632a46421f.png) [@rinkfaraway](https://help.nextcloud.com/u/rinkfaraway)\
**Post date:** [August 13, 2024, 12:18am UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/1 "2024-08-13T00:18:29Z")

</div>

Nextcloud version: Nextcloud AIO v9.4.1  
Operating system and version: 6.10.2-arch1-1 (64-bit)  
Collabora version: 24.04.6.1

The issue you are facing:  
Upon my host’s nightly restart, Nextcloud forgets the appropriate collabora url. Docker-compose down does not do the same thing.  
Here’s what it’s supposed to look like (and works when I do it manually):

 ![image](https://help.nextcloud.com/uploads/default/original/3X/8/7/87d1c3aab610aef585e6c97e12ca5f30fd728baf.png)  
Here’s what it looks like after a host restart:  
 ![image](https://help.nextcloud.com/uploads/default/original/3X/7/6/76f3dc050161943a3dbcef464564b4278b26f053.png)

based on guides like: [Nextcloud won't save the Collabora online wopi\_url setting](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818) I tried a few config env variables in collabora without success.

```auto
    environment:
      - wopi_url=https://collabora.wallaby-gopher.ts.net
      - server_name=https://collabora.wallaby-gopher.ts.net
      - COLLABORA_DOMAIN=https://collabora.wallaby-gopher.ts.net

```

There’s not really any errors beyond “Can’t connect to the wrong server”, which isn’t particularly helpful. Any ideas?

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [August 13, 2024, 9:49pm UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/2 "2024-08-13T21:49:27Z")

</div>

Hi, you probably need this: [GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.](https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-keep-disabled-apps)

---

<div class="post-metadata">

**Author:** ![rinkfaraway](https://help.nextcloud.com/letter_avatar/rinkfaraway/32/6_449c533f586939b6e5f246632a46421f.png) [@rinkfaraway](https://help.nextcloud.com/u/rinkfaraway)\
**Post date:** [August 14, 2024, 12:22am UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/3 "2024-08-14T00:22:51Z")

</div>

Hi, I’m not sure anything is pertinent on that page. While there are a few mentions of Collabora/WOPI, none of them apply to saving them inside the administrator settings or docker-compose. Could you please specify on what you saw that was helpful?

---

<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:** [August 14, 2024, 2:14pm UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/4 "2024-08-14T14:14:51Z")

</div>

I think there is some AiO internal logic which is supposed to run CODE on the same URL as NC.

@szaimen the user runs strange setup with tailscale VPN and runs separated CODE (as the one from AiO didn’t work) [New AiO installation behind caddy and tailscale, Collabora not connecting? - #11 by rinkfaraway](https://help.nextcloud.com/t/new-aio-installation-behind-caddy-and-tailscale-collabora-not-connecting/200159/11) what is the right way to run AiO with with external CODE?

---

<div class="post-metadata">

**Author:** ![ImHotiDog](https://help.nextcloud.com/user_avatar/help.nextcloud.com/imhotidog/32/61794_2.png) [@ImHotiDog](https://help.nextcloud.com/u/ImHotiDog)\
**Post date:** [August 15, 2024, 3:31pm UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/5 "2024-08-15T15:31:27Z")

</div>

Does editing of docs and files work in collabora, does it disconnect after restart or does it never connect fully? Like are you able to edit files.  
Could you try to disable cert verification from what i have heard tailscale grants own certs for its env.  
The stuff below is just something to keep in mind:

Could you try doing this change:

```auto
      - wopi_url=https://LINKTOYOURNEXTCLOUDINSTANCE #Which domains are allowed to connect.
      - server_name=https://collabora.wallaby-gopher.ts.net # To specify collaboras server name
      - COLLABORA_DOMAIN=https://collabora.wallaby-gopher.ts.net # To specify where collabora will be hosted

```

Also i see im 3 days late so you might already have fixed the problem or moved on.  
Goodluck!

---

<div class="post-metadata">

**Author:** ![rinkfaraway](https://help.nextcloud.com/letter_avatar/rinkfaraway/32/6_449c533f586939b6e5f246632a46421f.png) [@rinkfaraway](https://help.nextcloud.com/u/rinkfaraway)\
**Post date:** [August 15, 2024, 5:05pm UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/6 "2024-08-15T17:05:15Z")

</div>

> [@ImHotiDog](#):
>
> Also i see im 3 days late so you might already have fixed the problem or moved on.  
> Goodluck!

Yup, still working on it 3 days later haha. Thanks for helping!

> [@ImHotiDog](#):
>
> Does editing of docs and files work in collabora, does it disconnect after restart or does it never connect fully? Like are you able to edit files.  
> Could you try to disable cert verification from what i have heard tailscale grants own certs for its env.

Yes, I can open and edit documents when I manually change the url to the correct one every day after the restart. It saves the incorrect url so it never connects properly until I change it again.  
Could you try doing this change:

> [@ImHotiDog](#):
>
> ```auto
> - wopi_url=https://LINKTOYOURNEXTCLOUDINSTANCE #Which domains are allowed to connect.
> - server_name=https://collabora.wallaby-gopher.ts.net # To specify collaboras server name
> - COLLABORA_DOMAIN=https://collabora.wallaby-gopher.ts.net # To specify where collabora will be hosted
> 
> ```

I’d only ever tried running one of those environmental variables at once.  
With all three for some reason it just points to https when it connects, but now files **DON’T** open like they were when I was manually inputting the url.

 ![image](https://help.nextcloud.com/uploads/default/original/3X/2/c/2cfa306450049df0370f671a53e464fc3d74f0c4.png)  
and after a restart we’re back to nextcloud instead of collabora again  
 ![image](https://help.nextcloud.com/uploads/default/original/3X/b/d/bd25ba2f8416d7e6e59cd5955f1ca83cc5222e22.png)  
Commenting `- server_name=https://collabora.wallaby-gopher.ts.net` lets the documents open again, but again, upon restart back to nextcloud.

I’m able to open documents with and without disabling certificates when server\_name isn’t used.

I notice in the nextcloud log it says collabora is still the public WOPI even though we set it to nextcloud.

```auto
Checking configuration

🛈 Configured WOPI URL: https://nextcloud.wallaby-gopher.ts.net

🛈 Configured public WOPI URL: https://collabora.wallaby-gopher.ts.net

🛈 Configured callback URL: 

Failed to fetch discovery endpoint from https://nextcloud.wallaby-gopher.ts.net

cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.wallaby-gopher.ts.net/hosting/discovery

```

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [August 15, 2024, 5:22pm UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/7 "2024-08-15T17:22:37Z")

</div>

> [@szaimen](#):
>
> probably need this: [GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.](https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-keep-disabled-apps)

This is the correct advice. Disabling collabora in the AIO interface should allow you to keep your domain and the app installed.

---

<div class="post-metadata">

**Author:** ![rinkfaraway](https://help.nextcloud.com/letter_avatar/rinkfaraway/32/6_449c533f586939b6e5f246632a46421f.png) [@rinkfaraway](https://help.nextcloud.com/u/rinkfaraway)\
**Post date:** [August 15, 2024, 9:25pm UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/8 "2024-08-15T21:25:05Z")

</div>

Hello, I removed those previously discussed variables and added `- NEXTCLOUD_KEEP_DISABLED_APPS=true` to nextcloud’s env, but upon restart we still have the wrong url. I added the variables back in again (less the server\_name) and behavior was the same. In the admin logs I’m getting a lot of repeat errors:

```auto
[no app in context] Fatal: Could not boot files_trackdownloads: Call to undefined method OC\Server::getEventDispatcher()
	GET /apps/logreader/api/log?offset=50&query=
	from 100.122.199.7 by admin at Aug 15, 2024, 4:01:55 PM

```

Saying that it allowed me to keep the old app installed got me thinking though

 ![image](https://help.nextcloud.com/uploads/default/original/3X/a/4/a47770bffdc6bb036bc1325ad63856c939891258.png)  
I thought this bugger would be minding its own buisness as long as I wasn’t using the CODE, wrong! I disabled it and now the right url is saved without any extra vars necessary. Thanks everyone!

---

<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:** [May 22, 2025, 5:57am UTC](https://help.nextcloud.com/t/nextcloud-not-saving-collabora-url/200616/9 "2025-05-22T05:57:30Z")

</div>


