DocEditor Fetch Error (Docker version)

I install DocSpace docker version in Ubuntu.

When I create some ‘ONLYOFFICE Sample Spreadsheets’ in document menu,
but The following message was displayed and the page could not be accessed.

’ Application error: a server-side exception has occurred (see the server logs for more information).

Digest: 228448273’

I checked DocEditor docker container logs, and I found the below logs.

----------- log in DocEditor container --------------
initDocEditor failed TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:454:9)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
[cause]: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (node:internal/deps/undici/undici:2331:28)
at node:internal/deps/undici/undici:2283:50
at Immediate._onImmediate (node:internal/deps/undici/undici:2315:13)
at process.processImmediate (node:internal/timers:483:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
code: ‘UND_ERR_CONNECT_TIMEOUT’
}
}
TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:454:9)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
[cause]: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (node:internal/deps/undici/undici:2331:28)
at node:internal/deps/undici/undici:2283:50
at Immediate._onImmediate (node:internal/deps/undici/undici:2315:13)
at process.processImmediate (node:internal/timers:483:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
code: ‘UND_ERR_CONNECT_TIMEOUT’
}
}

[Execution environment information]

  • Ubuntu : 18.04.6 LTS
  • Docker : 24.0.2

Is there any solution to the above issue?

Hello @lagnarok

Can you make a screenshot of this message?

Additionally, please share output of the docker ps executed from the machine where DocSpace is installed.

Unfortunately, I can’t upload screenshot about this issue for security in my office.

But, I sent docker container list in my server using ‘docker ps’ command.
Please refer below.

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6dc9510c1dd5 onlyoffice/docspace-healthchecks:2.6.2.1 “./docker-healthchec…” 8 days ago Up 8 days 5050/tcp onlyoffice-healthchecks
387d23f954a0 onlyoffice/docspace-notify:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-notify
7134cf932173 nginx:latest “/docker-entrypoint.…” 8 days ago Up 8 days (healthy) 0.0.0.0:80->80/tcp, :::80->80/tcp onlyoffice-proxy
0ecaebd0a36a onlyoffice/docspace-router:2.6.2.1 “/docker-entrypoint.…” 8 days ago Up 8 days (healthy) 8081/tcp, 8092/tcp, 8099/tcp onlyoffice-router
a6bc0fc6c3bc onlyoffice/docspace-backup-background:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-backup-background-tasks
ae493dd2cff8 onlyoffice/docspace-ssoauth:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days 5050/tcp, 9834/tcp onlyoffice-ssoauth
3ccae97f594d onlyoffice/docspace-api:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-api
772a7f75db4f onlyoffice/docspace-people-server:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-people-server
c9b57629f8be onlyoffice/docspace-login:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5011/tcp, 5050/tcp onlyoffice-login
67a651522708 onlyoffice/docspace-files:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-files
774b5e01ef48 onlyoffice/docspace-doceditor:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5013/tcp, 5050/tcp onlyoffice-doceditor
e04cc00b69bd onlyoffice/docspace-backup:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-backup
04727cb607a8 onlyoffice/docspace-socket:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days 5050/tcp onlyoffice-socket
f87dcab77eec onlyoffice/docspace-studio:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-studio
5c06555d1479 onlyoffice/docspace-clear-events:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-clear-events
fe11ba696bb6 onlyoffice/docspace-studio-notify:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-studio-notify
c176273c5535 onlyoffice/docspace-files-services:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-files-services
c8e4bacc1598 onlyoffice/docspace-api-system:2.6.2.1 “python3 docker-entr…” 8 days ago Up 8 days (healthy) 5050/tcp onlyoffice-api-system
d27015fffede onlyoffice/docspace-migration-runner:2.6.2.1 “./docker-migration-…” 8 days ago Exited (0) 8 days ago onlyoffice-migration-runner
16b5f1ba9945 onlyoffice/documentserver-ee:8.1.3.2 “/app/ds/run-documen…” 8 days ago Up 8 days (healthy) 80/tcp, 443/tcp onlyoffice-document-server
6f60bc3a5572 redis:7 “docker-entrypoint.s…” 8 days ago Up 8 days (healthy) 6379/tcp onlyoffice-redis
1a93795e9bb0 rabbitmq:3 “docker-entrypoint.s…” 8 days ago Up 8 days (healthy) 80/tcp, 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp onlyoffice-rabbitmq
432582f709a8 mysql:8.3.0 “docker-entrypoint.s…” 8 days ago Up 8 days (healthy) 33060/tcp, 0.0.0.0:33060->3306/tcp, :::33060->3306/tcp onlyoffice-mysql-server
32ae3a467860 fluent/fluent-bit:3.0.2 “/fluent-bit/bin/flu…” 8 days ago Up 8 days 2020/tcp onlyoffice-fluent-bit
3c440627ed77 opensearchproject/opensearch-dashboards:2.11.1 “./opensearch-dashbo…” 8 days ago Up 8 days (healthy) 5601/tcp onlyoffice-opensearch-dashboards
a7788f2179e9 onlyoffice/opensearch:2.11.1 “./opensearch-docker…” 8 days ago Up 8 days (healthy) 9300/tcp, 9600/tcp, 127.0.0.1:9200->9200/tcp, 9650/tcp onlyoffice-opensearch

I will send screenshot as soon as solving security issues in my office.

Thanks.

Looking forward to it. Right now I cannot visualize what kind of issue you are facing.

By the way, also let me know if DocSpace is inside local network (without access to Internet) and if any proxy is used.

I checked about your answer, and I found our office use some proxy.

So, could you guide me on how to set up a proxy in ‘DocEditor’ container?

Once I checked that there is a node.js program in the container, the same issue occurred when I configured the source as follows and restart the ‘DocEditor’ container.

… [Existing Source] …

process.env.http_proxy = [proxy server];
process.env.https_proxy = [proxy server];
process.env.NODE_TLS_REJECT_UNAUTHORIZED = ‘0’;

… [Existing Source] …

In addition, I would like to ask if there is a way to change the environment variable settings of the ‘DocEditor’ container.

I changed .env file in ‘/app/onlyoffice’ and restarted ‘DocEditor’ container, but environment variable was not changed.
(I changed ‘LOG_LEVEL’ variable (Warning → Debug) to view the detailed log)

Thanks.

Please see this article:

Stop container, remove it and start new one with required variables.
In case of log level, you can edit /etc/onlyoffice/documentserver/log4js/production.json config by changing "level" to "DEBUG" and restarting services with supervisorctl restart all from inside the container.

I checked the proxy setting document that you guided.
However, the document appears to be a guide to the [user] → [web proxy server] → [doc space] model.

As shown in the screen below, the DocSpace is currently connected.

(Sorry, I try to attach some screenshot image, but I can’t upload it because the following message came out - ‘An error occurred: Sorry, new users can only put one embedded media item in a post.’
If you tell me your e-mail address separately, I will send you the image through that e-mail.)

But, when we create some document like excel, word and so on, the document is not created when the message ’ Application error: a server-side exception has occurred (see the server logs for more information). Digest: 228448273’ appears like below.

(Sorry, I try to attach some screenshot image, but I can’t upload it because the following message came out - ‘An error occurred: Sorry, new users can only put one embedded media item in a post.’
If you tell me your e-mail address separately, I will send you the image through that e-mail.)

Second, you gave me a log level guide as follows,

[
Stop container, remove it and start new one with required variables.
In case of log level, you can edit /etc/onlyoffice/documentserver/log4js/production.json config by changing "level" to "DEBUG" and restarting services with supervisorctl restart all from inside the container.
]

we can’t find ‘/etc/onlyoffice/’ folder in DocSpace server. Even on the ‘DocEditor’ docker container, that folder did not exist.

Please help me solve the above issues. Thanks.

I am sorry, but we do not have guides on how to deploy DocSpace behind proxy as it already uses complex proxy structure to provide communication of all services.