# Connection timeout with Collabora Office

**URL:** <https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076>\
**Category:** ℹ️ Support\
**Tags:** docker, nc29, curl\_err\_28, office, collabora-online, aio, collabora-built-in\
**Created:** [September 16, 2024, 2:57am UTC](https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076 "2024-09-16T02:57:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixart](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pixart/32/64607_2.png) [@pixart](https://help.nextcloud.com/u/pixart)\
**Post date:** [September 16, 2024, 2:57am UTC](https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076/1 "2024-09-16T02:57:14Z")

</div>

Error:

> Failed to connect to the remote server: cURL error 28: Connection timed out after 5002 milliseconds (see [libcurl - Error Codes](https://curl.haxx.se/libcurl/c/libcurl-errors.html)) for [https://nc.example.com/custom\_apps/richdocumentscode/proxy.php?req=/hosting/discovery](https://nc.example.com/custom_apps/richdocumentscode/proxy.php?req=/hosting/discovery).

When downloading odt, docx, excel… files. **infinite download**. I realized that I need to install collabora office from the app store (My docker collabora container is running).  
I think the built-in CODE for small tasks will be enough for me.  
At first I was getting timeout errors due to collabora, but they were fixed by increasing the timeout in the nextcloud container configuration. But now I am getting the same error above  
I am behind NAT ( **Any access from local network to my external ip will fail** ). Normal connection speed is ~20 Mbps

> /etc/hosts:

```auto
127.0.0.1 localhost
127.0.1.1 servername

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1	kubernetes.docker.internal
# End of section

```

> $ curl -vvvv https://$NC\_DOMAIN:443/hosting/discovery (from nextcloud container)

```auto
* Host nc.example.com:443 was resolved.
* IPv6: (none)
* IPv4: 91.xxx.xxx.37
* Trying 91.xxx.xxx37:443...
* connect to 91.xxx.xxx.37 port 443 from 172.20.0.8 port 53080 failed: Operation timed out
* Failed to connect to nc.example.com port 443 after 136063 ms: Could not connect to server
* closing connection #0
curl: (28) Failed to connect to nc.example.com port 443 after 136063 ms: Could not connect to server

```

> $ curl -vvvv https://$NC\_DOMAIN:443/standalone-signaling/api/v1/welcome (from nextcloud container)

```auto
* Host nc.example.com:443 was resolved.
* IPv6: (none)
* IPv4: 91.xxx.xxx.37
* Trying 91.xxx.xxx.37:443...
* connect to 91.xxx.xxx.37 port 443 from 172.20.0.8 port 58006 failed: Operation timed out
* Failed to connect to nc.example.com port 443 after 136231 ms: Could not connect to server
* closing connection #0
curl: (28) Failed to connect to nc.example.com port 443 after 136231 ms: Could not connect to server

```

 ![Снимок экрана от 2024-09-16 08-10-06](https://help.nextcloud.com/uploads/default/original/3X/f/5/f523841860ee29457cb6591de2343bdc50bf18e9.png)

I’m inexperienced in networking, so please point out what’s wrong, I’d be very grateful!  
Ubuntu server 24.04 LTS, Nextcloud AIO 29.0.6.

---

<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:** [September 16, 2024, 8:50am UTC](https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076/2 "2024-09-16T08:50:40Z")

</div>

> [@pixart](#):
>
> `Failed to connect to nc.example.com port 443`

Looks like this is your issue. Most likely your router or networking infrastructure does not allow the container to connect to its domain via the external ip-address.

You can fix this by following [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-can-i-access-nextcloud-locally)

---

<div class="post-metadata">

**Author:** ![pixart](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pixart/32/64607_2.png) [@pixart](https://help.nextcloud.com/u/pixart)\
**Post date:** [September 16, 2024, 1:25pm UTC](https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076/3 "2024-09-16T13:25:31Z")

</div>

That helped, I configured dnsmasq.  
But now I got a new errors

`Could not find urlsrc for application/vnd.openxmlformats-officedocument.wordprocessingml.document in WOPI discovery response`  
and  
`Didn't find urlsrc for mimetype application/vnd.openxmlformats-officedocument.wordprocessingml.document in this WOPI discovery response: <html><body> <h1>Socket proxy error</h1> <p>Error: no_glibc</p> </body></html`

installed everything according to the instructions  
I checked Callabora Office when installing, the container started successfully on port 9980.  
Some say to downgrade the richdocuments version, others say to wait…  
**Apparently there is something with “no\_glibc”, I’m not familiar with php, I don’t understand what this could mean**

---

<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:** [September 18, 2024, 6:17am UTC](https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076/6 "2024-09-18T06:17:55Z")

</div>

no\_glibc and the URL `../custom_apps/richdocumentscode/proxy.php?req=/hosting/discovery` makes me think you mix up installation methods. similar to [Built-in CODE error: Didn't find urlsrc for mimetype application](https://help.nextcloud.com/t/built-in-code-error-didnt-find-urlsrc-for-mimetype-application/204199) AiO doesn’t use built-in CODE (and the respective app in not required) it runs separate CODE container and the CODE URL configured in Nextcloud Office settings should be `https://cloud.mydomain.tld/hosting/discovery` which in turn must be accessible from the cloud and client as described in [Collabora integration guide](https://help.nextcloud.com/t/collabora-integration-guide/151879)…

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 26, 2024, 6:18am UTC](https://help.nextcloud.com/t/connection-timeout-with-collabora-office/204076/7 "2024-09-26T06:18:35Z")

</div>

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