【问题标题】:nextcloud onlyoffice integration Document Server [GetConvertedUri on check error, Error while downloading the document file to be converted]nextcloud onlyoffice 集成文档服务器 [GetConvertedUri on check error, Error while download the document file to be convert]
【发布时间】:2019-12-06 19:05:04
【问题描述】:

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

  • 无需 HTPPS 也能正常工作
  • 现在在 nextcloud 日志中通过 HTTPS 将 Document Server 集成到 NextCloud 时出现以下错误:

app "onlyoffice" 消息 "GetConvertedUri on check error: An error 在文档服务中发生:下载文档时出错 要转换的文件。”与

app“onlyoffice”消息“下载空无jwt”

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

只有office-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"

感谢您的帮助

【问题讨论】:

    标签: nextcloud onlyoffice


    【解决方案1】:

    文档服务器 v5.2

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

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

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

    supervisorctl restart all
    

    【讨论】:

      【解决方案2】:

      感谢ibnpetr,是真的,你说的,config.php不需要额外ssl的任何配置

      现在这个工作吧!

      问题是颁发证书的中间组织并没有像 chorme 或 mozilla 一样在操作系统中自动识别并验证它,在这种情况下,您需要将实体的证书输入到其列表中才能验证它如果给出了如果没有,我们用 wget 命令检查 https:// 如果有错误,你必须按照我之前所说的手动进行。

      谢谢

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-11-20
        • 2020-09-06
        • 1970-01-01
        • 2020-10-19
        • 2022-12-02
        • 2012-02-03
        • 2013-09-11
        • 1970-01-01
        相关资源
        最近更新 更多