nextcloud onlyoffice integration Document Server [GetConvertedUri on check error, Error while downloading the document file to convert]

nextcloud onlyoffice integration Document Server [GetConvertedUri on check error, Error while downloading the document file to be converted]

版本:nextcloud v15、onlyoffice-DocumentServer v5.2、connector 2.4 onlyoffice 和服务器在 Centos 7 上运行。

app "onlyoffice" Message "GetConvertedUri on check error: An error occurred in the document service: Error while downloading the document file to be converted." with

app "onlyoffice" Message "Download empty without jwt"

nextcloud 和 onlyoffice-documentServers 由相同的通配符证书配置并且浏览器正确接受它

onlyoffice-DocumentServer 日志:

[2019-07-29T13:26:40.160] [ERROR] nodeJS - error downloadFile:url=https://mydomain/index.php/apps/onlyoffic                                                                                                             e/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.k09JPfgibOWBTZGmYfPU47O8HeUGh6Q_FHuUQYJRGY4                                                                                                   ;attempt=3;code:null;connect:null;(id=conv_check_908902956_docx)
Error: Error response: statusCode:403 ;body:
{"message":"Access denied"}
    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:250:18)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:                                                                                                                        1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

如果您在 http 中没有使用令牌进行身份验证,文档服务器可以正常工作,但是如果我将配置更改为使用令牌,它就无法工作。

我试过以下配置...

config.php Nexcloud 添加行代码:

'onlyoffice' =>
   array (
   'jwt_secret' => 'mysecret',
   'jwt_header' => 'test',
   ),

local.json OnlyOffice-DocumentServer 添加行代码:

"token": {
        "enable": {
          "request": {
            "inbox": true,
            "outbox": true
          },
          "browser": true
        },
        "inbox": {
          "header": "test"
        },
        "outbox": {
          "header": "test"
        }
      },
      "secret": {
        "inbox": {
          "string": "mysecret"
        },
        "outbox": {
          "string": "mysecret"
        },
        "session": {
          "string": "mysecret"

感谢您的帮助

DocumentServer v5.2

我们建议使用最新版本的 DocumentServer (5.3.4.3)

启用 JWT 时请尝试使用 DocumentServer 的默认配置而不更改 header。 您只需要在 NC 管理面板(设置 -> 管理 -> ONLYOFFICE)中指定 DocumentServer 的地址和密码

请不要忘记在编辑 local.json 文件后重新启动 DocumentServer 服务:

supervisorctl restart all

谢谢 ibnpetr,是真的,你说的 config.php 不需要额外的 ssl

的任何配置

现在开始吧!

问题是颁发证书的中间组织不会在操作系统中自动识别它,就好像它是chorme或mozilla一样并验证它,在这种情况下你需要将实体的证书输入到它的列表中才能验证它是否给定如果您没有它,我们会使用 wget 命令检查它 ht​​tps:// 如果有错误,您必须像我之前说的那样手动执行。

谢谢