Onlyoffice kill Nextcloud when I added files Timeout response: error code: 504 and upstream timed out (110: Connection timed out)

Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail:

I would like Onlyoffice to convert files correctly and open them in NextCloud. Unfortunately, now when Onlyoffice is enabled, NextCloud freezes and does not respond after adding new files.

For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:
When I start OpenOffice, I get the following message:

[2025-09-04T06:41:49.195] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: 20
[2025-09-04T06:41:49.196] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-09-04T06:41:49.200] [WARN] [localhost] [docId] [userId] nodeJS - worker 879 started.
[2025-09-04T06:41:49.200] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: 20
[2025-09-04T06:41:49.201] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-09-04T06:42:04.350] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: 20
[2025-09-04T06:42:04.351] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-09-04T06:42:04.354] [WARN] [localhost] [docId] [userId] nodeJS - worker 1209 started.
[2025-09-04T06:42:04.355] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: 20
[2025-09-04T06:42:04.355] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

Log File:

[1]+  Stopped                 docker stats OnlyOfficeDocumentServer
root@KulisUnRaid:~# docker exec -it OnlyOfficeDocumentServer tail -n 100 /var/log/onlyoffice/documentserver/docservice/out.log
[2025-09-03T21:08:24.829] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2025-09-03T21:08:24.834] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-03T21:08:24.834] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-03T21:08:24.991] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 9.0.4. Build: 50
[2025-09-03T21:08:39.391] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2025-09-03T21:08:39.396] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-03T21:08:39.396] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-03T21:08:39.497] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 9.0.4. Build: 50
[2025-09-04T06:39:16.264] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2025-09-04T06:39:16.269] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:39:16.269] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:39:16.394] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 9.0.4. Build: 50
[2025-09-04T06:39:30.361] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2025-09-04T06:39:30.366] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:39:30.366] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:39:30.466] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 9.0.4. Build: 50
[2025-09-04T06:41:49.353] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2025-09-04T06:41:49.358] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:41:49.358] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:41:49.462] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 9.0.4. Build: 50
[2025-09-04T06:42:02.984] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2025-09-04T06:42:02.989] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:42:02.989] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-09-04T06:42:03.094] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 9.0.4. Build: 50

When I added files to NextCloud:

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2025-09-04T06:52:19.455] [ERROR] [localhost] [2543239713] [userId] nodeJS - error downloadFile:url=https://nextcloud.webbpages.com/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6ODMwLCJ1c2VySWQiOiJLdWxpcyJ9.GhJy9rVgNMNhaMgm2qW1FJrFqKNN8DM7WRRE1ueQICg;attempt=1;code:ERR_BAD_RESPONSE;connect:undefined AxiosError: Request failed with status code 504
    at settle (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleResponse (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:536:35)
    at RedirectableRequest._processResponse (/snapshot/server/Common/node_modules/follow-redirects/index.js:409:10)
    at ClientRequest.<anonymous> (/snapshot/server/Common/node_modules/follow-redirects/index.js:102:12)
    at Object.onceWrapper (node:events:639:26)
    at ClientRequest.emit (node:events:524:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:702:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
    at TLSSocket.socketOnData (node:_http_client:544:22)
    at Axios.request (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/server/Common/sources/utils.js)

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2025/09/04 06:52:19 [error] 9475#9475: *130 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=2543239713 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=2543239713", host: "onlyoffice.webbpages.com"
2025/09/04 06:52:19 [error] 9475#9475: *132 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=1316968210 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=1316968210", host: "onlyoffice.webbpages.com"
2025/09/04 06:52:19 [error] 9475#9475: *134 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=3117703769 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=3117703769", host: "onlyoffice.webbpages.com"
2025/09/04 06:52:19 [error] 9475#9475: *136 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=858906425 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=858906425", host: "onlyoffice.webbpages.com"
2025/09/04 06:52:20 [error] 9475#9475: *138 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=217924490 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=217924490", host: "onlyoffice.webbpages.com"

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2025-09-04T06:53:20.506] [ERROR] [localhost] [2543239713] [userId] nodeJS - error downloadFile:url=https://nextcloud.webbpages.com/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6ODMwLCJ1c2VySWQiOiJLdWxpcyJ9.GhJy9rVgNMNhaMgm2qW1FJrFqKNN8DM7WRRE1ueQICg;attempt=2;code:ERR_BAD_RESPONSE;connect:undefined AxiosError: Request failed with status code 504
    at settle (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleResponse (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:536:35)
    at RedirectableRequest._processResponse (/snapshot/server/Common/node_modules/follow-redirects/index.js:409:10)
    at ClientRequest.<anonymous> (/snapshot/server/Common/node_modules/follow-redirects/index.js:102:12)
    at Object.onceWrapper (node:events:639:26)
    at ClientRequest.emit (node:events:524:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:702:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
    at TLSSocket.socketOnData (node:_http_client:544:22)
    at Axios.request (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/server/Common/sources/utils.js)

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2025/09/04 06:53:19 [error] 9475#9475: *140 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=3744946139 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=3744946139", host: "onlyoffice.webbpages.com"
2025/09/04 06:53:19 [error] 9475#9475: *142 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=2826449327 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=2826449327", host: "onlyoffice.webbpages.com"
2025/09/04 06:53:19 [error] 9475#9475: *144 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=3789763150 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=3789763150", host: "onlyoffice.webbpages.com"
2025/09/04 06:53:19 [error] 9475#9475: *146 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=3440907233 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=3440907233", host: "onlyoffice.webbpages.com"
2025/09/04 06:53:20 [error] 9475#9475: *148 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "POST /converter?shardKey=410152126 HTTP/1.1", upstream: "http://127.0.0.1:8000/converter?shardKey=410152126", host: "onlyoffice.webbpages.com"

Document Server version:
9.0.4

Type of installation of the Document Server (docker, deb/rpm, exe, please point us to the installation guide that you used as well):
Docker

Connector version:
9.0.4.50

DMS (platform) version:
Linux from LinuxServers Docker.

OS:
Unraid

Browser version:
OperaGX 121.0.5600.47/Safari

Additional information:
It seems to me that most of the time everything worked fine when I added individual files. OpenOffice is on DNS via Cloudflare.

Any relevant details about the situation. If you’ve modified configuration files or are using a proxy server that might affect the situation, please mention it. You can also attach images and videofile to the post (or to place them to external storage).

I use CloudFlare and Nginx.

Hello @Kulis

First of all, note that you are referencing here version of Document Server:

Please find version of the connector app in Nextcloud > Apps > Installed or Active. Please specify version of Nextcloud too.

Also, please let me know if:

  • both Document Server and Nextcloud are mutually accessible to each other (simple wget to each resource should do the trick);
  • Document Servers’ integrated test example works (go to Document Servers’ address to find instruction on how to activate it and GO TO TEST EXAMPLE button;
  • Document Server and Nextcloud are installed on the same server or different ones;
  • if any service (CloudFare or Nginx) are configured as proxy.