Error while loading the document file to be converted...

Issues during installation, usage and configuring
Post Reply
fgarpe
Posts: 4
Joined: Wed Oct 19, 2016 6:09 am

Error while loading the document file to be converted...

Post by fgarpe » Tue Jan 08, 2019 10:13 pm

Hi,
This is my scenario:
onlyoffice.png
onlyoffice.png (17.15 KiB) Viewed 59 times
Software versions:
  • OnlyOffice Server
    • Document Server 5.1.2 clean install
      OS: Debian Stretch with latest updates
  • OwnCloud Server
    • OwnCloud Comunity Edition 10.0.10 clean install
      OS: Debian Stretch with latest updates
All the comunication between clients, the proxy server, owncloud and document server is encrypted using letsencrypt SSL certificates.

I have a stupid problem integrating OwnCloud and OnlyOffice Document Server using the integration app, if I set the secret key in OwnCloud I see the subject error :(, without the secret key in owncloud and setting the inbox, outbox and browser to false in token.enable.request at local.json file all works fine

My /etc/onlyoffice/documentserver/local.json

Code: Select all

{
  "services": {
    "CoAuthoring": {
      "sql": {
        "dbHost": "localhost",
        "dbName": "onlyoffice",
        "dbUser": "onlyoffice",
        "dbPass": "onlyoffice"
      },
      "redis": {
        "host": "localhost"
      },
      "token": {
        "enable": {
          "request": {
            "inbox": true,
            "outbox": true
          },
          "browser": true 
        },
        "inbox": {
          "header": "Authorization"
        },
        "outbox": {
          "header": "Authorization"
        }
      },
      "secret": {
        "inbox": {
          "string": "MYSECRETPASSWORD"
        },
        "outbox": {
          "string": "MYSECRETPASSWORD"
        },
        "session": {
          "string": "MYSECRETPASSWORD"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  }
}
The default.json file is untouched

When I click on the save button in the OwnCloud Server I see this messages in the /var/log/onlyoffice/documentserver/converter/out.log

Code: Select all

[2019-01-08T22:44:48.055] [ERROR] nodeJS - error downloadFile:url=https://myowncloudserver.domain/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.2-1oi_x4mbFuEGeaRCJwoFvbYQWgglVicjye_M8P_2Y;attempt=3;code:null;connect:null;(id=conv_check_501103595_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)
Please help me, I searched the internet and I saw multiple posts in different pages with the same error but none of the solutions has solved my problem.

Regards

Carl
Posts: 98
Joined: Thu Apr 12, 2018 10:00 am

Re: Error while loading the document file to be converted...

Post by Carl » Wed Jan 09, 2019 9:35 am

Hello,

Please check if servers with Owncloud and Document Server can reach each other:

1. Run the command wget https://documentserver_address from the machine with Owncloud.
2. Run the command wget https://owncloud_address from the machine with Document Server.

Check if there are any errors.

Maxim
Posts: 1782
Joined: Tue Oct 11, 2016 2:34 pm

Re: Error while loading the document file to be converted...

Post by Maxim » Wed Jan 09, 2019 10:56 am

Hello fgarpe!
Have you restarted document server services after editing local.json?

Code: Select all

supervisorctl restart all 
Please restart if you did not.

fgarpe
Posts: 4
Joined: Wed Oct 19, 2016 6:09 am

Re: Error while loading the document file to be converted...

Post by fgarpe » Wed Jan 09, 2019 7:08 pm

Hi,
thank you very much, the problem is solved, I have post the same issue at onlyoffice github repository, the solution was change the header

ONLYOFFICE local.json

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

ownCloud config.php

'onlyoffice' => array (
'jwt_header' => "AuthorizationJwt"
)

https://github.com/ONLYOFFICE/onlyoffic ... issues/241

Again, thank you very much ;)

Post Reply