OnlyOffice集成打开文档提示这份文件无法保存

  • Starting PostgreSQL 14 database server
    …done.
  • Starting RabbitMQ Messaging Server rabbitmq-server
    …done.
    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 <==
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-02-23T16:19:57.915] [ERROR] [localhost] [xxx] [xxx@gmail.com] nodeJS - error downloadFile:url=http://seafile.example.com/seafhttp/files/xxx/xxx.docx;attempt=2;code:ENOTFOUND;connect:null Error: getaddrinfo ENOTFOUND seafile.example.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-02-23T16:19:58.928] [ERROR] [localhost] [xxx] [xxx@gmail.com] nodeJS - error downloadFile:url=http://seafile.example.com/seafhttp/files/xxx/xxx.docx;attempt=3;code:ENOTFOUND;connect:null Error: getaddrinfo ENOTFOUND seafile.example.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-02-23T16:20:19.213] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined
[2025-02-23T16:20:19.215] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-02-23T16:20:19.225] [WARN] [localhost] [docId] [userId] nodeJS - worker 848 started.
[2025-02-23T16:20:19.229] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined
[2025-02-23T16:20:19.230] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

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

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2025-02-23T16:19:56.047] [ERROR] [localhost] [xxx] [xxx@gmail.com13] nodeJS - postData error: url = http://seafile.example.com/onlyoffice/editor-callback/;data = {“key”:“xxx”,“status”:4,“actions”:[{“type":0,“userid”:"xxx@gmail.com”}],“token”:“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJlNjllZWUwNzkxNDg0MmRiNzEwMyIsInN0YXR1cyI6NCwiYWN0aW9ucyI6W3sidHlwZSI6MCwidXNlcmlkIjoicGljZHVwZUBnbWFpbC5jb20ifV0sImlhdCI6MTc0MDMyNzU5NiwiZXhwIjoxNzQwMzI3ODk2fQ.mszlKJ08sdpYv-MyjXAxMP8SjnF16LGwWZD0_xBRI7Q”} Error: getaddrinfo ENOTFOUND seafile.example.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-02-23T16:19:56.853] [ERROR] [localhost] [xxx] [xxx@gmail.com] nodeJS - postData error: url = http://seafile.example.com/onlyoffice/editor-callback/;data = {“key”:“xxx”,“status”:1,“users”:[“xxx@gmail.com”],“actions”:[{“type":1,“userid”:"xxx@gmail.com”}],“token”:“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJlNjllZWUwNzkxNDg0MmRiNzEwMyIsInN0YXR1cyI6MSwidXNlcnMiOlsicGljZHVwZUBnbWFpbC5jb20iXSwiYWN0aW9ucyI6W3sidHlwZSI6MSwidXNlcmlkIjoicGljZHVwZUBnbWFpbC5jb20ifV0sImlhdCI6MTc0MDMyNzU5NiwiZXhwIjoxNzQwMzI3ODk2fQ.JL1YUpOIHnZhIcBLZOAdmXoqjJlxMrxVLwWAoNEMkJk”} Error: getaddrinfo ENOTFOUND seafile.example.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-02-23T16:20:18.377] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2025-02-23T16:20:18.380] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. File system | Node.js v23.8.0 Documentation
[2025-02-23T16:20:18.689] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.1.3. Build: 4
[2025-02-23T16:20:19.408] [WARN] [localhost] [xxx] [xxx@gmail.com] nodeJS - error description: errorId = Other error
[2025-02-23T16:20:19.513] [ERROR] [localhost] [xxx] [xxx@gmail.com14] nodeJS - postData error: url = http://seafile.example.com/onlyoffice/editor-callback/;data = {“key”:“xxx”,“status”:4,“actions”:[{“type":0,“userid”:"xxx@gmail.com”}],“token”:“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJlNjllZWUwNzkxNDg0MmRiNzEwMyIsInN0YXR1cyI6NCwiYWN0aW9ucyI6W3sidHlwZSI6MCwidXNlcmlkIjoicGljZHVwZUBnbWFpbC5jb20ifV0sImlhdCI6MTc0MDMyNzYxOSwiZXhwIjoxNzQwMzI3OTE5fQ.-zU6Us3fjmS32qUkZ8myc-yzdRkAwp0t_k3m4QubqBw”} Error: getaddrinfo ENOTFOUND seafile.example.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2025/02/23 13:39:47 [error] 722#722: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2H9U HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2H9U”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 13:39:47 [error] 722#722: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2H9U HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2H9U”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 13:39:48 [error] 722#722: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2HMt HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2HMt”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 13:39:48 [error] 722#722: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2HMt HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2HMt”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 13:39:50 [error] 722#722: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2Hlo HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2Hlo”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 13:39:50 [error] 722#722: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2Hlo HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKp2Hlo”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 16:18:37 [error] 706#706: *2 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=websocket HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=websocket”, host: “seafile.example.com:6233
2025/02/23 16:18:37 [error] 706#706: *2 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=websocket HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=websocket”, host: “seafile.example.com:6233
2025/02/23 16:18:38 [error] 706#706: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKpcdw2 HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKpcdw2”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx
2025/02/23 16:18:38 [error] 706#706: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 172.19.0.4, server: , request: “GET /8.1.3-4/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKpcdw2 HTTP/1.1”, upstream: “http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKpcdw2”, host: “seafile.example.com:6233”, referrer: “http://seafile.example.com:6233/8.1.3-4/web-apps/apps/documenteditor/main/index.html?_dc=8.1.3-4&lang=zh-cn&customer=ONLYOFFICE&type=desktop&frameEditorId=placeholder&isForm=false&parentOrigin=http://seafile.example.com&fileType=docx

https://cloud.seafile.com/wiki/publish/seafile-manual/7Y75/,参考下这个文档,seahub_settings.py中的ONLYOFFICE_APIJS_URL需要修改成您自己的地址,而不是默认的seafile.example.com

已经改了,ONLYOFFICE_APIJS_URL能正常访问,我只是对日志的关键信息进行了处理

这个表示连接上游的服务器不成功,要解决这个问题。“http://127.0.0.1:8000/doc/xxx/c/?shardkey=xxx&EIO=4&transport=polling&t=PKpcdw2”这个连接无法正常访问,你试试在容器里能不能访问

找到问题了,seafile-net默认没有开启ipv6,但是我的域名是解析到ipv6的,所以onlyoffice无法打开文档,换成ipv4就好了。但我没有公网ipv4啊,怎么配置ipv6 :joy:

ipv4的问题解决了,现在打开文档过几秒就白屏


:cry: