Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download/edit on Seafile #791

Open
moutasem1989 opened this issue Feb 4, 2025 · 1 comment
Open

Unable to download/edit on Seafile #791

moutasem1989 opened this issue Feb 4, 2025 · 1 comment
Assignees

Comments

@moutasem1989
Copy link

I am trying to get the document server to work with Seafile but so far I am only getting the following error:

Image

My DocumentServer Docker compose configurations:

services:
  documentserver:
    image: onlyoffice/documentserver
    container_name: seafile-documentserver
    restart: unless-stopped
    networks:
      - public
    env_file: /dockerfiles/seafile-documentserver.env
    labels:
      - com.centurylinklabs.watchtower.enable=true

networks:
  public:
    external: true

the variables are:

JWT_ENABLED=true
JWT_SECRET="redacted"

Refering to this guid I added this to seahub_settings.py.

# Enable OnlyOffice
ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = False
ONLYOFFICE_APIJS_URL = 'http{s}://{your OnlyOffice server's domain or IP}/web-apps/apps/api/documents/api.js'
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods')
ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx')

# Enable force save to let user can save file when he/she press the save button on OnlyOffice file edit page.
ONLYOFFICE_FORCE_SAVE = True

# if JWT enabled
ONLYOFFICE_JWT_SECRET = 'redacted'

The Log Output of the document server is:

2025-02-04T15:58:55.825066946Z ==> /var/log/onlyoffice/documentserver/docservice/out.log <==
2025-02-04T15:58:55.825071199Z [2025-02-04T15:54:13.856] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
2025-02-04T15:58:55.825074586Z [2025-02-04T15:54:14.135] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.2.2. Build: 22
2025-02-04T15:58:55.825078022Z [2025-02-04T15:55:10.460] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
2025-02-04T15:58:55.825081105Z [2025-02-04T15:55:10.470] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
2025-02-04T15:58:55.825084194Z [2025-02-04T15:55:10.472] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
2025-02-04T15:58:55.825087343Z [2025-02-04T15:55:10.663] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.2.2. Build: 22
2025-02-04T15:58:55.825092944Z [2025-02-04T15:56:41.558] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local] nodeJS - postData error: url = https://seafile.domain.dlt/onlyoffice/editor-callback/;data = {"key":"deee4593e40dd91d50f6","status":1,"users":["4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local"],"actions":[{"type":1,"userid":"4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local"}],"token":"REDACTEDWYyNkBhdXRoLmxvY2FsIn1dLCJpYXQiOjE3Mzg2ODQ2MDEsImV4cCI6MTczODY4NDkwMX0.t3NB25TLmMONa389hvJvOnRYF8B5XObiVYy51v-rcxM"} Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T15:58:55.825105059Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T15:58:55.825109190Z [2025-02-04T15:56:43.990] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local1] nodeJS - postData error: url = https://seafile.domain.dlt/onlyoffice/editor-callback/;data = {"key":"deee4593e40dd91d50f6","status":4,"actions":[{"type":0,"userid":"4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local"}],"token":"REDACTEDlkIjoiNGYxZDZiZTNhYzZjNGY2MmE1ODU3YmQ5YTJlN2FmMjZAYXV0aC5sb2NhbCJ9XSwiaWF0IjoxNzM4Njg0NjAzLCJleHAiOjE3Mzg2ODQ5MDN9.ByovcVt0Sbi3KEG4x7-t0ydwM_7f-X-yTJiQMKBqHK0"} Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T15:58:55.825115388Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T15:58:55.825118408Z 
2025-02-04T15:58:55.825121122Z ==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2025-02-04T15:58:55.825124238Z 2025/02/04 15:58:18 [error] 1182#1182: *26 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.17, server: , request: "GET /example/?userid=uid-1&lang=en&directUrl=false HTTP/1.1", upstream: "http://[::1]:3000/?userid=uid-1&lang=en&directUrl=false", host: "collabora.domain.dlt", referrer: "https://collabora.domain.dlt/example/"
2025-02-04T15:58:55.825130039Z 2025/02/04 15:58:18 [error] 1182#1182: *26 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.17, server: , request: "GET /example/?userid=uid-1&lang=en&directUrl=false HTTP/1.1", upstream: "http://127.0.0.1:3000/?userid=uid-1&lang=en&directUrl=false", host: "collabora.domain.dlt", referrer: "https://collabora.domain.dlt/example/"
2025-02-04T16:05:28.983533998Z 
2025-02-04T16:05:28.983585269Z ==> /var/log/onlyoffice/documentserver/docservice/out.log <==
2025-02-04T16:05:28.983600640Z [2025-02-04T16:05:28.982] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local] nodeJS - postData error: url = https://seafile.domain.dlt/onlyoffice/editor-callback/;data = {"key":"deee4593e40dd91d50f6","status":1,"users":["4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local"],"actions":[{"type":1,"userid":"4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local"}],"token":"REDACTEDWYyNkBhdXRoLmxvY2FsIn1dLCJpYXQiOjE3Mzg2ODUxMjgsImV4cCI6MTczODY4NTQyOH0.d2PZRHqhyep65gw-iFSigQSL92FU7av3Lezrb9iXX3A"} Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:05:28.983621609Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:05:29.013817026Z 
2025-02-04T16:05:29.013917911Z ==> /var/log/onlyoffice/documentserver/converter/out.log <==
2025-02-04T16:05:29.013979863Z [2025-02-04T16:05:29.011] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local] nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/9dc313f1-0c33-485b-876e-93c1c6bf5fae/-Die%20sparsamsten%20Systeme%20%28_30W%20Idle%29-.xlsx;attempt=1;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:05:29.013995789Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:05:30.020181759Z [2025-02-04T16:05:30.017] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local] nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/9dc313f1-0c33-485b-876e-93c1c6bf5fae/-Die%20sparsamsten%20Systeme%20%28_30W%20Idle%29-.xlsx;attempt=2;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:05:30.020239105Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:05:31.025911096Z [2025-02-04T16:05:31.024] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local] nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/9dc313f1-0c33-485b-876e-93c1c6bf5fae/-Die%20sparsamsten%20Systeme%20%28_30W%20Idle%29-.xlsx;attempt=3;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:05:31.025993109Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:05:32.059511108Z 
2025-02-04T16:05:32.059550336Z ==> /var/log/onlyoffice/documentserver/docservice/out.log <==
2025-02-04T16:05:32.059565922Z [2025-02-04T16:05:32.058] [ERROR] [localhost] [deee4593e40dd91d50f6] [4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local2] nodeJS - postData error: url = https://seafile.domain.dlt/onlyoffice/editor-callback/;data = {"key":"deee4593e40dd91d50f6","status":4,"actions":[{"type":0,"userid":"4f1d6be3ac6c4f62a5857bd9a2e7af26@auth.local"}],"token":"REDACTEDlkIjoiNGYxZDZiZTNhYzZjNGY2MmE1ODU3YmQ5YTJlN2FmMjZAYXV0aC5sb2NhbCJ9XSwiaWF0IjoxNzM4Njg1MTMyLCJleHAiOjE3Mzg2ODU0MzJ9.WWzTvnR4vE6ka_6VR0Y91otwZapRL8fdU58RfGP3bIE"} Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:05:32.059579515Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:10:16.466839268Z [2025-02-04T16:10:16.465] [ERROR] [localhost] [2ce7a95e72b0657022ec] [me@domain.dlt] nodeJS - postData error: url = https://seafile.domain.dlt/onlyoffice/editor-callback/;data = {"key":"2ce7a95e72b0657022ec","status":1,"users":["me@domain.dlt"],"actions":[{"type":1,"userid":"me@domain.dlt"}],"token":"REDACTEDlmZXMuZGUiXSwiYWN0aW9ucyI6W3sidHlwZSI6MSwidXNlcmlkIjoibW91dGFzZW1AYWwta2huYWlmZXMuZGUifV0sImlhdCI6MTczODY4NTQxNiwiZXhwIjoxNzM4Njg1NzE2fQ.pgHxMxZcgppWLAzMZFByQ2EaWgeuLFPzo0e0-pDlap4"} Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:10:16.466899237Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:10:16.487197369Z 
2025-02-04T16:10:16.487250992Z ==> /var/log/onlyoffice/documentserver/converter/out.log <==
2025-02-04T16:10:16.487295661Z [2025-02-04T16:10:16.485] [ERROR] [localhost] [2ce7a95e72b0657022ec] [me@domain.dlt] nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/1f74ce80-6088-480b-a755-3f1eecf4750b/test.xlsx;attempt=1;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:10:16.487307504Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:10:17.495174865Z [2025-02-04T16:10:17.493] [ERROR] [localhost] [2ce7a95e72b0657022ec] [me@domain.dlt] nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/1f74ce80-6088-480b-a755-3f1eecf4750b/test.xlsx;attempt=2;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:10:17.495221471Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2025-02-04T16:10:18.500578499Z [2025-02-04T16:10:18.498] [ERROR] [localhost] [2ce7a95e72b0657022ec] [me@domain.dlt] nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/1f74ce80-6088-480b-a755-3f1eecf4750b/test.xlsx;attempt=3;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443
2025-02-04T16:10:18.500621533Z     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
@igwyd
Copy link
Member

igwyd commented Feb 24, 2025

Judging by the error, you are have a issues with your network DNS setting or something related to it. Error: connect ECONNREFUSED means connection rejected.
nodeJS - error downloadFile:url=https://seafile.domain.dlt/seafhttp/files/1f74ce80-6088-480b-a755-3f1eecf4750b/test.xlsx;attempt=3;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 172.19.0.18:443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants