Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

Download success,but Can't edit online

Open filwu8 opened this issue 1 year ago • 1 comments

This issue is unique.

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

Operating System of DocumentServer

Windows Server, Docker

Version information

8.0.1-31

Expected Behavior

workwell

Actual Behavior

Can't open/edit test files

1717000599170

1716998968651

but i can download files!

1716999133642 it's well for download files

Reproduction Steps

docker-compos up -d docker-compos.yml

version: '2' services: onlyoffice-documentserver: build: context: . container_name: onlyoffice-documentserver depends_on: - onlyoffice-postgresql - onlyoffice-rabbitmq environment: - DB_TYPE=postgres - DB_HOST=onlyoffice-postgresql - DB_PORT=5432 - DB_NAME=onlyoffice - DB_USER=onlyoffice - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq # Uncomment strings below to enable the JSON Web Token validation. - JWT_ENABLED=true - JWT_SECRET=SecretcDrW4N9zE4GM - JWT_HEADER=Authorizationerp - JWT_IN_BODY=true ports: - '8201:80' - '8202:443' stdin_open: true restart: always stop_grace_period: 60s volumes: - ./volumes/Data:/var/www/onlyoffice/Data #copy folder certs(include cert )for there - ./volumes/Log:/var/log/onlyoffice - ./volumes/onlyoffice:/var/lib/onlyoffice - ./volumes/onlyoffice/documentserver/App_Data/cache/files:/var/lib/onlyoffice/documentserver/App_Data/cache/files - ./volumes/Publicfiles:/var/www/onlyoffice/documentserver-example/public/files - ./volumes/fontscustom/:/usr/share/fonts/truetype/custom - ./volumes/fonts:/usr/share/fonts - ./volumes/postgresql_data:/var/lib/postgresql - ./volumes/redis:/var/lib/redis - ./volumes/rabbitmq:/var/lib/rabbitmq

onlyoffice-rabbitmq: container_name: onlyoffice-rabbitmq image: rabbitmq restart: always expose: - '5672'

onlyoffice-postgresql: container_name: onlyoffice-postgresql image: postgres:14 environment: - POSTGRES_DB=onlyoffice - POSTGRES_USER=onlyoffice - POSTGRES_HOST_AUTH_METHOD=trust restart: always expose: - '5432' volumes: - ./volumes/postgresql_data:/var/lib/postgresql - ./volumes/postgresql_data/data:/var/lib/postgresql/data

then.................


\Log\documentserver\converter\out.log

[2024-05-29T16:15:17.768] [ERROR] [localhost] [172.23.0.1new__1_.docx1716999079633] [uid-1] nodeJS - error downloadFile:url=https://192.168.88.202:8202/example/download?fileName=new%20(1).docx&useraddress=172.23.0.1;attempt=1;code:ETIMEDOUT;connect:null Error: Error: whole request cycle timeout at raiseError (/snapshot/server/Common/sources/utils.js) at Timeout._onTimeout (/snapshot/server/Common/sources/utils.js) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)


\Log\documentserver\docservice\out.log

[2024-05-29T15:58:52.794] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting... [2024-05-29T15:58:52.798] [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 [2024-05-29T15:58:52.977] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31 [2024-05-29T15:59:09.316] [ERROR] [localhost] [172.23.0.1new.docx1716998348252] [uid-1] nodeJS - postData error: url = https://localhost:8202/example/track?filename=new.docx&useraddress=172.23.0.1;data = {"key":"172.23.0.1new.docx1716998348252","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxNzIuMjMuMC4xbmV3LmRvY3gxNzE2OTk4MzQ4MjUyIiwic3RhdHVzIjoxLCJ1c2VycyI6WyJ1aWQtMSJdLCJhY3Rpb25zIjpbeyJ0eXBlIjoxLCJ1c2VyaWQiOiJ1aWQtMSJ9XSwiaWF0IjoxNzE2OTk4MzQ5LCJleHAiOjE3MTY5OTg2NDl9.Ia_mRdewJA9vZqDL2kFDRNnjM0O6fzOfigI674qka6o"} Error: connect ECONNREFUSED 127.0.0.1:8202 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

Additional information

Windows 11 + Docekr Desktop

and docker print

psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql:21: NOTICE: relation "doc_changes" already exists, skipping psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql:41: NOTICE: relation "task_result" already exists, skipping Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Waiting for connection to the onlyoffice-rabbitmq host on port 5672 Starting supervisor: supervisord.

  • Starting periodic command scheduler cron ...done.
  • Starting nginx nginx ...done. Generating AllFonts.js, please wait...Done Generating presentation themes, please wait...Done Generating js caches, please wait...Done ds:docservice: stopped ds:docservice: started ds:converter: stopped ds:converter: started
  • Reloading nginx configuration nginx ...done.

==> /var/log/onlyoffice/documentserver/converter/err.log <==

==> /var/log/onlyoffice/documentserver/converter/out.log <== [2024-05-29T16:23:29.251] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: undefined [2024-05-29T16:23:29.252] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2024-05-29T16:23:29.257] [WARN] [localhost] [docId] [userId] nodeJS - worker 489 started. [2024-05-29T16:23:29.260] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: undefined [2024-05-29T16:23:29.260] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2024-05-29T16:24:15.182] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: undefined [2024-05-29T16:24:15.183] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2024-05-29T16:24:15.189] [WARN] [localhost] [docId] [userId] nodeJS - worker 786 started. [2024-05-29T16:24:15.191] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 20; availableParallelism: undefined [2024-05-29T16:24:15.192] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

==> /var/log/onlyoffice/documentserver/docservice/err.log <==

==> /var/log/onlyoffice/documentserver/docservice/out.log <== [2024-05-29T16:23:29.647] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting... [2024-05-29T16:23:29.650] [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 [2024-05-29T16:23:30.494] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31 [2024-05-29T16:24:14.395] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting... [2024-05-29T16:24:14.398] [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 [2024-05-29T16:24:14.579] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31

==> /var/log/onlyoffice/documentserver/nginx.error.log <==

==> /var/log/onlyoffice/documentserver/converter/out.log <== [2024-05-29T16:30:48.186] [ERROR] [localhost] [172.24.0.1new.docx1717000127148] [uid-1] nodeJS - error downloadFile:url=https://192.168.88.202:8202/example/download?fileName=new.docx&useraddress=172.24.0.1;attempt=1;code:ETIMEDOUT;connect:null Error: Error: whole request cycle timeout at raiseError (/snapshot/server/Common/sources/utils.js) at Timeout._onTimeout (/snapshot/server/Common/sources/utils.js) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

==> /var/log/onlyoffice/documentserver/docservice/out.log <== [2024-05-29T16:30:58.806] [ERROR] [localhost] [172.24.0.1new.docx1717000127148] [uid-1] nodeJS - postData error: url = https://192.168.88.202:8202/example/track?filename=new.docx&useraddress=172.24.0.1;data = {"key":"172.24.0.1new.docx1717000127148","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxNzIuMjQuMC4xbmV3LmRvY3gxNzE3MDAwMTI3MTQ4Iiwic3RhdHVzIjoxLCJ1c2VycyI6WyJ1aWQtMSJdLCJhY3Rpb25zIjpbeyJ0eXBlIjoxLCJ1c2VyaWQiOiJ1aWQtMSJ9XSwiaWF0IjoxNzE3MDAwMTI4LCJleHAiOjE3MTcwMDA0Mjh9.fMTiQU2Gmrew2K1X0MPyDw7bkOMrhjIJap2NqtD-0N0"} Error: connect ETIMEDOUT 192.168.88.202:8202 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

filwu8 avatar May 29 '24 16:05 filwu8

Hello @filwu8, I see what you are using self-signed certs, try to add variable USE_UNAUTHORIZED_STORAGE=true to the onlyoffice section.

igwyd avatar Jun 03 '24 11:06 igwyd

Hi @filwu8

I too faced this issue i fixed it using below command, where I need to give the path to store the document.

docker run -i -t -d -p 80:80 -v /path/on/host:/var/www/onlyoffice/Data --restart=always onlyoffice/documentserver

Replace "/path/on/host" with an actual path on your machine where you want to store the documents.

kameshwaranHontrel avatar Aug 27 '24 08:08 kameshwaranHontrel

This issue was closed due no response.

Rita-Bubnova avatar Sep 16 '24 10:09 Rita-Bubnova