[GH-ISSUE #659] Error while downloading the document file to be converted. #296

Closed
opened 2026-02-26 10:31:41 +03:00 by kerem · 15 comments
Owner

Originally created by @garysan on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/659

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Docker

Version information

7.4.1.36

Expected Behavior

Cannot connect onlyoffice with nextcloud 27.0.2

Actual Behavior

This error on nextcloud log.
[onlyoffice] Error: Exception: Se ha producido un error en el servicio de documentos: Error while downloading the document file to be converted. at <>

  1. /usr/share/nginx/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 95
    OCA\Onlyoffice\DocumentService->ProcessConvServResponceError("-4")
  2. /usr/share/nginx/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 446
    OCA\Onlyoffice\DocumentService->GetConvertedUri("https://cloud.a ... c", "docx", "docx", "check_374368489")
  3. /usr/share/nginx/html/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php line 181
    OCA\Onlyoffice\DocumentService->checkDocServiceUrl(["OC\URLGenerat ... ]], ["OCA\Onlyoffice\Crypt"])
  4. /usr/share/nginx/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Onlyoffice\Controller\SettingsController->SaveAddress("https://10.10.10.16:8181/", "", "", true, "Secret2020", "", false)
  5. /usr/share/nginx/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController(["OCA\Onlyoffic ... "], "saveAddress")
  6. /usr/share/nginx/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Onlyoffic ... "], "saveAddress")
  7. /usr/share/nginx/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main("SettingsController", "saveAddress", ["OC\AppFramewo ... "], ["onlyoffice.settings.save_address"])
  8. /usr/share/nginx/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match("/apps/onlyoffice/ajax/settings/address")
  9. /usr/share/nginx/html/nextcloud/index.php line 36
    OC::handleRequest()

Reproduction Steps

create docker using self signed cert:
sudo docker run --name=onlyofficedocker -i -t -d -p 8181:443
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data
-e JWT_ENABLED='true' -e JWT_SECRET='Secret2020' -e JWT_IN_BODY='true' -e JWT_HEADER='AuthorizationJwt' -e JWT_IN_BODY=true -e USE_UNAUTHORIZED_STORAGE=true
--restart=always onlyoffice/documentserver

Try to connect from Nextcloud using https://10.10.10.16:8181

Additional information

My config on nextcloud config.php have

'onlyoffice' =>
array (
'verify_peer_off' => true,
"jwt_secret" => "Secret2020",
"jwt_header" => "AuthorizationJwt"
),
'allow_local_remote_servers' => true,

and my local.json
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "AuthorizationJwt",
"inBody": true
},
"outbox": {
"header": "AuthorizationJwt",
"inBody": true
}
},
"secret": {
"inbox": {
"string": "Secret2020"
},
"outbox": {
"string": "Secret2020"
},
"session": {
"string": "Secret2020"
}
},
"requestDefaults": {
"rejectUnauthorized": false
}

Originally created by @garysan on GitHub (Sep 5, 2023). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/659 ### This issue is unique. - [X] I have used the [search tool](https://github.com/ONLYOFFICE/DocumentServer/issues?q=) and did not find an issue describing my bug. ### Operating System of DocumentServer Docker ### Version information 7.4.1.36 ### Expected Behavior Cannot connect onlyoffice with nextcloud 27.0.2 ### Actual Behavior This error on nextcloud log. [onlyoffice] Error: Exception: Se ha producido un error en el servicio de documentos: Error while downloading the document file to be converted. at <<closure>> 0. /usr/share/nginx/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 95 OCA\Onlyoffice\DocumentService->ProcessConvServResponceError("-4") 1. /usr/share/nginx/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 446 OCA\Onlyoffice\DocumentService->GetConvertedUri("https://cloud.a ... c", "docx", "docx", "check_374368489") 2. /usr/share/nginx/html/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php line 181 OCA\Onlyoffice\DocumentService->checkDocServiceUrl(["OC\\URLGenerat ... ]], ["OCA\\Onlyoffice\\Crypt"]) 3. /usr/share/nginx/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Onlyoffice\Controller\SettingsController->SaveAddress("https://10.10.10.16:8181/", "", "", true, "Secret2020", "", false) 4. /usr/share/nginx/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Onlyoffic ... "], "saveAddress") 5. /usr/share/nginx/html/nextcloud/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Onlyoffic ... "], "saveAddress") 6. /usr/share/nginx/html/nextcloud/lib/private/Route/Router.php line 315 OC\AppFramework\App::main("SettingsController", "saveAddress", ["OC\\AppFramewo ... "], ["onlyoffice.settings.save_address"]) 7. /usr/share/nginx/html/nextcloud/lib/base.php line 1071 OC\Route\Router->match("/apps/onlyoffice/ajax/settings/address") 8. /usr/share/nginx/html/nextcloud/index.php line 36 OC::handleRequest() ### Reproduction Steps create docker using self signed cert: sudo docker run --name=onlyofficedocker -i -t -d -p 8181:443 \ -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \ -e JWT_ENABLED='true' -e JWT_SECRET='Secret2020' -e JWT_IN_BODY='true' -e JWT_HEADER='AuthorizationJwt' -e JWT_IN_BODY=true -e USE_UNAUTHORIZED_STORAGE=true \ --restart=always onlyoffice/documentserver Try to connect from Nextcloud using https://10.10.10.16:8181 ### Additional information My config on nextcloud config.php have 'onlyoffice' => array ( 'verify_peer_off' => true, "jwt_secret" => "Secret2020", "jwt_header" => "AuthorizationJwt" ), 'allow_local_remote_servers' => true, and my local.json "token": { "enable": { "request": { "inbox": true, "outbox": true }, "browser": true }, "inbox": { "header": "AuthorizationJwt", "inBody": true }, "outbox": { "header": "AuthorizationJwt", "inBody": true } }, "secret": { "inbox": { "string": "Secret2020" }, "outbox": { "string": "Secret2020" }, "session": { "string": "Secret2020" } }, "requestDefaults": { "rejectUnauthorized": false }
kerem 2026-02-26 10:31:41 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@igwyd commented on GitHub (Sep 5, 2023):

Hello @garysan, please provide errors from the onlyoffice-documentserver container log. Did you check the "included test example" from https://10.10.10.16:8181/welcome/, does it work? Did you create self-signet TLS certificate for servers ip address, not dns name? (you show in the issue the address to connect https://10.10.10.16:8181/)

<!-- gh-comment-id:1711349675 --> @igwyd commented on GitHub (Sep 5, 2023): Hello @garysan, please provide errors from the onlyoffice-documentserver container log. Did you check the "included test example" from https://10.10.10.16:8181/welcome/, does it work? Did you create self-signet TLS certificate for servers ip address, not dns name? (you show in the issue the address to connect https://10.10.10.16:8181/)
Author
Owner

@garysan commented on GitHub (Sep 5, 2023):

Hi @igwyd

yes, https://10.10.10.16:8181/welcome/ is work, self-signed is created for ip.

nginx.error.log
2023/09/05 06:25:13 [error] 7554#7554: *520 connect() failed (111: Unknown error) while connecting to upstream, client: 10.0.8.4, server: , request: "GET /7.4.1-36/doc/10.0.8.4plan_test.docx11693892336604/c/?EIO=4&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/10.0.8.4plan_test.docx11693892336604/c/?EIO=4&transport=websocket", host: "10.10.10.16:8181"

Log:
==> converter/out.log <==
[2023-09-05T12:49:15.003] [ERROR] [localhost] [conv_check_1127114310_docx] [userId] nodeJS - error downloadFile:url=https://domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.NKEIwAK5sHdQuLIOpRgLRQ4RgwBiA-4Br3JfRKlO8Pc;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 05 Sep 2023 12:49:14 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","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 TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-09-05T12:49:16.013] [ERROR] [localhost] [conv_check_1127114310_docx] [userId] nodeJS - error downloadFile:url=https://domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.NKEIwAK5sHdQuLIOpRgLRQ4RgwBiA-4Br3JfRKlO8Pc;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 05 Sep 2023 12:49:16 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","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 TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
[2023-09-05T12:49:17.020] [ERROR] [localhost] [conv_check_1127114310_docx] [userId] nodeJS - error downloadFile:url=https://domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.NKEIwAK5sHdQuLIOpRgLRQ4RgwBiA-4Br3JfRKlO8Pc;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 05 Sep 2023 12:49:17 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","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 TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)

<!-- gh-comment-id:1711349679 --> @garysan commented on GitHub (Sep 5, 2023): Hi @igwyd yes, https://10.10.10.16:8181/welcome/ is work, self-signed is created for ip. nginx.error.log 2023/09/05 06:25:13 [error] 7554#7554: *520 connect() failed (111: Unknown error) while connecting to upstream, client: 10.0.8.4, server: , request: "GET /7.4.1-36/doc/10.0.8.4plan_test.docx11693892336604/c/?EIO=4&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/10.0.8.4plan_test.docx11693892336604/c/?EIO=4&transport=websocket", host: "10.10.10.16:8181" Log: ==> converter/out.log <== [2023-09-05T12:49:15.003] [ERROR] [localhost] [conv_check_1127114310_docx] [userId] nodeJS - error downloadFile:url=https://domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.NKEIwAK5sHdQuLIOpRgLRQ4RgwBiA-4Br3JfRKlO8Pc;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 05 Sep 2023 12:49:14 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","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 TLSSocket.socketOnData (_http_client.js:515:22) at TLSSocket.emit (events.js:400:28) at addChunk (internal/streams/readable.js:293:12) at readableAddChunk (internal/streams/readable.js:267:9) at TLSSocket.Readable.push (internal/streams/readable.js:206:10) at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23) [2023-09-05T12:49:16.013] [ERROR] [localhost] [conv_check_1127114310_docx] [userId] nodeJS - error downloadFile:url=https://domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.NKEIwAK5sHdQuLIOpRgLRQ4RgwBiA-4Br3JfRKlO8Pc;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 05 Sep 2023 12:49:16 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","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 TLSSocket.socketOnData (_http_client.js:515:22) at TLSSocket.emit (events.js:400:28) at addChunk (internal/streams/readable.js:293:12) at readableAddChunk (internal/streams/readable.js:267:9) at TLSSocket.Readable.push (internal/streams/readable.js:206:10) at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23) [2023-09-05T12:49:17.020] [ERROR] [localhost] [conv_check_1127114310_docx] [userId] nodeJS - error downloadFile:url=https://domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.NKEIwAK5sHdQuLIOpRgLRQ4RgwBiA-4Br3JfRKlO8Pc;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Tue, 05 Sep 2023 12:49:17 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","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 TLSSocket.socketOnData (_http_client.js:515:22) at TLSSocket.emit (events.js:400:28) at addChunk (internal/streams/readable.js:293:12) at readableAddChunk (internal/streams/readable.js:267:9) at TLSSocket.Readable.push (internal/streams/readable.js:206:10) at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
Author
Owner

@igwyd commented on GitHub (Sep 6, 2023):

The error indicates that the documentserver could not find the required page on that server. As far as I can see this response comes from a real server https://domain.com/, do you use this name domain.com inside your LAN for the nexcloud server?

<!-- gh-comment-id:1711349685 --> @igwyd commented on GitHub (Sep 6, 2023): The error indicates that the documentserver could not find the required page on that server. As far as I can see this response comes from a real server https://domain.com/, do you use this name **domain.com** inside your LAN for the nexcloud server?
Author
Owner

@wedreamer commented on GitHub (Sep 8, 2023):

The error indicates that the documentserver could not find the required page on that server. As far as I can see this response comes from a real server https://domain.com/, do you use this name domain.com inside your LAN for the nexcloud server?

I'm having the same issue

<!-- gh-comment-id:1711349689 --> @wedreamer commented on GitHub (Sep 8, 2023): > The error indicates that the documentserver could not find the required page on that server. As far as I can see this response comes from a real server https://domain.com/, do you use this name **domain.com** inside your LAN for the nexcloud server? I'm having the same issue
Author
Owner

@wedreamer commented on GitHub (Sep 8, 2023):

docker compose yml

dockfile

FROM nextcloud

RUN echo "Types: deb" > /etc/apt/sources.list.d/debian.sources && \
    echo "URIs: http://mirrors.tuna.tsinghua.edu.cn/debian/" >> /etc/apt/sources.list.d/debian.sources && \
    echo "Suites: bookworm bookworm-updates bookworm-backports" >> /etc/apt/sources.list.d/debian.sources && \
    echo "Components: main contrib non-free" >> /etc/apt/sources.list.d/debian.sources && \
    echo "" >> /etc/apt/sources.list.d/debian.sources && \
    echo "Types: deb" >> /etc/apt/sources.list.d/debian.sources && \
    echo "URIs: http://mirrors.tuna.tsinghua.edu.cn/debian-security/" >> /etc/apt/sources.list.d/debian.sources && \
    echo "Suites: bookworm-security" >> /etc/apt/sources.list.d/debian.sources && \
    echo "Components: main contrib non-free" >> /etc/apt/sources.list.d/debian.sources && \
    apt-get update

RUN apt-get update && \
    apt-get install -y smbclient libsmbclient-dev && \
    pecl install smbclient && \
    docker-php-ext-enable smbclient
version: '3'

services:
  db:
    image: postgres
    restart: always
    volumes:
      - ./nextcloud-db:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: 6%9C8En@TY6Yge'++
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud

  app:
    build:
      context: .
      dockerfile: Dockerfile
    restart: always
    ports:
      - 8080:80
    links:
      - db
      - onlyoffice
    volumes:
      - ./nextcloud:/var/www/html
    environment:
      POSTGRES_HOST: db
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 6%9C8En@TY6Yge'++

  # collabora:
  #   image: collabora/code
  #   restart: always
  #   ports:
  #     - 9980:9980
  #   environment:
  #     - username=nextcloud
  #     - password=M6hKBgNzLs!T9GL
  #     - extra_params=--o:ssl.enable=false

  onlyoffice:
    image: onlyoffice/documentserver
    restart: always
    ports:
      - 9980:80
    volumes:
      - ./onlyoffice_data:/var/www/onlyoffice/Data
      - ./onlyoffice_log:/var/log/onlyoffice
    environment:
      - TZ=Asia/Shanghai
      - JWT_ENABLED=false
      - JWT_SECRET=jwt_secret
      - JWT_HEADER=AuthorizationJwt

run

docker compose up -d
# change /etc/onlyoffice/documentserver/default.json
requestDefaults.rejectUnauthorized -> false
request-filtering-agent.allowPrivateIPAddress -> true
request-filtering-agent.allowMetaIPAddress -> true
docker compose restart onlyoffice

install onlyoffice app and config in nextCloud

图片

then

==> /var/log/onlyoffice/documentserver/metrics/out.log <==
8 Sep 06:55:21 - [571] reading config file: ./config/config.js
8 Sep 06:55:22 - server is up INFO
8 Sep 07:01:16 - [569] reading config file: ./config/config.js
8 Sep 07:01:16 - server is up INFO
8 Sep 07:03:29 - [573] reading config file: ./config/config.js
8 Sep 07:03:29 - server is up INFO
8 Sep 07:09:40 - [572] reading config file: ./config/config.js
8 Sep 07:09:40 - server is up INFO
8 Sep 07:12:05 - [572] reading config file: ./config/config.js
8 Sep 07:12:05 - server is up INFO

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2023/09/08 04:55:19 [error] 610#610: *5 upstream prematurely closed connection while reading response header from upstream, client: 192.168.240.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice"

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2023-09-08T07:13:44.864] [ERROR] [localhost] [conv_check_558616411_docx] [userId] nodeJS - error downloadFile:url=http://onlyoffice/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Fri, 08 Sep 2023 07:13:44 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-09-08T07:13:45.869] [ERROR] [localhost] [conv_check_558616411_docx] [userId] nodeJS - error downloadFile:url=http://onlyoffice/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Fri, 08 Sep 2023 07:13:45 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)
<!-- gh-comment-id:1711349693 --> @wedreamer commented on GitHub (Sep 8, 2023): ## docker compose yml dockfile ```dockerfile FROM nextcloud RUN echo "Types: deb" > /etc/apt/sources.list.d/debian.sources && \ echo "URIs: http://mirrors.tuna.tsinghua.edu.cn/debian/" >> /etc/apt/sources.list.d/debian.sources && \ echo "Suites: bookworm bookworm-updates bookworm-backports" >> /etc/apt/sources.list.d/debian.sources && \ echo "Components: main contrib non-free" >> /etc/apt/sources.list.d/debian.sources && \ echo "" >> /etc/apt/sources.list.d/debian.sources && \ echo "Types: deb" >> /etc/apt/sources.list.d/debian.sources && \ echo "URIs: http://mirrors.tuna.tsinghua.edu.cn/debian-security/" >> /etc/apt/sources.list.d/debian.sources && \ echo "Suites: bookworm-security" >> /etc/apt/sources.list.d/debian.sources && \ echo "Components: main contrib non-free" >> /etc/apt/sources.list.d/debian.sources && \ apt-get update RUN apt-get update && \ apt-get install -y smbclient libsmbclient-dev && \ pecl install smbclient && \ docker-php-ext-enable smbclient ``` ```yml version: '3' services: db: image: postgres restart: always volumes: - ./nextcloud-db:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: 6%9C8En@TY6Yge'++ POSTGRES_DB: nextcloud POSTGRES_USER: nextcloud app: build: context: . dockerfile: Dockerfile restart: always ports: - 8080:80 links: - db - onlyoffice volumes: - ./nextcloud:/var/www/html environment: POSTGRES_HOST: db POSTGRES_DB: nextcloud POSTGRES_USER: nextcloud POSTGRES_PASSWORD: 6%9C8En@TY6Yge'++ # collabora: # image: collabora/code # restart: always # ports: # - 9980:9980 # environment: # - username=nextcloud # - password=M6hKBgNzLs!T9GL # - extra_params=--o:ssl.enable=false onlyoffice: image: onlyoffice/documentserver restart: always ports: - 9980:80 volumes: - ./onlyoffice_data:/var/www/onlyoffice/Data - ./onlyoffice_log:/var/log/onlyoffice environment: - TZ=Asia/Shanghai - JWT_ENABLED=false - JWT_SECRET=jwt_secret - JWT_HEADER=AuthorizationJwt ``` ## run ```bash docker compose up -d # change /etc/onlyoffice/documentserver/default.json requestDefaults.rejectUnauthorized -> false request-filtering-agent.allowPrivateIPAddress -> true request-filtering-agent.allowMetaIPAddress -> true docker compose restart onlyoffice ``` ## install onlyoffice app and config in nextCloud ![图片](https://github.com/ONLYOFFICE/DocumentServer/assets/43949542/21234ddf-b0df-4ae9-9aa4-ee19897ca2af) ## then ```bash ==> /var/log/onlyoffice/documentserver/metrics/out.log <== 8 Sep 06:55:21 - [571] reading config file: ./config/config.js 8 Sep 06:55:22 - server is up INFO 8 Sep 07:01:16 - [569] reading config file: ./config/config.js 8 Sep 07:01:16 - server is up INFO 8 Sep 07:03:29 - [573] reading config file: ./config/config.js 8 Sep 07:03:29 - server is up INFO 8 Sep 07:09:40 - [572] reading config file: ./config/config.js 8 Sep 07:09:40 - server is up INFO 8 Sep 07:12:05 - [572] reading config file: ./config/config.js 8 Sep 07:12:05 - server is up INFO ==> /var/log/onlyoffice/documentserver/nginx.error.log <== 2023/09/08 04:55:19 [error] 610#610: *5 upstream prematurely closed connection while reading response header from upstream, client: 192.168.240.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice" ==> /var/log/onlyoffice/documentserver/converter/out.log <== [2023-09-08T07:13:44.864] [ERROR] [localhost] [conv_check_558616411_docx] [userId] nodeJS - error downloadFile:url=http://onlyoffice/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Fri, 08 Sep 2023 07:13:44 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-09-08T07:13:45.869] [ERROR] [localhost] [conv_check_558616411_docx] [userId] nodeJS - error downloadFile:url=http://onlyoffice/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Fri, 08 Sep 2023 07:13:45 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) ```
Author
Owner

@igwyd commented on GitHub (Sep 8, 2023):

Hello @wedreamer, in your case here must be Nextcloud server name.
nc

<!-- gh-comment-id:1711349697 --> @igwyd commented on GitHub (Sep 8, 2023): Hello @wedreamer, in your case here must be Nextcloud server name. ![nc](https://github.com/ONLYOFFICE/DocumentServer/assets/67538082/ddb8a039-8da0-4bff-bd25-66bbb51be954)
Author
Owner

@wedreamer commented on GitHub (Sep 8, 2023):

Hello @wedreamer, in your case here must be Nextcloud server name. nc

Thank you, there is still a problem after the change

[2023-09-08T08:29:41.131] [ERROR] [localhost] [conv_check_1893095779_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.shubuzuo.top:8080/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:ETIMEDOUT;connect:undefined Error: Error: whole request cycle timeout
    at raiseError (/snapshot/server/build/server/Common/sources/utils.js)
    at Timeout._onTimeout (/snapshot/server/build/server/Common/sources/utils.js)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2023/09/08 08:29:44 [error] 7045#7045: *35 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.19.0.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice"
2023/09/08 08:30:20 [error] 7045#7045: *41 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.19.0.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice"
<!-- gh-comment-id:1711349700 --> @wedreamer commented on GitHub (Sep 8, 2023): > Hello @wedreamer, in your case here must be Nextcloud server name. ![nc](https://user-images.githubusercontent.com/67538082/266547769-ddb8a039-8da0-4bff-bd25-66bbb51be954.png) Thank you, there is still a problem after the change ```bash [2023-09-08T08:29:41.131] [ERROR] [localhost] [conv_check_1893095779_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.shubuzuo.top:8080/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:ETIMEDOUT;connect:undefined Error: Error: whole request cycle timeout at raiseError (/snapshot/server/build/server/Common/sources/utils.js) at Timeout._onTimeout (/snapshot/server/build/server/Common/sources/utils.js) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) ==> /var/log/onlyoffice/documentserver/nginx.error.log <== 2023/09/08 08:29:44 [error] 7045#7045: *35 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.19.0.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice" 2023/09/08 08:30:20 [error] 7045#7045: *41 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.19.0.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice" ```
Author
Owner

@wedreamer commented on GitHub (Sep 8, 2023):

This is another attempt by me, using Docker's service name

图片

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2023/09/08 08:33:34 [error] 7045#7045: *47 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.19.0.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice"

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2023-09-08T08:33:41.296] [ERROR] [localhost] [conv_check_1619208434_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.shubuzuo.top:8080/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:ETIMEDOUT;connect:undefined Error: Error: whole request cycle timeout
    at raiseError (/snapshot/server/build/server/Common/sources/utils.js)
    at Timeout._onTimeout (/snapshot/server/build/server/Common/sources/utils.js)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
[2023-09-08T08:33:41.364] [ERROR] [localhost] [conv_check_1086039637_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:41 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=280044599992b59970a775acd7dbba6c; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=pt8oNFHpmYou1q7kxwAxHAjUIpVGP5qx5vEPwwNAI8EGBGWzyBMqLQvnj6dwq4Qqn%2Fd8d0ki2ATS25AtOLiJMBoybVNYdxjUYRMK%2F9QOzIg2m38ri%2B%2F725i92%2BTKJASr; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=f2e088a592f9008ef83b9ba82dd0dbb3; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=f2e088a592f9008ef83b9ba82dd0dbb3; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=f2e088a592f9008ef83b9ba82dd0dbb3; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-aDk0VWkwblNaS2ZiQXpCSzJLQ1RFVnpmN0REcytTdUkvaGRuQVdTTFJFND06NHJoei9CKzNUOUtkZG1JUXJjZW1XamllbmttaXMwVE1xSEVEVWxYN0t5WT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"};
    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 [as onIncoming] (_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-09-08T08:33:42.421] [ERROR] [localhost] [conv_check_1086039637_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:42 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=3790a78e82820d8238688f3086489d91; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=p5mpn5WMGt7KIpjAvVWFaU5dpBfooZGyH1ebEvByU4oaBadErvUNctV%2FzF%2FVbWkhyMf5h2XEJfv%2FjQ9NuJLuBr1LSiFo%2F98yIkYNdfjDLrAGLokohmgcv6QuH8p56nbv; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=afd65b58a0ae78ada0e08575247c30db; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=afd65b58a0ae78ada0e08575247c30db; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=afd65b58a0ae78ada0e08575247c30db; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-Uzl4amhoNmxSTUg3SkhDTFlDTXdtOGFvQWpwUjBkUmNKTHlKSTlOQnl1WT06Q0pwVThIT2NIWlcwYndqb01VUkl5WXJyYkYwZnViTXRjY241VnFFMG02dz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"};
    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 [as onIncoming] (_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-09-08T08:33:43.473] [ERROR] [localhost] [conv_check_1086039637_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:43 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=bd5b8ee1fe8b03cbfb906b46ace56333; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=HueSkPJ55R78mI3uGGyA6xMo%2BYrqtQTwCak91N71hvTAWhBQK4axT4fKVsWyS9CSPDS2YRv3U%2FWcvLFwOaqd1xoL9dtXWB%2BTW2dUsc7MXq5LgLX9U4VFN4aL9U4l5ltb; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=37d7bb34643d6d340b812356c30f2be2; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=37d7bb34643d6d340b812356c30f2be2; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=37d7bb34643d6d340b812356c30f2be2; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-SldtejJOMDJueFJtMCsrNXpreE10V0VBNkNtUWFHSVdkUGFvUDcrU3NCRT06YzFIMTc1SjEwVm9Sb2RuTGx6d0hqVEV5cFVMK0pUZGdPckdIZTlxaDQyZz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"};
    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 [as onIncoming] (_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-09-08T08:33:44.529] [ERROR] [localhost] [conv_check_671041798_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:44 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=36f5fa9d2f07a5f7a37a71ffb5e1fed5; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=QqNgaMyP5oFa39ekrq2Eqk%2B7m0qLTx2O4NfJcivnE3xAownHieGHgj6gYkoObygRXgfF9YEzUCj19U4UFga2puM9y3ZCokU5cSvH0PfTewPwtRXWMR5wTI3ARoRak7ug; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=e787409887e452b8818bc9ec28866790; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=e787409887e452b8818bc9ec28866790; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=e787409887e452b8818bc9ec28866790; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-SWF3SzBPYU9SbDg4QUUxbTJpWTZkRk9UYWxDdE9xR3l4Q3JwL29TSkxMRT06U3NCOTU0dkhkejVMVGlFZTlSTkpQVExDQmhQYmJ0aldqRSs1aUsrK1Fjcz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"};
    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 [as onIncoming] (_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-09-08T08:33:45.575] [ERROR] [localhost] [conv_check_671041798_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:45 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=11e8f9116756a6b4ba9c8e19f5a39ea7; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=OAqAOf0Ioog7xSyYj3Bfrog%2BnHqnRR6fIOFP7MNLfm2ER%2Bvs9ehWPuw5IOqN9mCZJESBRuSs2QvV8%2F7IkX3AuesOo%2BmqzeTSQz26j4efpPsDBPEGCmb6OoPW%2BdLoAb0i; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=10dc0044b07f466f9a84dc55afdc41d3; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=10dc0044b07f466f9a84dc55afdc41d3; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=10dc0044b07f466f9a84dc55afdc41d3; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-WTkxVktKVEh1RmltT3ppTnpuRzR4OFlTZGFCYUxJYWNJTDMwR3c5Sy9yND06VUtnNFlLQ3UvaUdWYlFtMTVVU0pqWWRWTDVNVFhPRFFUZFdnZjA0L25jWT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
<!-- gh-comment-id:1711349706 --> @wedreamer commented on GitHub (Sep 8, 2023): This is another attempt by me, using Docker's service name ![图片](https://github.com/ONLYOFFICE/DocumentServer/assets/43949542/aa2f27d5-c0da-4425-8aa0-bb128b446c8c) ```bash ==> /var/log/onlyoffice/documentserver/nginx.error.log <== 2023/09/08 08:33:34 [error] 7045#7045: *47 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.19.0.4, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "onlyoffice" ==> /var/log/onlyoffice/documentserver/converter/out.log <== [2023-09-08T08:33:41.296] [ERROR] [localhost] [conv_check_1619208434_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.shubuzuo.top:8080/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:ETIMEDOUT;connect:undefined Error: Error: whole request cycle timeout at raiseError (/snapshot/server/build/server/Common/sources/utils.js) at Timeout._onTimeout (/snapshot/server/build/server/Common/sources/utils.js) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) [2023-09-08T08:33:41.364] [ERROR] [localhost] [conv_check_1086039637_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:41 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=280044599992b59970a775acd7dbba6c; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=pt8oNFHpmYou1q7kxwAxHAjUIpVGP5qx5vEPwwNAI8EGBGWzyBMqLQvnj6dwq4Qqn%2Fd8d0ki2ATS25AtOLiJMBoybVNYdxjUYRMK%2F9QOzIg2m38ri%2B%2F725i92%2BTKJASr; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=f2e088a592f9008ef83b9ba82dd0dbb3; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=f2e088a592f9008ef83b9ba82dd0dbb3; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=f2e088a592f9008ef83b9ba82dd0dbb3; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-aDk0VWkwblNaS2ZiQXpCSzJLQ1RFVnpmN0REcytTdUkvaGRuQVdTTFJFND06NHJoei9CKzNUOUtkZG1JUXJjZW1XamllbmttaXMwVE1xSEVEVWxYN0t5WT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"}; 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 [as onIncoming] (_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-09-08T08:33:42.421] [ERROR] [localhost] [conv_check_1086039637_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:42 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=3790a78e82820d8238688f3086489d91; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=p5mpn5WMGt7KIpjAvVWFaU5dpBfooZGyH1ebEvByU4oaBadErvUNctV%2FzF%2FVbWkhyMf5h2XEJfv%2FjQ9NuJLuBr1LSiFo%2F98yIkYNdfjDLrAGLokohmgcv6QuH8p56nbv; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=afd65b58a0ae78ada0e08575247c30db; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=afd65b58a0ae78ada0e08575247c30db; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=afd65b58a0ae78ada0e08575247c30db; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-Uzl4amhoNmxSTUg3SkhDTFlDTXdtOGFvQWpwUjBkUmNKTHlKSTlOQnl1WT06Q0pwVThIT2NIWlcwYndqb01VUkl5WXJyYkYwZnViTXRjY241VnFFMG02dz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"}; 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 [as onIncoming] (_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-09-08T08:33:43.473] [ERROR] [localhost] [conv_check_1086039637_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:43 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=bd5b8ee1fe8b03cbfb906b46ace56333; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=HueSkPJ55R78mI3uGGyA6xMo%2BYrqtQTwCak91N71hvTAWhBQK4axT4fKVsWyS9CSPDS2YRv3U%2FWcvLFwOaqd1xoL9dtXWB%2BTW2dUsc7MXq5LgLX9U4VFN4aL9U4l5ltb; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=37d7bb34643d6d340b812356c30f2be2; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=37d7bb34643d6d340b812356c30f2be2; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=37d7bb34643d6d340b812356c30f2be2; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-SldtejJOMDJueFJtMCsrNXpreE10V0VBNkNtUWFHSVdkUGFvUDcrU3NCRT06YzFIMTc1SjEwVm9Sb2RuTGx6d0hqVEV5cFVMK0pUZGdPckdIZTlxaDQyZz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"}; 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 [as onIncoming] (_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-09-08T08:33:44.529] [ERROR] [localhost] [conv_check_671041798_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:44 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=36f5fa9d2f07a5f7a37a71ffb5e1fed5; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=QqNgaMyP5oFa39ekrq2Eqk%2B7m0qLTx2O4NfJcivnE3xAownHieGHgj6gYkoObygRXgfF9YEzUCj19U4UFga2puM9y3ZCokU5cSvH0PfTewPwtRXWMR5wTI3ARoRak7ug; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=e787409887e452b8818bc9ec28866790; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=e787409887e452b8818bc9ec28866790; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=e787409887e452b8818bc9ec28866790; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-SWF3SzBPYU9SbDg4QUUxbTJpWTZkRk9UYWxDdE9xR3l4Q3JwL29TSkxMRT06U3NCOTU0dkhkejVMVGlFZTlSTkpQVExDQmhQYmJ0aldqRSs1aUsrK1Fjcz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"}; 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 [as onIncoming] (_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-09-08T08:33:45.575] [ERROR] [localhost] [conv_check_671041798_docx] [userId] nodeJS - error downloadFile:url=http://app/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ja0BttCk7c97EDL_LBUiDSyAL-DJn6I-wkjHeL3R_SI;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"date":"Fri, 08 Sep 2023 08:33:45 GMT","server":"Apache/2.4.57 (Debian)","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"noindex, nofollow","x-xss-protection":"1; mode=block","x-powered-by":"PHP/8.2.10","set-cookie":["ocbvksga2ihc=11e8f9116756a6b4ba9c8e19f5a39ea7; path=/; HttpOnly; SameSite=Lax","oc_sessionPassphrase=OAqAOf0Ioog7xSyYj3Bfrog%2BnHqnRR6fIOFP7MNLfm2ER%2Bvs9ehWPuw5IOqN9mCZJESBRuSs2QvV8%2F7IkX3AuesOo%2BmqzeTSQz26j4efpPsDBPEGCmb6OoPW%2BdLoAb0i; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=10dc0044b07f466f9a84dc55afdc41d3; path=/; HttpOnly; SameSite=Lax","ocbvksga2ihc=10dc0044b07f466f9a84dc55afdc41d3; path=/; HttpOnly; SameSite=Lax","nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","ocbvksga2ihc=10dc0044b07f466f9a84dc55afdc41d3; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'nonce-WTkxVktKVEh1RmltT3ppTnpuRzR4OFlTZGFCYUxJYWNJTDMwR3c5Sy9yND06VUtnNFlLQ3UvaUdWYlFtMTVVU0pqWWRWTDVNVFhPRFFUZFdnZjA0L25jWT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","connection":"close","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8"}; at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js) ```
Author
Owner

@wedreamer commented on GitHub (Sep 8, 2023):

It seems to be related to this issue, thank you. OnlyOffice Docs not Opening

<!-- gh-comment-id:1711349711 --> @wedreamer commented on GitHub (Sep 8, 2023): It seems to be related to this issue, thank you. [OnlyOffice Docs not Opening](https://github.com/ONLYOFFICE/onlyoffice-nextcloud/issues/597#issuecomment-1704356830)
Author
Owner

@wedreamer commented on GitHub (Sep 8, 2023):

Error when trying to connect (Server error: POST http://onlyoffice/ConvertService.ashx resulted in a 504 Gateway Time-out response:

504 Gateway Time-out

504 Gateway Time-out

图片

<!-- gh-comment-id:1711349715 --> @wedreamer commented on GitHub (Sep 8, 2023): Error when trying to connect (Server error: `POST http://onlyoffice/ConvertService.ashx` resulted in a `504 Gateway Time-out` response: 504 Gateway Time-out 504 Gateway Time-out ![图片](https://github.com/ONLYOFFICE/DocumentServer/assets/43949542/752af7f8-cc10-4ae1-8388-b42995567423)
Author
Owner

@igwyd commented on GitHub (Sep 8, 2023):

@wedreamer service names in docker can only be used for internal requests between services inside the docker network. In the field ONLYOFFICE Docs address must be external address http://external-address.com/ because You need an instance of ONLYOFFICE Docs that is resolvable and connectable both from Nextcloud and any end clients. ONLYOFFICE Docs must be able to POST to Nextcloud directly..
nc1

<!-- gh-comment-id:1711349716 --> @igwyd commented on GitHub (Sep 8, 2023): @wedreamer service names in docker can only be used for internal requests between services inside the docker network. In the field **ONLYOFFICE Docs address** must be external address http://external-address.com/ because [You need an instance of ONLYOFFICE Docs that is resolvable and connectable both from Nextcloud and any end clients. ONLYOFFICE Docs must be able to POST to Nextcloud directly.](https://helpcenter.onlyoffice.com/integration/gettingstarted-nextcloud.aspx#Requirements_block). ![nc1](https://github.com/ONLYOFFICE/DocumentServer/assets/67538082/03b54b54-7e61-47ce-8a1b-94de8f0522b8)
Author
Owner

@Mer0me commented on GitHub (Oct 5, 2023):

I have a very similar issue and even if there are lots of threads talking about close subjects, I can't solve my problem.
Nextcloud 27.1.1
OnlyOffice App 8.2.0
Dockerized OnlyOffice 7.2.2.56

My installation is working : I can open, edit, save documents without any problems. The app config page says that all is fine.

BUT !

Sometimes, when browsing my files and folders in the nextcloud file app, it takes ages to display the file previews of all office document. When it happens, I get this error in the nginx.error.log :

2023/10/05 11:19:29 [error] 6399#6399: *647 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.17.0.1, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "localhost:88"

and this one in the Nextcloud log :

{"reqId":"ZB9Y5uId1VoP1imBdKFW","level":3,"time":"2023-10-05T11:08:19+00:00","remoteAddr":"192.168.1.99","user":"user","app":"onlyoffice","method":"GET","url":"/index.php/core/preview?fileId=622185&c=b8638803dd22ce500fabc8ab0d8b3837&x=250&y=250&forceIcon=0&a=1","message":"GetConvertedUri: from pdf to jpeg","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0","exception":{"Exception":"GuzzleHttp\\Exception\\ServerException","Message":"Server error: POST https://office.merome.net/ConvertService.ashx resulted in a 504 Gateway Time-out response:\n<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body>\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><c (truncated...)\n","Code":504,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":69,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":204,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":153,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":301,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":372,"function":"post","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":177,"function":"Request","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":91,"function":"SendRequestToConvertService","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Preview.php","line":269,"function":"GetConvertedUri","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/ProviderV1Adapter.php","line":53,"function":"getThumbnail","class":"OCA\\Onlyoffice\\Preview","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/GeneratorHelper.php","line":64,"function":"getThumbnail","class":"OC\\Preview\\ProviderV1Adapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":397,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":373,"function":"generateProviderPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":166,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":116,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":192,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":144,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":113,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"GetConvertedUri: from pdf to jpeg","CustomMessage":"GetConvertedUri: from pdf to jpeg"}}

Browsing files is extremely slow, about 60s on each folder containing office documents. Although, preview thumbnails are visible. The timeout seems to occur randomly, but very often ~9/10 times when folder contains docs (maybe if there is one missing preview ?). When the folder is displayed, clicking on the nextcloud detail or share button can cause a new very long delay, making nextcloud file browser nearly unusable.

I've already tried to :

  • (un)set internal addresses in the app config => no effect
  • Both Nextcloud and OnlyOffice servers can see each other on wget test
  • increase the rabbitmq time out (*100) => no effect
  • restart docker => no effect
  • set access-control-allow-origin: * in the apache proxy config => no effect
  • set false values on purpose on internal addresses config => I get a normal error and I can't make it works at all with those false values, so I guess my normal configuration is correct

Please help !

<!-- gh-comment-id:1748778051 --> @Mer0me commented on GitHub (Oct 5, 2023): I have a very similar issue and even if there are lots of threads talking about close subjects, I can't solve my problem. Nextcloud 27.1.1 OnlyOffice App 8.2.0 Dockerized OnlyOffice 7.2.2.56 My installation is working : I can open, edit, save documents without any problems. The app config page says that all is fine. BUT ! Sometimes, when browsing my files and folders in the nextcloud file app, it takes ages to display the file previews of all office document. When it happens, I get this error in the nginx.error.log : `2023/10/05 11:19:29 [error] 6399#6399: *647 upstream timed out (110: Unknown error) while reading response header from upstream, client: 172.17.0.1, server: , request: "POST /ConvertService.ashx HTTP/1.1", upstream: "http://127.0.0.1:8000/ConvertService.ashx", host: "localhost:88" ` and this one in the Nextcloud log : `{"reqId":"ZB9Y5uId1VoP1imBdKFW","level":3,"time":"2023-10-05T11:08:19+00:00","remoteAddr":"192.168.1.99","user":"user","app":"onlyoffice","method":"GET","url":"/index.php/core/preview?fileId=622185&c=b8638803dd22ce500fabc8ab0d8b3837&x=250&y=250&forceIcon=0&a=1","message":"GetConvertedUri: from pdf to jpeg","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0","exception":{"Exception":"GuzzleHttp\\Exception\\ServerException","Message":"Server error: POST https://office.merome.net/ConvertService.ashx resulted in a 504 Gateway Time-out response:\n<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body>\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><c (truncated...)\n","Code":504,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":69,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":204,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":153,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":301,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":372,"function":"post","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":177,"function":"Request","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":91,"function":"SendRequestToConvertService","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Preview.php","line":269,"function":"GetConvertedUri","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/ProviderV1Adapter.php","line":53,"function":"getThumbnail","class":"OCA\\Onlyoffice\\Preview","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/GeneratorHelper.php","line":64,"function":"getThumbnail","class":"OC\\Preview\\ProviderV1Adapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":397,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":373,"function":"generateProviderPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":166,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":116,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":192,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":144,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":113,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"GetConvertedUri: from pdf to jpeg","CustomMessage":"GetConvertedUri: from pdf to jpeg"}} ` Browsing files is extremely slow, about 60s on each folder containing office documents. Although, preview thumbnails are visible. The timeout seems to occur randomly, but very often ~9/10 times when folder contains docs (maybe if there is one missing preview ?). When the folder is displayed, clicking on the nextcloud detail or share button can cause a new very long delay, making nextcloud file browser nearly unusable. I've already tried to : - (un)set internal addresses in the app config => no effect - Both Nextcloud and OnlyOffice servers can see each other on wget test - increase the rabbitmq time out (*100) => no effect - restart docker => no effect - set access-control-allow-origin: * in the apache proxy config => no effect - set false values on purpose on internal addresses config => I get a normal error and I can't make it works at all with those false values, so I guess my normal configuration is correct Please help !
Author
Owner

@igwyd commented on GitHub (Feb 16, 2024):

Hello @Mer0me, you have the other issue, please create a new one with describe detail your deployment and add please the reprodusion steps for the bug. We try to help.

<!-- gh-comment-id:1947822237 --> @igwyd commented on GitHub (Feb 16, 2024): Hello @Mer0me, you have the other issue, please create a new one with describe detail your deployment and add please the reprodusion steps for the bug. We try to help.
Author
Owner

@Rita-Bubnova commented on GitHub (Feb 16, 2024):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:1948157149 --> @Rita-Bubnova commented on GitHub (Feb 16, 2024): I close this issue. Feel free to comment or reopen it if you got further questions.
Author
Owner

@KlaBra16F1 commented on GitHub (Jan 4, 2025):

Just had the same issue and in my case the error came from a modification in my nextclouds config.php file:
'htaccess.RewriteBase' => '/' (Youtube tip for securing Nextcloud 😬)
Once I removed that line and ran ./occ maintenance:update:htaccess everything worked just fine and connected.

<!-- gh-comment-id:2571262029 --> @KlaBra16F1 commented on GitHub (Jan 4, 2025): Just had the same issue and in my case the error came from a modification in my nextclouds `config.php` file: `'htaccess.RewriteBase' => '/'` (Youtube tip for securing Nextcloud 😬) Once I removed that line and ran `./occ maintenance:update:htaccess` everything worked just fine and connected.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#296
No description provided.