Can't use onlyoffice after migrating NC to new server (error nodeJS - error downloadFile)

Also attaching the folder structure and logs that you asked me before for both computers. Also, I want to note that onlyoffice-server container haven’t volumes. It means that after container reloading - the file system of the container will be reset to the initial statement. It is why you will have 4 logs. 2 computers, and 2 tests sessions in each. Each test session have two tests inside. 8 tests in total. Each log contains info from 2 tests. After each test session, I change the settings of onlyoffice-server container via the environment variable of the container (JWT_ENABLED: false/true)
Test session 1:

Test session 2:

  • JWT enabled, the extra server setting for the nextcloud (Дополнительные настройки сервера) is disabled.
  • JWT enabled, used extra settings for the nextcloud.

Computer 1, Test session 1.

root@0f77896e0227:/# cd /var/log/onlyoffice/documentserver/ ; ls -la
total 20
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:15 .
drwxr-xr-x 4 ds   ds   4096 Feb 28 10:15 ..
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:15 converter
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:15 docservice
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:15 metrics
-rw-r--r-- 1 root root    0 Feb 28 10:15 nginx.error.log
root@0f77896e0227:/var/log/onlyoffice/documentserver# cd converter/ ; ls -la
total 16
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:15 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:15 ..
-rw-r--r-- 1 root root    0 Feb 28 10:15 err.log
-rw-r--r-- 1 root root 4771 Feb 28 10:19 out.log
root@0f77896e0227:/var/log/onlyoffice/documentserver/converter# cat out.log 
[2023-02-28T10:15:46.950] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:15:46.961] [WARN] [localhost] [docId] [userId] nodeJS - worker 694 started.
[2023-02-28T10:15:46.963] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:16:17.793] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:16:17.800] [WARN] [localhost] [docId] [userId] nodeJS - worker 863 started.
[2023-02-28T10:16:17.802] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:19:47.444] [ERROR] [localhost] [conv_check_23617926_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.FasF9JGfxOAcfX89a0yTez9-yrX9LlhfvkB62ewgfrs;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 10:19:47 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T10:19:48.456] [ERROR] [localhost] [conv_check_23617926_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.FasF9JGfxOAcfX89a0yTez9-yrX9LlhfvkB62ewgfrs;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 10:19:48 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T10:19:49.465] [ERROR] [localhost] [conv_check_23617926_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.FasF9JGfxOAcfX89a0yTez9-yrX9LlhfvkB62ewgfrs;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 10:19:49 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
root@0f77896e0227:/var/log/onlyoffice/documentserver/converter# cd .. ; cd docservice/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:15 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:15 ..
-rw-r--r-- 1 root root    0 Feb 28 10:15 err.log
-rw-r--r-- 1 root root 1766 Feb 28 10:16 out.log
root@0f77896e0227:/var/log/onlyoffice/documentserver/docservice# cat out.log 
[2023-02-28T10:15:47.333] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T10:15:47.334] [WARN] [localhost] [docId] [userId] nodeJS - Set services.CoAuthoring.token.enable.browser, services.CoAuthoring.token.enable.request.inbox, services.CoAuthoring.token.enable.request.outbox in the Document Server config to prevent an unauthorized access to your documents and the substitution of important parameters in ONLYOFFICE Document Server requests.
[2023-02-28T10:15:47.336] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T10:15:47.431] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.3.0. Build: 184
[2023-02-28T10:16:16.228] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T10:16:16.229] [WARN] [localhost] [docId] [userId] nodeJS - Set services.CoAuthoring.token.enable.browser, services.CoAuthoring.token.enable.request.inbox, services.CoAuthoring.token.enable.request.outbox in the Document Server config to prevent an unauthorized access to your documents and the substitution of important parameters in ONLYOFFICE Document Server requests.
[2023-02-28T10:16:16.231] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T10:16:16.272] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.3.0. Build: 184
root@0f77896e0227:/var/log/onlyoffice/documentserver/metrics# cd .. ; cd metrics/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:15 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:15 ..
-rw-r--r-- 1 root root    0 Feb 28 10:15 err.log
-rw-r--r-- 1 root root  100 Feb 28 10:15 out.log
root@0f77896e0227:/var/log/onlyoffice/documentserver/metrics# cat out.log 
28 Feb 10:15:46 - [655] reading config file: ./config/config.js
28 Feb 10:15:46 - server is up INFO
root@0f77896e0227:/var/log/onlyoffice/documentserver/metrics# 

Computer 1, Test session 2

root@985c935d00a2:/# cd /var/log/onlyoffice/documentserver/
root@985c935d00a2:/var/log/onlyoffice/documentserver# ls -la
total 20
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:29 .
drwxr-xr-x 4 ds   ds   4096 Feb 28 10:28 ..
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:29 converter
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:29 docservice
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:29 metrics
-rw-r--r-- 1 root root    0 Feb 28 10:29 nginx.error.log
root@985c935d00a2:/var/log/onlyoffice/documentserver# cd converter/ ; ls -la
total 16
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:29 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:29 ..
-rw-r--r-- 1 root root    0 Feb 28 10:29 err.log
-rw-r--r-- 1 root root 4777 Feb 28 10:32 out.log
root@985c935d00a2:/var/log/onlyoffice/documentserver/converter# cat out.log 
[2023-02-28T10:29:01.889] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:29:01.898] [WARN] [localhost] [docId] [userId] nodeJS - worker 693 started.
[2023-02-28T10:29:01.900] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:29:33.901] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:29:33.909] [WARN] [localhost] [docId] [userId] nodeJS - worker 862 started.
[2023-02-28T10:29:33.910] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T10:32:56.547] [ERROR] [localhost] [conv_check_1803740406_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qnG99hPCHXLu_MrlEv0oaFPRFBcARJR8PCsvUDnh8Yc;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 10:32:56 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T10:32:57.555] [ERROR] [localhost] [conv_check_1803740406_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qnG99hPCHXLu_MrlEv0oaFPRFBcARJR8PCsvUDnh8Yc;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 10:32:57 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T10:32:58.562] [ERROR] [localhost] [conv_check_1803740406_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qnG99hPCHXLu_MrlEv0oaFPRFBcARJR8PCsvUDnh8Yc;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 10:32:58 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
root@985c935d00a2:/var/log/onlyoffice/documentserver/converter# cd .. ; cd docservice/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:29 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:29 ..
-rw-r--r-- 1 root root    0 Feb 28 10:29 err.log
-rw-r--r-- 1 root root 1000 Feb 28 10:29 out.log
root@985c935d00a2:/var/log/onlyoffice/documentserver/docservice# cat out.log 
[2023-02-28T10:29:02.254] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T10:29:02.257] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T10:29:02.359] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.3.0. Build: 184
[2023-02-28T10:29:32.331] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T10:29:32.334] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T10:29:32.374] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.3.0. Build: 184
root@985c935d00a2:/var/log/onlyoffice/documentserver/docservice# cd .. ; cd metrics/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 10:29 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 10:29 ..
-rw-r--r-- 1 root root    0 Feb 28 10:29 err.log
-rw-r--r-- 1 root root  100 Feb 28 10:29 out.log
root@985c935d00a2:/var/log/onlyoffice/documentserver/metrics# cat out.log 
28 Feb 10:29:01 - [654] reading config file: ./config/config.js
28 Feb 10:29:01 - server is up INFO
root@985c935d00a2:/var/log/onlyoffice/documentserver/metrics# 

Computer 2. Test session 1

root@56ee349e6664:/# cd /var/log/onlyoffice/documentserver/
root@56ee349e6664:/var/log/onlyoffice/documentserver# ls -la
total 20
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:32 .
drwxr-xr-x 4 ds   ds   4096 Feb 28 09:32 ..
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:32 converter
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:32 docservice
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:32 metrics
-rw-r--r-- 1 root root    0 Feb 28 09:32 nginx.error.log
root@56ee349e6664:/var/log/onlyoffice/documentserver# cd converter/ ; ls -la
total 24
drwxr-xr-x 2 ds   ds    4096 Feb 28 09:32 .
drwxr-xr-x 5 ds   ds    4096 Feb 28 09:32 ..
-rw-r--r-- 1 root root     0 Feb 28 09:32 err.log
-rw-r--r-- 1 root root 13150 Feb 28 09:45 out.log
root@56ee349e6664:/var/log/onlyoffice/documentserver/converter# cat out.log
[2023-02-28T09:32:30.000] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:32:30.009] [WARN] [localhost] [docId] [userId] nodeJS - worker 716 started.
[2023-02-28T09:32:30.011] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:33:00.952] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:33:00.961] [WARN] [localhost] [docId] [userId] nodeJS - worker 913 started.
[2023-02-28T09:33:00.964] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:42:09.473] [ERROR] [localhost] [conv_check_878523943_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:42:09 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:42:10.484] [ERROR] [localhost] [conv_check_878523943_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:42:10 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:42:11.491] [ERROR] [localhost] [conv_check_878523943_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:42:11 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:42:25.534] [ERROR] [localhost] [conv_check_435521866_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:42:25 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:42:26.541] [ERROR] [localhost] [conv_check_435521866_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:42:26 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:42:27.545] [ERROR] [localhost] [conv_check_435521866_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:42:27 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:45:46.785] [ERROR] [localhost] [conv_check_430651493_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:45:46 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:45:47.791] [ERROR] [localhost] [conv_check_430651493_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:45:47 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:45:48.798] [ERROR] [localhost] [conv_check_430651493_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.p-8J2ZjLloCQaTfw5SVgL6Twi7mkWydBKB5Cd09jsLY;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:45:48 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
root@56ee349e6664:/var/log/onlyoffice/documentserver/converter# cd .. ; cd docservice/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:32 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:32 ..
-rw-r--r-- 1 root root    0 Feb 28 09:32 err.log
-rw-r--r-- 1 root root 1764 Feb 28 09:32 out.log
root@56ee349e6664:/var/log/onlyoffice/documentserver/docservice# cat out.log
[2023-02-28T09:32:30.263] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T09:32:30.265] [WARN] [localhost] [docId] [userId] nodeJS - Set services.CoAuthoring.token.enable.browser, services.CoAuthoring.token.enable.request.inbox, services.CoAuthoring.token.enable.request.outbox in the Document Server config to prevent an unauthorized access to your documents and the substitution of important parameters in ONLYOFFICE Document Server requests.
[2023-02-28T09:32:30.266] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T09:32:30.519] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56
[2023-02-28T09:32:59.032] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T09:32:59.034] [WARN] [localhost] [docId] [userId] nodeJS - Set services.CoAuthoring.token.enable.browser, services.CoAuthoring.token.enable.request.inbox, services.CoAuthoring.token.enable.request.outbox in the Document Server config to prevent an unauthorized access to your documents and the substitution of important parameters in ONLYOFFICE Document Server requests.
[2023-02-28T09:32:59.036] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T09:32:59.190] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56
root@56ee349e6664:/var/log/onlyoffice/documentserver/docservice# cd .. ; cd metrics/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:32 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:32 ..
-rw-r--r-- 1 root root    0 Feb 28 09:32 err.log
-rw-r--r-- 1 root root  508 Feb 28 09:42 out.log
root@56ee349e6664:/var/log/onlyoffice/documentserver/metrics# cat out.log
28 Feb 09:32:29 - [677] reading config file: ./config/config.js
28 Feb 09:32:29 - server is up INFO
Flushing stats at  Tue Feb 28 2023 09:42:30 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: {},
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
root@56ee349e6664:/var/log/onlyoffice/documentserver/metrics# 

Computer 2, Test session 2

root@5de78067c1f2:/# cd /var/log/onlyoffice/documentserver/ ; ls -la
total 20
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:54 .
drwxr-xr-x 4 ds   ds   4096 Feb 28 09:54 ..
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:54 converter
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:54 docservice
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:54 metrics
-rw-r--r-- 1 root root    0 Feb 28 09:54 nginx.error.log
root@5de78067c1f2:/var/log/onlyoffice/documentserver# cd converter/ ; ls -la
total 16
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:54 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:54 ..
-rw-r--r-- 1 root root    0 Feb 28 09:54 err.log
-rw-r--r-- 1 root root 4774 Feb 28 09:59 out.log
root@5de78067c1f2:/var/log/onlyoffice/documentserver/converter# cat out.log 
[2023-02-28T09:54:32.486] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:54:32.498] [WARN] [localhost] [docId] [userId] nodeJS - worker 715 started.
[2023-02-28T09:54:32.500] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:55:01.840] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:55:01.849] [WARN] [localhost] [docId] [userId] nodeJS - worker 912 started.
[2023-02-28T09:55:01.851] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-28T09:59:05.242] [ERROR] [localhost] [conv_check_459517445_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qnG99hPCHXLu_MrlEv0oaFPRFBcARJR8PCsvUDnh8Yc;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:59:05 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:59:06.255] [ERROR] [localhost] [conv_check_459517445_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qnG99hPCHXLu_MrlEv0oaFPRFBcARJR8PCsvUDnh8Yc;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:59:06 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-02-28T09:59:07.264] [ERROR] [localhost] [conv_check_459517445_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qnG99hPCHXLu_MrlEv0oaFPRFBcARJR8PCsvUDnh8Yc;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 28 Feb 2023 09:59:07 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
root@5de78067c1f2:/var/log/onlyoffice/documentserver/converter# cd .. ; cd docservice/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:54 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:54 ..
-rw-r--r-- 1 root root    0 Feb 28 09:54 err.log
-rw-r--r-- 1 root root  998 Feb 28 09:55 out.log
root@5de78067c1f2:/var/log/onlyoffice/documentserver/docservice# cat out.log 
[2023-02-28T09:54:32.845] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T09:54:32.848] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T09:54:33.010] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56
[2023-02-28T09:55:00.211] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-28T09:55:00.214] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-28T09:55:00.307] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56                 
root@5de78067c1f2:/var/log/onlyoffice/documentserver/docservice# cd .. ; cd metrics/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 28 09:54 .
drwxr-xr-x 5 ds   ds   4096 Feb 28 09:54 ..
-rw-r--r-- 1 root root    0 Feb 28 09:54 err.log
-rw-r--r-- 1 root root  100 Feb 28 09:54 out.log
root@5de78067c1f2:/var/log/onlyoffice/documentserver/metrics# cat out.log 
28 Feb 09:54:32 - [676] reading config file: ./config/config.js
28 Feb 09:54:32 - server is up INFO
root@5de78067c1f2:/var/log/onlyoffice/documentserver/metrics# 

Could you provide more info about your computers, especially versions of macOS and info about processor architecture?

  1. MacBook Pro 15-inch, 2018 2,9 GHz 6‑core Intel Core i9 | Radeon Pro Vega 20 4 GB | Intel UHD Graphics 630 1536 MB | 32 ГБ 2400 MHz DDR4 | Mac OS Ventura 13.2.1 (22D68)

  2. MacBook Pro 15-inch, 2018 2,9 GHz 6‑core Intel Core i9 | Radeon Pro 560X 4 GB | Intel UHD Graphics 630 1536 MB | 32 ГБ 2400 MHz DDR4 | Mac OS Monterey 12.3.1 (21E258)

Both mac with x86-64 architecture

Thanks for the info.

Just as a side note: we haven’t really tested Document Server installation via Docker Desktop on MacOS, so we may face certain difficulties in process in comparison to installation on Linux-based systems.

Nevertheless, I suggest to troubleshoot the issue on the computer with the latest Document Server first in order to have less data in the thread and to avoid further confusion of logs/sessions/etc.
Please, on that PC try checking the accessibility between servers. To do it, connect to the Document Server container first and then from the container execute wget or curl command to the address of Nextcloud. Also, do the same process but from Nextcloud container to the Document Server address and share the outputs of these commands.

Please pay attention. In previous screenshots when I tried to connect from nextcloud to onlyoffice document-server:

  1. I received http error 400, if I did that via reverse proxy and domain name listed in the hosts file of my Mac (http://onlyoffice.local/).
  2. If I used the domain name onlyoffice I received a version of the document-server with an error. In the second case domain name onlyoffice - this name is from the internal DNS of the docker, accessible only for the containers in the same docker network.

On your request I attach 2 screenshots:

  • First 2 curls from onlyoffice to nextcloud main page. I used domain names accessible from the internal docker network and docker DNS (onlyoffice, nextcloud)
root@e7a87cd2dceb:/var/www/html# curl onlyoffice      
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
root@e7a87cd2dceb:/var/www/html# 
root@204feae3c27b:/# curl nextcloud
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
        <head
 data-requesttoken="mxf+7CA5DUI3JqgT7kTrmRF3vnRxRLfOuyJh1syYqSs=:yXqOjRUBfxd6QsdEtAeS/FQCjywTPYfh2kkQ5YPWyn0=">
                <meta charset="utf-8">
                <title>
                        Nextcloud               </title>
                <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
                                <meta name="apple-itunes-app" content="app-id=1125420102">
                                <meta name="theme-color" content="#0082c9">
                <link rel="icon" href="/core/img/favicon.ico">
                <link rel="apple-touch-icon" href="/core/img/favicon-touch.png">
                <link rel="mask-icon" sizes="any" href="/core/img/favicon-mask.svg" color="#0082c9">
                <link rel="manifest" href="/core/img/manifest.json">
                <link rel="stylesheet" href="/core/css/server.css?v=d4919926-0">
<link rel="stylesheet" href="/apps/theming/css/default.css?v=47354877-0">
<link rel="stylesheet" href="/core/css/guest.css?v=d4919926-0">
                <script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/core/js/oc.js?v=d4919926"></script>
<script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/dist/core-common.js?v=d4919926-0"></script>
<script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/dist/core-main.js?v=d4919926-0"></script>
<script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/dist/core-files_fileinfo.js?v=d4919926-0"></script>
<script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/dist/core-files_client.js?v=d4919926-0"></script>
<script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/js/core/merged-template-prepend.js?v=d4919926-0"></script>
<script nonce="bXhmKzdDQTVEVUkzSnFnVDdrVHJtUkYzdm5SeFJMZk91eUpoMXN5WXFTcz06eVhxT2pSVUJmeGQ2UXNkRXRBZVMvRlFDanl3VFBZZmgya2tRNVlQV3luMD0=" defer src="/core/js/backgroundjobs.js?v=d4919926-0"></script>
                        </head>
        <body id="body-login">
                <noscript>
        <div id="nojavascript">
                <div>
                        This application requires JavaScript for correct operation. Please <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">enable JavaScript</a> and reload the page.           </div>
        </div>
</noscript>
                                        <input type="hidden" id="initial-state-core-projects_enabled" value="ZmFsc2U=">
                                        <input type="hidden" id="initial-state-core-config" value="eyJzZXNzaW9uX2xpZmV0aW1lIjoxNDQwLCJzZXNzaW9uX2tlZXBhbGl2ZSI6dHJ1ZSwiYXV0b19sb2dvdXQiOmZhbHNlLCJ2ZXJzaW9uIjoiMjUuMC4zLjIiLCJ2ZXJzaW9uc3RyaW5nIjoiMjUuMC4zIiwiZW5hYmxlX2F2YXRhcnMiOnRydWUsImxvc3RfcGFzc3dvcmRfbGluayI6bnVsbCwibW9kUmV3cml0ZVdvcmtpbmciOnRydWUsInNoYXJpbmcubWF4QXV0b2NvbXBsZXRlUmVzdWx0cyI6MjUsInNoYXJpbmcubWluU2VhcmNoU3RyaW5nTGVuZ3RoIjowLCJibGFja2xpc3RfZmlsZXNfcmVnZXgiOiJcXC4ocGFydHxmaWxlcGFydCkkIiwibG9nbGV2ZWwiOjJ9">
                                        <input type="hidden" id="initial-state-core-capabilities" value="eyJjb3JlIjp7InBvbGxpbnRlcnZhbCI6NjAsIndlYmRhdi1yb290IjoicmVtb3RlLnBocFwvd2ViZGF2IiwicmVmZXJlbmNlLWFwaSI6dHJ1ZSwicmVmZXJlbmNlLXJlZ2V4IjoiKFxcc3xcXG58XikoaHR0cHM/OlxcXC9cXFwvKSgoPzpbLUEtWjAtOStfXStcXC4pK1stQS1aXSsoPzpcXFwvWy1BLVowLTkrJkAjJT89fl98ITosLjsoKV0qKSopKFxcc3xcXG58JCkifSwibWV0YWRhdGFBdmFpbGFibGUiOnsic2l6ZSI6WyJcL2ltYWdlXFxcLy4qXC8iXSwiZ3BzIjpbIlwvaW1hZ2VcXFwvLipcLyJdfSwiZmlsZXMiOnsiYmlnZmlsZWNodW5raW5nIjp0cnVlLCJibGFja2xpc3RlZF9maWxlcyI6WyIuaHRhY2Nlc3MiXSwiY29tbWVudHMiOnRydWUsInVuZGVsZXRlIjp0cnVlLCJ2ZXJzaW9uaW5nIjp0cnVlfSwiYWN0aXZpdHkiOnsiYXBpdjIiOlsiZmlsdGVycyIsImZpbHRlcnMtYXBpIiwicHJldmlld3MiLCJyaWNoLXN0cmluZ3MiXX0sImNpcmNsZXMiOnsidmVyc2lvbiI6IjI1LjAuMCIsInN0YXR1cyI6eyJnbG9iYWxTY2FsZSI6ZmFsc2V9LCJzZXR0aW5ncyI6eyJmcm9udGVuZEVuYWJsZWQiOnRydWUsImFsbG93ZWRDaXJjbGVzIjoyNjIxNDMsImFsbG93ZWRVc2VyVHlwZXMiOjMxLCJtZW1iZXJzTGltaXQiOi0xfSwiY2lyY2xlIjp7ImNvbnN0YW50cyI6eyJmbGFncyI6eyIxIjoiU2luZ2xlIiwiMiI6IlBlcnNvbmFsIiwiNCI6IlN5c3Rlb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9zdGF0dXMiOnsiZW5hYmxlZCI6dHJ1ZX19">
                                        <input type="hidden" id="initial-state-comments-maxAutoCompleteResults" value="MTA=">
                                <div class="wrapper">
                        <div class="v-align">
                                                                        <header role="banner">
                                                <div id="header">

                                                        <img class="logo" alt="Nextcloud logo" src="/core/img/logo/logo.svg?v=d4da73eac8f707fcefd972e1f0f4582bac181bd5">
                                                </div>
                                        </header>
                                                                <main>
                                        <h1 class="hidden-visually">
                                                Nextcloud                                       </h1>

<div class="guest-box">
        <h2>Access through untrusted domain</h2>

        <p>
                Please contact your administrator. If you are an administrator, edit the &quot;trusted_domains&quot; setting in config/config.php like the example in config.sample.php.       </p>
        <br />
        <p>
                Further information how to configure this can be found in the <a href="https://docs.nextcloud.com/server/25/go.php?to=admin-trusted-domains" target="blank">documentation</a>. </p>
</div>
                                </main>
                        </div>
                </div>
                <footer role="contentinfo">
                        <p class="info">
                                <a href="https://nextcloud.com" target="_blank" rel="noreferrer noopener">Nextcloud</a> – a safe home for all your data                 </p>
                </footer>
        </body>
</html>
root@204feae3c27b:/# 
  • Third curl from nextcloud container to onlyoffice/healthcheck page. In response, we can see true what means that app is successful
root@e7a87cd2dceb:/var/www/html# curl onlyoffice/healthcheck 
trueroot@e7a87cd2dceb:/var/www/html# 

Also attaching 2 console outputs where I am using the external domain name nextcloud.local, onlyoffice.local. These domain names are listed only in the hosts file on my mac and redirect all traffic to the reverse proxy container (Traefik). I don’t think that it is accessible inside containers without configurated hosts file/DNS and configurated reverse proxy.

root@204feae3c27b:/# curl nextcloud.local
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
root@204feae3c27b:/# 
root@e7a87cd2dceb:/var/www/html# curl onlyoffice.local
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
        <head
 data-requesttoken="SlH3KDeXzJ4eGIJ7pEmRDlbl20Yvq3/wGM2fimOi/pU=:HDPDfFXiiq95IeM8kTzkSzODgQllkje9Kayv6VbDyaU=">
                <meta charset="utf-8">
                <title>
                        Nextcloud               </title>
                <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
                                <meta name="apple-itunes-app" content="app-id=1125420102">
                                <meta name="theme-color" content="#0082c9">
                <link rel="icon" href="/core/img/favicon.ico">
                <link rel="apple-touch-icon" href="/core/img/favicon-touch.png">
                <link rel="mask-icon" sizes="any" href="/core/img/favicon-mask.svg" color="#0082c9">
                <link rel="manifest" href="/core/img/manifest.json">
                <link rel="stylesheet" href="/core/css/server.css?v=d4919926-0">
<link rel="stylesheet" href="/apps/theming/css/default.css?v=47354877-0">
<link rel="stylesheet" href="/core/css/guest.css?v=d4919926-0">
                <script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/core/js/oc.js?v=d4919926"></script>
<script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/dist/core-common.js?v=d4919926-0"></script>
<script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/dist/core-main.js?v=d4919926-0"></script>
<script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/dist/core-files_fileinfo.js?v=d4919926-0"></script>
<script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/dist/core-files_client.js?v=d4919926-0"></script>
<script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/js/core/merged-template-prepend.js?v=d4919926-0"></script>
<script nonce="U2xIM0tEZVh6SjRlR0lKN3BFbVJEbGJsMjBZdnEzL3dHTTJmaW1PaS9wVT06SERQRGZGWGlpcTk1SWVNOGtUemtTek9EZ1FsbGtqZTlLYXl2NlZiRHlhVT0=" defer src="/core/js/backgroundjobs.js?v=d4919926-0"></script>
                        </head>
        <body id="body-login">
                <noscript>
        <div id="nojavascript">
                <div>
                        This application requires JavaScript for correct operation. Please <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">enable JavaScript</a> and reload the page.           </div>
        </div>
</noscript>
                                        <input type="hidden" id="initial-state-core-projects_enabled" value="ZmFsc2U=">
                                        <input type="hidden" id="initial-state-core-config" value="eyJzZXNzaW9uX2xpZmV0aW1lIjoxNDQwLCJzZXNzaW9uX2tlZXBhbGl2ZSI6dHJ1ZSwiYXV0b19sb2dvdXQiOmZhbHNlLCJ2ZXJzaW9uIjoiMjUuMC4zLjIiLCJ2ZXJzaW9uc3RyaW5nIjoiMjUuMC4zIiwiZW5hYmxlX2F2YXRhcnMiOnRydWUsImxvc3RfcGFzc3dvcmRfbGluayI6bnVsbCwibW9kUmV3cml0ZVdvcmtpbmciOnRydWUsInNoYXJpbmcubWF4QXV0b2NvbXBsZXRlUmVzdWx0cyI6MjUsInNoYXJpbmcubWluU2VhcmNoU3RyaW5nTGVuZ3RoIjowLCJibGFja2xpc3RfZmlsZXNfcmVnZXgiOiJcXC4ocGFydHxmaWxlcGFydCkkIiwibG9nbGV2ZWwiOjJ9">
                                        <input type="hidden" id="initial-state-core-capabilities" value="eyJjb3JlIjp7InBvbGxpbnRlcnZhbCI6NjAsIndlYmRhdi1yb290IjoicmVtb3RlLnBocFwvd2ViZGF2IiwicmVmZXJlbmNlLWFwaSI6dHJ1ZSwicmVmZXJlbmNlLXJlZ2V4IjoiKFxcc3xcXG58XikoaHR0cHM/OlxcXC9cXFwvKSgoPzpbLUEtWjAtOStfXStcXC4pK1stQS1aXSsoPzpcXFwvWy1BLVowLTkrJkAjJT89fl98ITosLjsoKV0qKSopKFxcc3xcXG58JCkifSwibWV0YWRhdGFBdmFpbGFibGUiOnsic2l6ZSI6WyJcL2ltYWdlXFxcLy4qXC8iXSwiZ3BzIjpbIlwvaW1hZ2VcXFwvLipcLyJdfSwiZmlsZXMiOnsiYmlnZmlsZWNodW5raW5nIjp0cnVlLCJibGFja2xpc3RlZF9maWxlcyI6WyIuaHRhY2Nlc3MiXSwiY29tbWVudHMiOnRydWUsInVuZGVsZXRlIjp0cnVlLCJ2ZXJzaW9uaW5nIjp0cnVlfSwiYWN0aXZpdHkiOnsiYXBpdjIiOlsiZmlsdGVycyIsImZpbHRlcnMtYXBpIiwicHJldmlld3MiLCJyaWNoLXN0cmluZ3MiXX0sImNpcmNsZXMiOnsidmVyc2lvbiI6IjI1LjAuMCIsInN0YXR1cyI6eyJnbG9iYWxTY2FsZSI6ZmFsc2V9LCJzZXR0aW5ncyI6eyJmcm9udGVuZEVuYWJsZWQiOnRydWUsImFsbG93ZWRDaXJjbGVzIjoyNjIxNDMsImFsbG93ZWRVc2VyVHlwZXMiOjMxLCJtZW1iZXJzTGltaXQiOi0xfSwiY2lyY2xlIjp7ImNvbnN0YW50cyI6eyJmbGFncyI6eyIxIjoiU2luZ2xlIiwiMiI6IlBlcnNvbmFsIiwiNCI6IlN5c3RlbSIsIjgiOiJWaXNpYmxlIiwiMTYiOiJPcGVuIiwiMzIiOiJJbnZpdGUiLCI2NCI6IkpvaW4gUmVxdWVzdCIsIjEyOC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lvbiI6MiwiQWNjb3VudFByb3BlcnR5U2NvcGVzRmVkZXJhdGVkRW5hYmxlZCI6dHJ1ZSwiQWNjb3VudFByb3BlcnR5U2NvcGVzUHVibGlzaGVkRW5hYmxlZCI6dHJ1ZX0sInRoZW1pbmciOnsibmFtZSI6Ik5leHRjbG91ZCIsInVybCI6Imh0dHBzOlwvXC9uZXh0Y2xvdWQuY29tIiwic2xvZ2FuIjoiYSBzYWZlIGhvbWUgZm9yIGFsbCB5b3VyIGRhdGEiLCJjb2xvciI6IiMwMDgyYzkiLCJjb2xvci10ZXh0IjoiI2ZmZmZmZiIsImNvbG9yLWVsZW1lbnQiOiIjMDA4MmM5IiwiY29sb3ItZWxlbWVudC1icmlnaHQiOiIjMDA4MmM5IiwiY29sb3ItZWxlbWVudC1kYXJrIjoiIzAwODJjOSIsImxvZ28iOiJodHRwOlwvXC9uZXh0Y2xvdWQubG9jYWxcL2NvcmVcL2ltZ1wvbG9nb1wvbG9nby5zdmc/dj0wIiwiYmFja2dyb3VuZCI6Imh0dHA6XC9cL25leHRjbG91ZC5sb2NhbFwvY29yZVwvaW1nXC9iYWNrZ3JvdW5kLnBuZz92PTAiLCJiYWNrZ3JvdW5kLXBsYWluIjpmYWxzZSwiYmFja2dyb3VuZC1kZWZhdWx0Ijp0cnVlLCJsb2dvaGVhZGVyIjoiaHR0cDpcL1wvbmV4dGNsb3VkLmxvY2FsXC9jb3JlXC9pbWdcL2xvZ29cL2xvZ28uc3ZnP3Y9MCIsImZhdmljb24iOiJodHRwOlwvXC9uZXh0Y2xvdWQubG9jYWxcL2NvcmVcL2ltZ1wvbG9nb1wvbG9nby5zdmc/dj0wIn0sInVzZXJfc3RhdHVzIjp7ImVuYWJsZWQiOnRydWUsInN1cHBvcnRzX2Vtb2ppIjp0cnVlfSwid2VhdGhlcl9zdGF0dXMiOnsiZW5hYmxlZCI6dHJ1ZX19">
                                        <input type="hidden" id="initial-state-comments-maxAutoCompleteResults" value="MTA=">
                                <div class="wrapper">
                        <div class="v-align">
                                                                        <header role="banner">
                                                <div id="header">

                                                        <img class="logo" alt="Nextcloud logo" src="/core/img/logo/logo.svg?v=d4da73eac8f707fcefd972e1f0f4582bac181bd5">
                                                </div>
                                        </header>
                                                                <main>
                                        <h1 class="hidden-visually">
                                                Nextcloud                                       </h1>

<div class="guest-box">
        <h2>Access through untrusted domain</h2>

        <p>
                Please contact your administrator. If you are an administrator, edit the &quot;trusted_domains&quot; setting in config/config.php like the example in config.sample.php.       </p>
        <br />
        <p>
                Further information how to configure this can be found in the <a href="https://docs.nextcloud.com/server/25/go.php?to=admin-trusted-domains" target="blank">documentation</a>. </p>
</div>
                                </main>
                        </div>
                </div>
                <footer role="contentinfo">
                        <p class="info">
                                <a href="https://nextcloud.com" target="_blank" rel="noreferrer noopener">Nextcloud</a> – a safe home for all your data                 </p>
                </footer>
        </body>
</html>
root@e7a87cd2dceb:/var/www/html# 

P.S. Around 1 year ago I tried to set up the same containers on proxmox and had similar errors. DevOps in our company had solved the problem but I did not saw his solution. Also, I haven’t his contacts to ask how he did it previously. Based on it I think that the problem is not related to the environment. After today’s test, I start thinking that the problem is related to the webserver configuration in nextcloud/onlyoffice and to CORS protection.

Please try setting address for the internal requests to Nextcloud from Document Server in the advanced settings of the connector as http://nextcloud/ without local and see if it makes any difference. So the complete configuration looks like this:
ONLYOFFICE Docs address - http://onlyoffice.local/;
Secret key - your secret;
ONLYOFFICE Docs address for internal requests from the server - http://onlyoffice/;
Server address for internal requests from ONLYOFFICE Docs http://nextcloud/.

Also, just to make sure that the servers are accessible to each other try using wget command too:
From Document Server container wget http:/nextcloud.local/ and wget http://nextcloud/ and from Nextcloud container wget http://onlyoffice.local/ and wget http://onlyoffice/. Share the outputs afterwards please.

Another side note: check out the example of Traefik configuration for Document Server and compare it to the one that you have:
https://github.com/ONLYOFFICE/document-server-proxy/blob/master/traefik/minimal.toml

I set up the onlyoffice as you wrote. It gave same mistake “Error while downloading the document file to be converted.) (version 7.3.0.184)”

Wget from onlyoffice to http: //nextcloud/ and http: // nextcloud.local/

root@b12ca924efce:/# wget http://nextcloud
--2023-03-02 11:08:56--  http://nextcloud/
Resolving nextcloud (nextcloud)... 192.168.128.5
Connecting to nextcloud (nextcloud)|192.168.128.5|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2023-03-02 11:08:57 ERROR 400: Bad Request.

root@b12ca924efce:/# wget http://nextcloud.local/
--2023-03-02 11:09:12--  http://nextcloud.local/
Resolving nextcloud.local (nextcloud.local)... 127.0.0.1
Connecting to nextcloud.local (nextcloud.local)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://nextcloud.local/welcome/ [following]
--2023-03-02 11:09:27--  http://nextcloud.local/welcome/
Reusing existing connection to nextcloud.local:80.
HTTP request sent, awaiting response... 200 OK
Length: 4946 (4.8K) [text/html]
Saving to: ‘index.html’

index.html                                  100%[==========================================================================================>]   4.83K  --.-KB/s    in 0s      

2023-03-02 11:09:27 (264 MB/s) - ‘index.html’ saved [4946/4946]

Wget from nextcloud to http: //onlyoffice/ and http: // onlyoffice.local/

root@8db90780eb89:/var/www/html# wget http://onlyoffice/
--2023-03-02 10:58:33--  http://onlyoffice/
Resolving onlyoffice (onlyoffice)... 192.168.128.4
Connecting to onlyoffice (onlyoffice)|192.168.128.4|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://onlyoffice/welcome/ [following]
--2023-03-02 10:58:33--  http://onlyoffice/welcome/
Reusing existing connection to onlyoffice:80.
HTTP request sent, awaiting response... 200 OK
Length: 4946 (4.8K) [text/html]
Saving to: 'index.html.1'

index.html.1                                100%[==========================================================================================>]   4.83K  --.-KB/s    in 0s      

2023-03-02 10:58:33 (364 MB/s) - 'index.html.1' saved [4946/4946]

root@8db90780eb89:/var/www/html# wget http://onlyoffice.local/
--2023-03-02 10:59:30--  http://onlyoffice.local/
Resolving onlyoffice.local (onlyoffice.local)... 127.0.0.1
Connecting to onlyoffice.local (onlyoffice.local)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2023-03-02 10:59:45 ERROR 400: Bad Request.

root@8db90780eb89:/var/www/html# 

I checked Traefik configuration for Document Server that you sent. I need more time to investigate how to merge your example with my current settings because I used yml file + docker labels for configuration, and your example is based on toml. After the weekend, I hope I will have some updates.

Hello @deimjons

Do you have any news?
You can verify that the problem is related to the webserver configuration by running your compose without Traefik. Note that this way you will have to run Nextcloud and Document Server containers on different ports.

I disabled traefik. And ran Nextcloud and Document Server containers on different ports.
Nextcloud has port 80 and onlyoffice - 8080.
I set up the onlyoffice and got mistake “(cURL error 7: Failed to connect to localhost port 8080: Connection refused (see https: //curl.haxx.se/libcurl/c/libcurl-errors.html) for http ://localhost:8080/healthcheck)”. But from web-browser by address of onlyoffice http ://localhost:8080/healthcheck I receive true.
I got this error when JWT was disabled and enabled. I attached screenshot.

Also when I tried to connect to demo server ONLYOFFICE Docs I got error “Error while downloading the document file to be converted.) (версия 7.3.2.8)”.

I am getting the same errors. NC AIO and OnlyOffice are installed as docker containers on the same machine (Linux).
OnlyOffice is installed on port 8081, because Port 80 is occupied by NC AIO.
OnlyOffice can be opened in a browser using a domain name on port 8081 without any problems (of course, without ssl).
For communication between OnlyOffice and NC AIO, both containers are added to the docker network bridge, and these local addresses in the docker network are specified in the Nextcloud settings for the Onlyoffice server.

The result is an error: “Error while downloading the document file to be converted”.

Hello @deimjons

Sorry for the late reply.

First of all, you have to keep in mind that localhost address from your machine is different to the localhost inside the container. Keeping that in mind, you have to avoid using localhost:port address for either Document Server or Nextcloud.

To successfully access Document Server you have to use IP address of the host machine and also specify the port. For example, I was running tests on Ubuntu 22.04 LTS virtual machine and its IP address was 172.17.0.1, port of the Docker container with Document Server was 8070, so in browser I was able to run editors via built-in test example on 172.17.0.1:8070/example/ (remember that you have to enable it first before accessing).

So, the same thing should be performed with Nextcloud. However, “out of the box” you won’t be able to access it via 172.17.0.1:8080 (8080 was default port for regular Docker installation, not Docker Compose). You will face Access through untrusted domain warning upon attempting to do it. To add this address to trusted you have to edit config.php of Nextcloud that is located in /config/ catalog of root folder of Nextcloud installation. Simply add 172.17.0.1:8080 to the 'trusted_domains' section like that:

  'trusted_domains' => 
  array (
    0 => 'localhost:8080',
    1 => '172.17.0.1:8080',
  ),

After that you can access your Nextcloud via 172.17.0.1:8080 and proceed to the Document Server configuration. Open connector app settings and use before mentioned 172.17.0.1:8070 address of Document Server and fill Secret field if JWT Token is enabled.

With all these configurations I was able to connect (note that I’m not using Advanced settings):

Keep in mind that address 172.17.0.1 here is for the reference only, as well as ports - this is what I was working with. In your case you have to use proper values of your machine/installation.

Side note: the ideal scenario of Document Server usage, in general, is that both Document Server and storage are located on separate dedicated servers and are available via domain names for communication.

I hope this information will be useful for you.

Hello @BillyBons

There are several reasons why this error is shown. Please provide logs of Document Server that are located in /var/log/onlyoffice/documentserver/ for analysis to get better understanding of the issue.

Additionally, please specify the details about this statement. Are you using proxy in front of Document Server? Does it mean that built-in test example works correctly?

Guys thanks for the help. For me, it is !!!WORKING!!! now)))
So the root of the problem is ‘trusted_domains’ in config.php file inside nextcloud container. (For the official nextcloud image from docker-hub the path will be: /var/www/html/config/config.php)

In my case there need to add 2 addresses:

  'trusted_domains' => 
  array (
    0 => 'nextcloud.local',
    2 => 'nextcloud',
    // 3 => '*', # For tests only!!! Not secure!
  ),

nextcloud.local - is used for traefik and described in my local .hosts file.
nextcloud - it is the name of the container. Docker internal DNS provides these names automatically.

Here settings in nextcloud:

here my docker compose:

version: '3.9'
services:
  nextcloud:
    container_name: nextcloud
    image: nextcloud:latest
    restart: unless-stopped
    depends_on:
      - nextcloud_postgres
      - onlyoffice
    labels:
    # need to config headers in traefik https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#traefik-2 | also need to get list of plugins from previous volume
      traefik.enable: true
      traefik.docker.network: media
      traefik.http.routers.nextcloud.rule: Host(`nextcloud.local`)
      traefik.http.routers.nextcloud.entrypoints: web
    environment:
      POSTGRES_HOST: nextcloud_postgres
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 1
    volumes:
      - nextcloud:/var/www/html
    networks:
      media:
      nextcloud:
    # ports: 
    #   - 8080:80

  nextcloud_postgres:
    container_name: nextcloud_postgres
    restart: unless-stopped
    image: postgres:9-alpine
    environment:
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 1
    volumes:
      - db:/var/lib/postgresql/data
    networks:
      nextcloud:
  


  onlyoffice:
    container_name: onlyoffice
    image: onlyoffice/documentserver
    restart: unless-stopped
    labels:
      traefik.enable: true
      traefik.http.routers.onlyoffice.rule: Host(`onlyoffice.local`)
      traefik.http.routers.onlyoffice.entrypoints: web
      # traefik.http.services.onlyoffice.loadbalancer.server.port: 9000
    environment:
      ONLYOFFICE_HTTPS_HSTS_ENABLED: false #Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to true.
      # ONLYOFFICE_HTTPS_HSTS_MAXAGE: #Advanced configuration option for setting the HSTS max-age in the onlyoffice NGINX vHost configuration. Applicable only when SSL is in use. Defaults to 31536000.
      # SSL_CERTIFICATE_PATH: #The path to the SSL certificate to use. Defaults to /var/www/onlyoffice/Data/certs/tls.crt.
      # SSL_KEY_PATH: #The path to the SSL certificate private key. Defaults to /var/www/onlyoffice/Data/certs/tls.key.
      # SSL_DHPARAM_PATH: #The path to the Diffie-Hellman parameter. Defaults to /var/www/onlyoffice/Data/certs/dhparam.pem.
      # SSL_VERIFY_CLIENT: #Enable verification of client certificates using the CA_CERTIFICATES_PATH file. Defaults to false.
      # DB_TYPE: #The database type. Supported values are postgres, mariadb or mysql. Defaults to postgres.
      # DB_HOST: #The IP address or the name of the host where the database server is running.
      # DB_PORT: #The database server port number.
      # DB_NAME: #The name of a database to be created on the image startup.
      # DB_USER: #The new user name with superuser permissions for the database account.
      # DB_PWD: #The password set for the database account.
      # AMQP_URI: #The AMQP URI to connect to the message broker server.
      # AMQP_TYPE: #The message broker type. Supported values are rabbitmq or activemq. Defaults to rabbitmq.
      # REDIS_SERVER_HOST: #The IP address or the name of the host where the Redis server is running.
      # REDIS_SERVER_PORT: #The Redis server port number.
      # NGINX_WORKER_PROCESSES: #Defines the number of NGINX worker processes.
      # NGINX_WORKER_CONNECTIONS: #Sets the maximum number of simultaneous connections that can be opened by a NGINX worker process.
      JWT_ENABLED: false #Specifies the enabling the JSON web token validation by ONLYOFFICE Docs. Defaults to true.
      #Defines the secret key to validate the JSON web token in the request to ONLYOFFICE Docs. Defaults to secret.
      # JWT_SECRET: some secret
      #Defines the HTTP header that will be used to send the JSON web token. Defaults to Authorization.
      # JWT_HEADER: Authorization
      #Specifies the enabling the token validation in the request body to the ONLYOFFICE Docs. Defaults to false.
      # JWT_IN_BODY: true
      USE_UNAUTHORIZED_STORAGE: true # Set to true if using self-signed certificates for your storage server, e.g. Nextcloud. Defaults to false.
      # GENERATE_FONTS: #When true, regenerates fonts list and the fonts thumbnails etc. at each start. Defaults to true.
      # METRICS_ENABLED: #Specifies the enabling StatsD for ONLYOFFICE Docs. Defaults to false.
      # METRICS_HOST: #Defines StatsD listening host. Defaults to localhost.
      # METRICS_PORT: #Defines StatsD listening port. Defaults to 8125.
      # METRICS_PREFIX: #Defines StatsD metrics prefix for backend services. Defaults to ds..
      # LETS_ENCRYPT_DOMAIN: #Defines the domain for Let's Encrypt certificate.
      # LETS_ENCRYPT_MAIL: #Defines the domain administrator mail address for Let's Encrypt certificate.

    # Uncomment this string produce next error -> Error response from daemon: invalid IP address in add-host: "nextcloud"
    # extra_hosts:
    #   - nextcloud:nextcloud
    networks:
      nextcloud:
      media:
    volumes:
      - onlyoffice-data:/var/www/onlyoffice/Data
      - onlyoffice-log:/var/log/onlyoffice
    # ports:
    #   - 9000:9000
    #   - 8070:80

volumes:
  db:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/db
  nextcloud:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/nextcloud
  onlyoffice-data:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/onlyoffice-data
  onlyoffice-log:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/onlyoffice-log


networks:
  nextcloud:
    name: nextcloud
    driver: bridge
  media:
    external: true

For me still not clear:

  1. For what needed extra_hosts: section in docker-compose for the onlyoffice. If someone know pls explane how to use that?

  2. Lifecycle of requests when you connect nextcloud with only office… I understand why I need to add nextcloud.local in trusted_domains section of config.php file. but I can’t undestand why we should put IP/domain name of nextcloud container… For me looks logical to add onlyoffice container IP/domain there instead if nextcloud ip/domain name. Us I understand it needed to allow requests from onlyoffice to nextcloud… But no, in trusted_domains section of config.php file should be IP/domain name of nextcloud.

I hope this message will help people who stack with a similar problems.

1 Like

In general, extra_hosts parameter for Docker Compose allows you to add IP/hostname pair mappings into /etc/hosts file inside the container. About this parameter you can read here:
https://docs.docker.com/compose/compose-file/compose-file-v3/#extra_hosts
You can use it when there is an issue with resolving DNS name by Document Server.

Trusted domains are used by Nextcloud in security reasons, so here you are specifying every domain at which your Nextcloud portal can be accessed. If the domain is untrusted then Document Server will not be able to access it and download the file for editing from your Nextcloud, hence will result in error.

Hello guys.
I had the same problem and did everything as described here; however, I got another error.
When I try to open a doc file Welcome to Nextcloud Hub.docx, I get an error: Download failed.


I checked it with JWT enabled. On Onlyoffice config page I get Settings has been successfully updated (version 7.3.3.49).
From the web browser by address https://office.mydomain.com/healthcheck/, I received true.

If JWT is disabled, when I try to open the Word file, it shows the same error Download failed.
From the web browser by address https://office.mydomain.com/healthcheck/, I received true.
On the Onlyoffice config page, I deleted the Secret Key. Other config is the same.

The ping works in both directions.

Wget from Onlyoffice to Nextcloud

root@28dd4176c698:/# wget cloud.mydomain.com/
--2023-05-07 19:48:30--  http://cloud.mydomain.com/
Resolving cloud.mydomain.com/ (cloud.mydomain.com/)... 94.24.45.25
Connecting to cloud.mydomain.com/ (cloud.mydomain.com/)|94.24.45.25|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cloud.mydomain.com// [following]
--2023-05-07 19:48:30--  https://cloud.mydomain.com//
Connecting to cloud.mydomain.com/ (cloud.mydomain.com/)|94.24.45.25|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cloud.mydomain.com//login [following]
--2023-05-07 19:48:30--  https://cloud.mydomain.com//login
Reusing existing connection to cloud.mydomain.com/:443.
HTTP request sent, awaiting response... 200 OK
Length: 15340 (15K) [text/html]
Saving to: ‘index.html’

index.html                           100%[====================================================================>]  14.98K  --.-KB/s    in 0s      

2023-05-07 19:48:31 (206 MB/s) - ‘index.html’ saved [15340/15340]

root@28dd4176c698:/# 

Wget from Nextcloud to Onlyoffice

/var/www/html # wget http://office.mydomain.com
Connecting to office.mydomain.com (94.24.45.25:80)
Connecting to office.mydomain.com (94.24.45.25:443)
Connecting to office.mydomain.com (94.24.45.25:443)
wget: can't open 'index.html': File exists

My docker-compose.yml file

version: '3.9'
services:
  nextcloud:
    container_name: nextcloud
    build: .
    restart: unless-stopped
    depends_on:
      - nextcloud_postgres
      - nextcloud_redis
      - onlyoffice
    environment:
      POSTGRES_HOST: nextcloud_postgres
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 1
      # NEXTCLOUD_UPDATE: 1
      REDIS_HOST: nextcloud_redis
      REDIS_PASSWORD: nextcloud_redis
      REDIS_HOST_PORT: 6379
      PHP_MEMORY_LIMIT: 8G
      PHP_UPLOAD_LIMIT: 2048G
      NEXTCLOUD_TRUSTED_DOMAINS: cloud.mydomain.com, nextcloud.local
    volumes:
      - nextcloud:/var/www/html
      - music:/music
      - container-scripts:/container-scripts
      - nextcloud-backup:/backup
    networks:
      - nextcloud
    # ports: 
    #   - 9000:9000
  nextcloud_nginx:
    image: nginx
    restart: unless-stopped
    container_name: nextcloud_nginx
    labels:
      traefik.enable: true
      traefik.docker.network: media

      traefik.http.middlewares.nextcloud_redirect-dav.redirectregex.permanent: true
      traefik.http.middlewares.nextcloud_redirect-dav.redirectregex.regex: '(.*)/.well-known/(?:card|cal)dav'
      traefik.http.middlewares.nextcloud_redirect-dav.redirectregex.replacement: '$$1/remote.php/dav'

      traefik.http.middlewares.nextcloud_redirect-webfinger|nodeinfo.redirectregex.permanent: true
      traefik.http.middlewares.nextcloud_redirect-webfinger|nodeinfo.redirectregex.regex: '(.*)/.well-known/(webfinger|nodeinfo)/(.*)'
      traefik.http.middlewares.nextcloud_redirect-webfinger|nodeinfo.redirectregex.replacement: '$$1/index.php/.well-known/$$2/$$3'

      traefik.http.routers.nextcloud-public-http.rule: Host(`cloud.mydomain.com`)
      traefik.http.routers.nextcloud-public-http.entrypoints: web
      traefik.http.routers.nextcloud-public-http.middlewares: https-redirect

      traefik.http.routers.nextcloud-public-https.rule: Host(`cloud.mydomain.com`)
      traefik.http.routers.nextcloud-public-https.entrypoints: websecure
      traefik.http.routers.nextcloud-public-https.middlewares: nextcloud_redirect-dav, nextcloud_redirect-webfinger|nodeinfo
      traefik.http.routers.nextcloud-public-https.tls: true
      traefik.http.routers.nextcloud-public-https.tls.certresolver: prod

      # traefik.http.services.nextcloud-public-https.loadbalancer.passhostheader: true

      com.centurylinklabs.watchtower.enable: true
    volumes:
      - nextcloud:/var/www/html
      - ./volumes/nextcloud_nginx/nginx.conf:/etc/nginx/nginx.conf:ro
    networks:
      - nextcloud
      - media
    # ports:
    #   - 8090:80

  nextcloud_redis:
    image: redis:alpine
    container_name: nextcloud_redis
    restart: unless-stopped
    environment:
      REDIS_PASSWORD: 1
    networks:
      - nextcloud
  
  nextcloud_postgres:
    container_name: nextcloud_postgres
    restart: unless-stopped
    image: postgres:9-alpine
    labels:
      com.centurylinklabs.watchtower.enable: true
    environment:
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 1
    volumes:
      - nextcloud_postgres:/var/lib/postgresql/data
    networks:
      nextcloud:

  onlyoffice:
    container_name: onlyoffice
    image: onlyoffice/documentserver
    restart: unless-stopped
    labels:
      traefik.enable: true

      traefik.http.routers.onlyoffice-public-http.rule: Host(`office.mydomain.com`)
      traefik.http.routers.onlyoffice-public-http.entrypoints: web
      traefik.http.routers.onlyoffice-public-http.middlewares: https-redirect

      traefik.http.routers.onlyoffice-public-https.rule: Host(`office.mydomain.com`)
      traefik.http.routers.onlyoffice-public-https.entrypoints: websecure
      traefik.http.routers.onlyoffice-public-https.tls: true
      traefik.http.routers.onlyoffice-public-https.tls.certresolver: prod
      
      com.centurylinklabs.watchtower.enable: true
      com.centurylinklabs.watchtower.lifecycle.pre-update: /container-scripts/backup.sh /var/www/onlyoffice/Data
      com.centurylinklabs.watchtower.lifecycle.pre-update-timeout: 0 # Timeout expressed in minutes. If the label value is explicitly set to 0, the timeout will be disabled.
    environment:
      ONLYOFFICE_HTTPS_HSTS_ENABLED: true #Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to true.
      JWT_ENABLED: false #Specifies the enabling the JSON web token validation by ONLYOFFICE Docs. Defaults to true.
      JWT_SECRET: eyJhbGciOiJIUzUxMiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTY3NjE0MDIwMywiaWF0IjoxNjc2MTQwMjAzfQ......
     
      # ONLYOFFICE_HTTPS_HSTS_MAXAGE: #Advanced configuration option for setting the HSTS max-age in the onlyoffice NGINX vHost configuration. Applicable only when SSL is in use. Defaults to 31536000.
      # DB_TYPE: #The database type. Supported values are postgres, mariadb or mysql. Defaults to postgres.
      # DB_HOST: #The IP address or the name of the host where the database server is running.
      # DB_PORT: #The database server port number.
      # DB_NAME: #The name of a database to be created on the image startup.
      # DB_USER: #The new user name with superuser permissions for the database account.
      # DB_PWD: #The password set for the database account.
      # AMQP_URI: #The AMQP URI to connect to the message broker server.
      # AMQP_TYPE: #The message broker type. Supported values are rabbitmq or activemq. Defaults to rabbitmq.
      # REDIS_SERVER_HOST: #The IP address or the name of the host where the Redis server is running.
      # REDIS_SERVER_PORT: #The Redis server port number.
      # NGINX_WORKER_PROCESSES: #Defines the number of NGINX worker processes.
      # NGINX_WORKER_CONNECTIONS: #Sets the maximum number of simultaneous connections that can be opened by a NGINX worker process.
      #Defines the secret key to validate the JSON web token in the request to ONLYOFFICE Docs. Defaults to secret.
      #Defines the HTTP header that will be used to send the JSON web token. Defaults to Authorization.
      # JWT_HEADER: Authorization
      #Specifies the enabling the token validation in the request body to the ONLYOFFICE Docs. Defaults to false.
      # JWT_IN_BODY: true
      # USE_UNAUTHORIZED_STORAGE: true # Set to true if using self-signed certificates for your storage server, e.g. Nextcloud. Defaults to false.
      # GENERATE_FONTS: #When true, regenerates fonts list and the fonts thumbnails etc. at each start. Defaults to true.
      # METRICS_ENABLED: #Specifies the enabling StatsD for ONLYOFFICE Docs. Defaults to false.
      # METRICS_HOST: #Defines StatsD listening host. Defaults to localhost.
      # METRICS_PORT: #Defines StatsD listening port. Defaults to 8125.
      # METRICS_PREFIX: #Defines StatsD metrics prefix for backend services. Defaults to ds..
    networks:
      nextcloud:
      media:
    volumes:
      - onlyoffice-data:/var/www/onlyoffice/Data
      - onlyoffice-log:/var/log/onlyoffice
      - container-scripts:/container-scripts
      - onlyoffice-backup:/backup
    # ports:
    #   - 8070:80

volumes:
  nextcloud_postgres:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/nextcloud_postgres
  nextcloud_elasticsearch:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/nextcloud_elasticsearch
  nextcloud:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/nextcloud
  nextcloud_nginx:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/nextcloud_nginx
  onlyoffice-data:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/onlyoffice-data
  onlyoffice-log:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/onlyoffice-log
  music:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/../media/music
  container-scripts:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/_container-scripts
  nextcloud-backup:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/../backups/nextcloud
  onlyoffice-backup:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/../backups/onlyoffice

networks:
  nextcloud:
    name: nextcloud
    driver: bridge
  media:
    external: true

Hello @Senia

As I can there few labels are missing for the traefik configuration.
Please see this post in another thread related to the issues with traefik for possible solution:

If it does not solve the issue, please provide logs of Document Server for analysis. They are located in /var/log/onlyoffice/documentserver/ inside the container with Document Server.

Thank you Konstantin. You solution helps.

If it will be helpful for somebody else I added next strings to my labels for onlyoffice:

      traefik.http.routers.onlyoffice-public-https.middlewares: onlyoffice-headers
      traefik.http.middlewares.onlyoffice-headers.headers.customrequestheaders.X-Forwarded-Proto: https
      traefik.http.middlewares.onlyoffice-headers.headers.accessControlAllowOriginList: cloud.mydomain.com

ATTENTION!!! in Konstantin example mistake:
accessControlAllowOrigin - is not working, should be: accessControlAllowOriginList
Also to use ‘*’ is not safe.

Hello @Senia

Thanks for the feedback.
I’m glad that this information was useful.