Onlyoffice Error while downloading the document file to be converted

我在测试环境搭建了一套 nextcloud+onlyoffice
之前一直都是运行成功的,但在没做任何改动的情况下,昨天突然无法连接onlyoffice了
在通过 nextcloud 的插件连接 onlyoffice服务端时,一直提示 :onlyoffice Error while downloading the document file to be converted

我的测试环境如下:
ubuntu 24.00
oo:8.1.31
nc:29.01

经过查看日志,发现一个很重要的错误:

Blockquote
[2024-05-31T00:52:17.339] [ERROR] [localhost] [conv_check_8595242_docx] [userId] nodeJS - error downloadFile:url=http://beta.nextcloud.ebf.cc/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI;attempt=1;code:null;connect:null Error: Error response: statusCode:403; headers:{“server”:“nginx”,“date”:“Fri, 31 May 2024 00:52:15 GMT”,“content-type”:“application/json; charset=utf-8”,“content-length”:“27”,“connection”:“keep-alive”,“set-cookie”:[“oc_sessionPassphrase=qZdOJpdNWPPijqNb9AsnvOA5DrzLyqrGNU2nvJiBirKDk0suby%2FmnyzsDNYIslv95X6KRT6%2BF1DAz%2FR0IAU49To7cwkTJBl%2BwzIdOouTEs5%2BiVDC6T7KWc8ATTJC2ENQ; 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”,“ocgrow55vfu0=jh7vsj19f8sdk9d81a7mp7vf25; path=/; HttpOnly; SameSite=Lax”],“expires”:“Thu, 19 Nov 1981 08:52:00 GMT”,“pragma”:“no-cache”,“x-request-id”:“TftxONUyONM4IaST0Gpv”,“cache-control”:“no-cache, no-store, must-revalidate”,“content-security-policy”:“default-src ‘none’;base-uri ‘none’;manifest-src ‘self’;frame-ancestors ‘none’”,“feature-policy”:“autoplay ‘none’;camera ‘none’;fullscreen ‘none’;geolocation ‘none’;microphone ‘none’;payment ‘none’”,“x-robots-tag”:“noindex, nofollow, noindex, nofollow”,“referrer-policy”:“no-referrer”,“x-content-type-options”:“nosniff”,“x-frame-options”:“SAMEORIGIN”,“x-permitted-cross-domain-policies”:“none”,“x-xss-protection”:“1; mode=block”};
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at Socket.socketOnData (node:_http_client:494:22)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

即使如此,我并没有想到如何处理这个问题。麻烦各位看一下是我该怎么解决这个问题

您好,
您使用的 Onlyoffice Connector 是什么版本?

当前提供的标头值是什么?请尝试提供以下值 ( Linux - /etc/onlyoffice/documentserver/local.json)

"outbox": {
"header": "AuthorizationJwt"

修改之后执行以下命令:systemctl restart ds-*
在Onlyoffice连接器 (Connector) 设置中也记得提供一样的header值。
确保 Nextcloud 的机器和 Docs 的机器上的时间设置相同.

如果做这些以后问题还在,请提供Document Server全日志文件:var/log/onlyoffice/documentserver

抱歉,最近有点忙,回复晚了

     "inbox": {
          "header": "Authorization"
        },
        "outbox": {
          "header": "Authorization"
        }

这是我现在的配置

以下是完整的 local.json

{
  "services": {
    "CoAuthoring": {
      "sql": {
        "type": "postgres",
        "dbHost": "localhost",
        "dbPort": "5432",
        "dbName": "onlyoffice",
        "dbUser": "onlyoffice",
        "dbPass": "onlyoffice"
      },
      "token": {
        "enable": {
          "request": {
            "inbox": true,
            "outbox": true
          },
          "browser": true
        },
        "inbox": {
          "header": "AuthorizationJwt"
        },
        "outbox": {
          "header": "AuthorizationJwt"
        }
      },
      "secret": {
        "inbox": {
          "string": "CaCqexmCYSEoRsRv4a6kcMgNSnwiqlU3"
        },
        "outbox": {
          "string": "CaCqexmCYSEoRsRv4a6kcMgNSnwiqlU3"
        },
        "session": {
          "string": "CaCqexmCYSEoRsRv4a6kcMgNSnwiqlU3"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  },
  "storage": {
    "fs": {
      "secretString": "dNMiZYg6lk55rQXjUfkM"
    }
  }
}

以下是日志信息,由于无法上传文件,我直接贴上代码


docservice

[2024-05-31T00:34:28.055] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2024-05-31T00:34:28.062] [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 v22.2.0 Documentation
[2024-05-31T00:34:28.366] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31
[2024-05-31T01:07:19.319] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2024-05-31T01:07:19.323] [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 v22.2.0 Documentation
[2024-05-31T01:07:19.540] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31
[2024-05-31T01:07:27.162] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2024-05-31T01:07:27.172] [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 v22.2.0 Documentation
[2024-05-31T01:07:27.397] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31
[2024-05-31T01:27:36.793] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2024-05-31T01:27:36.796] [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 v22.2.0 Documentation
[2024-05-31T01:27:37.011] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31
[2024-05-31T01:29:19.767] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2024-05-31T01:29:19.774] [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 v22.2.0 Documentation
[2024-05-31T01:29:20.008] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31
[2024-05-31T01:35:42.234] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2024-05-31T01:35:42.240] [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 v22.2.0 Documentation
[2024-05-31T01:35:42.466] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.0.1. Build: 31


metrics

31 May 00:34:25 - [59526] reading config file: ./config/config.js
31 May 00:34:25 - server is up INFO
Flushing stats at Fri May 31 2024 00:44:25 GMT+0000 (Coordinated Universal Time)
{
counters: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
timers: {},
gauges: {},
timer_data: {},
counter_rates: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
sets: {},
pctThreshold: [ 90 ]
}
Flushing stats at Fri May 31 2024 00:54:25 GMT+0000 (Coordinated Universal Time)
{
counters: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
timers: {},
gauges: { ‘statsd.timestamp_lag’: 0 },
timer_data: {},
counter_rates: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
sets: {},
pctThreshold: [ 90 ]
}
Flushing stats at Fri May 31 2024 01:04:25 GMT+0000 (Coordinated Universal Time)
{
counters: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
timers: {},
gauges: { ‘statsd.timestamp_lag’: 0 },
timer_data: {},
counter_rates: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
sets: {},
pctThreshold: [ 90 ]
}
Flushing stats at Fri May 31 2024 01:14:25 GMT+0000 (Coordinated Universal Time)
{
counters: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
timers: {},
gauges: { ‘statsd.timestamp_lag’: 0 },
timer_data: {},
counter_rates: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
sets: {},
pctThreshold: [ 90 ]
}
Flushing stats at Fri May 31 2024 01:24:25 GMT+0000 (Coordinated Universal Time)
{
counters: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
timers: {},
gauges: { ‘statsd.timestamp_lag’: 0 },
timer_data: {},
counter_rates: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
sets: {},
pctThreshold: [ 90 ]
}
31 May 01:27:35 - [66428] reading config file: ./config/config.js
31 May 01:27:35 - server is up INFO
31 May 01:29:18 - [66697] reading config file: ./config/config.js
31 May 01:29:18 - server is up INFO
31 May 01:35:41 - [67517] reading config file: ./config/config.js
31 May 01:35:41 - server is up INFO

converter 日志

[2024-05-31T00:34:26.663] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined
[2024-05-31T00:34:26.668] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2024-05-31T00:34:26.691] [WARN] [localhost] [docId] [userId] nodeJS - worker 59653 started.
[2024-05-31T00:34:26.698] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 2; availableParallelism: undefined
[2024-05-31T00:34:26.698] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2024-05-31T00:52:17.339] [ERROR] [localhost] [conv_check_8595242_docx] [userId] nodeJS - error downloadFile:url=http://beta.nextcloud.ebf.cc/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI;attempt=1;code:null;connect:null Error: Error response: statusCode:403; headers:{"server":"nginx","date":"Fri, 31 May 2024 00:52:15 GMT","content-type":"application/json; charset=utf-8","content-length":"27","connection":"keep-alive","set-cookie":["oc_sessionPassphrase=qZdOJpdNWPPijqNb9AsnvOA5DrzLyqrGNU2nvJiBirKDk0suby%2FmnyzsDNYIslv95X6KRT6%2BF1DAz%2FR0IAU49To7cwkTJBl%2BwzIdOouTEs5%2BiVDC6T7KWc8ATTJC2ENQ; 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","ocgrow55vfu0=jh7vsj19f8sdk9d81a7mp7vf25; path=/; HttpOnly; SameSite=Lax"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","pragma":"no-cache","x-request-id":"TftxONUyONM4IaST0Gpv","cache-control":"no-cache, no-store, must-revalidate","content-security-policy":"default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'","feature-policy":"autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'","x-robots-tag":"noindex, nofollow, noindex, nofollow","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"1; mode=block"};
    at Request.fResponse (/snapshot/server/Common/sources/utils.js)
    at Request.emit (node:events:527:28)
    at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
    at ClientRequest.emit (node:events:527:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:494:22)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

我修改了 “AuthorizationJwt”配置,重启后依然无法连接

这个错误我不清楚是什么,不知道会不会对系统运行产生影响
[2024-05-31T00:34:28.062] [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 v22.2.0 Documentation

您好,
请提供您Nextcloud中的全JWT设置 (截图发给我们)

您要的是这个吗?

您好,
请再一次在Connector保存设置重现错误并提供Nextcloud日志:(Administration Settings → Logging)

您好
以下是我在点击【连接onlyoffice】之后,nc产生的日志

{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"Select demo: false","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"setDocumentServerUrl: http://10.211.55.5/","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"setVerifyPeerOff true","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"setDocumentServerInternalUrl: http://10.211.55.5/","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"Set secret key","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"Set header key AuthorizationJwt","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":1,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"setStorageUrl: http://beta.nextcloud.ebf.cc/","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":0,"time":"2024-06-06T00:48:29+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"commandRequest on check: {\"error\":0,\"version\":\"8.0.1.31\"}","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"eQL7UsRs5xvATXiDXITZ","level":0,"time":"2024-06-06T00:48:30+00:00","remoteAddr":"10.211.55.5","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI","message":"Download empty","userAgent":"Node.js/6.13","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"eQL7UsRs5xvATXiDXITZ","level":3,"time":"2024-06-06T00:48:30+00:00","remoteAddr":"10.211.55.5","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI","message":"Download empty with invalid jwt","userAgent":"Node.js/6.13","version":"29.0.1.1","exception":{"Exception":"Firebase\\JWT\\ExpiredException","Message":"Expired token","Code":0,"Trace":[{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/Controller/CallbackController.php","line":379,"function":"decode","class":"Firebase\\JWT\\JWT","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"emptyfile","class":"OCA\\Onlyoffice\\Controller\\CallbackController","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/3rdparty/jwt/JWT.php","Line":163,"message":"Download empty with invalid jwt","CustomMessage":"Download empty with invalid jwt"}}
{"reqId":"EAjdxSmZbBQWiVJ7DFeM","level":0,"time":"2024-06-06T00:48:31+00:00","remoteAddr":"10.211.55.5","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI","message":"Download empty","userAgent":"Node.js/6.13","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"EAjdxSmZbBQWiVJ7DFeM","level":3,"time":"2024-06-06T00:48:31+00:00","remoteAddr":"10.211.55.5","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI","message":"Download empty with invalid jwt","userAgent":"Node.js/6.13","version":"29.0.1.1","exception":{"Exception":"Firebase\\JWT\\ExpiredException","Message":"Expired token","Code":0,"Trace":[{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/Controller/CallbackController.php","line":379,"function":"decode","class":"Firebase\\JWT\\JWT","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"emptyfile","class":"OCA\\Onlyoffice\\Controller\\CallbackController","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/3rdparty/jwt/JWT.php","Line":163,"message":"Download empty with invalid jwt","CustomMessage":"Download empty with invalid jwt"}}
{"reqId":"WruTK383XV6Ji7IGlfeY","level":0,"time":"2024-06-06T00:48:32+00:00","remoteAddr":"10.211.55.5","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI","message":"Download empty","userAgent":"Node.js/6.13","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"WruTK383XV6Ji7IGlfeY","level":3,"time":"2024-06-06T00:48:32+00:00","remoteAddr":"10.211.55.5","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI","message":"Download empty with invalid jwt","userAgent":"Node.js/6.13","version":"29.0.1.1","exception":{"Exception":"Firebase\\JWT\\ExpiredException","Message":"Expired token","Code":0,"Trace":[{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/Controller/CallbackController.php","line":379,"function":"decode","class":"Firebase\\JWT\\JWT","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"emptyfile","class":"OCA\\Onlyoffice\\Controller\\CallbackController","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/3rdparty/jwt/JWT.php","Line":163,"message":"Download empty with invalid jwt","CustomMessage":"Download empty with invalid jwt"}}
{"reqId":"wiWa4TC5QCJwJEOWTD7S","level":3,"time":"2024-06-06T00:48:33+00:00","remoteAddr":"127.0.0.1","user":"adam","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"getConvertedUri on check error","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","exception":{"Exception":"Exception","Message":"\u6587\u6863\u670d\u52a1\u5185\u90e8\u53d1\u751f\u5f02\u5e38: Error while downloading the document file to be converted.","Code":0,"Trace":[{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/DocumentService.php","line":103,"function":"processConvServResponceError","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/DocumentService.php","line":444,"function":"getConvertedUri","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/Controller/SettingsController.php","line":192,"function":"checkDocServiceUrl","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"saveAddress","class":"OCA\\Onlyoffice\\Controller\\SettingsController","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/Volumes/data/web/beta.nextcloud.ebf.cc/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/Volumes/data/web/beta.nextcloud.ebf.cc/extra-apps/onlyoffice/lib/DocumentService.php","Line":249,"message":"getConvertedUri on check error","CustomMessage":"getConvertedUri on check error"}}

请还提供Connector保存设置后的错误截图。
还有请试试关闭 JWT, 看看问题重现不. 编辑local.json配置文件,结果该如下:

"token": {
        "enable": {
          "request": {
            "inbox": false,
            "outbox": false
          },
          "browser": false

修改配置文件之后执行以下命令:systemctl restart ds-*

您好
按照您说的,我先关闭了 JWT,然后重启了 ds的服务
之后再次通过nc 连接oo,但是依然无法连接
以下截图是 /var/log/onlyoffice/documentserver/out.log的日志,麻烦再帮我看一下,谢谢


我看到 /var/log/onlyoffice/documentserver/out.log的日志,有这样的一个错误提示

[2024-06-06T07:08:54.866] [ERROR] [localhost] [conv_check_769065300_docx] [userId] nodeJS - error downloadFile:url=http://beta.nextcloud.ebf.cc/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI;attempt=1;code:null;connect:null Error: DNS lookup 10.211.55.2(family:4, host:beta.nextcloud.ebf.cc) is not allowed. Because, It is private IP address.

于是给这个
http://beta.nextcloud.ebf.cc/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1FnhkXg2uSFb1jpsLFVC9O9Hj2Mm-hhv3Mzh1eW6DfI;attempt=1;code:null;connect:null

url 复制到浏览器里边访问以下,结果出现了错误

您好,
请把default.json (etc/onlyoffice/documentserver/default.json) 文件打开并编辑此参数: "request-filtering-agent", 设置 "allowPrivateIPAddress""true". 然后重启ONLYOFFICE所有的服务通过运行systemctl restart ds-*命令。如果做好以后问题还在,请提供新日志以文件格式

我重新安装了一下oo,但还是有问题
demo 测试🔗 报错

oc 与oo连接 报错
o-2

这个是nc的日志

converter 日志

docservice 日志

metrics 日志

您好,
根据提供的日志,问题与 task_result 表不存在有关。您根据哪个指南安装了文档服务器?请确保您根据指南正确配置数据库