question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while downloading the document file to be converted

See original GitHub issue

After an upgrade to OnlyOffice 5.1.3 (deb), I’m now facing following error : “error while downloading the document file to be converted” on Admin page.

image

/var/log/onlyoffice/documentserver/converter/out.log says :

[2018-04-28 16:08:42.109] [ERROR] nodeJS - error downloadFile:url=https://docs.example.net:444/apps/onlyoffice/empty?doc=RlVNUzBUcHJQUG9CRnRFaG94TDVHeFZ2bzVqSWVrVmREZWRWc2ZyWXdmdz0/eyJhY3Rpb24iOiJlbXB0eSJ9;attempt=3;code:DEPTH_ZERO_SELF_SIGNED_CERT;connect:undefined;(id=conv_check_1803620806_docx) Error: self signed certificate at Error (native) at TLSSocket.<anonymous> (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)

I’m using a self signed certificate and I have to.

Any ideas ?

I’ve also added in nextcloud/config/config.php

'onlyoffice' =>
array (
'verify_peer_off' => TRUE,
)

This settings above was enough to enable my self signed certificate on previous version.

I can access document server directly via HTTPS but not through nextcloud: image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:40 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
PhilippSchoenbaechlercommented, Sep 24, 2020

@biva Thanks for your tip 👍

I have found the reason in my case: The update from Documentserver 5.4 to 5.6 have overwrite the local.json-File (/etc/onlyoffice/documentserver)! Solution_Onlyoffice

I have set the values to “true” and also replaced the value “secret” with the Secret-Key that I use in the app on Nextcloud. After this, restart the Documentserver und nginx with this command: supervisorctl restart all systemctl restart nginx

And tada! Now, OnlyOffice runs correctly again.

I have installed my doxumentserver on a Debian 10 VM according to these instructions: https://www.techlear.com/2020/05/01/how-to-install-onlyoffice-document-server-with-nginx-on-debian-10/

6reactions
alexanderonlyofficecommented, May 11, 2018

@johaahn, we have found the reason. When you use self-signed certificates they should be added to ca-certificate bundle of the OS of both servers (the one you use on Nextcloud should be added to the server with ONLYOFFICE Document Server and vice versa). The problem is that the certificate of Nextcloud should be also added to nodejs ca-certificate bundle, so the Document Server can verify it. But it is impossible for nodejs version 6, which is required for the Document Server at the moment.

We are working on the possibility to install Document Server with the later versions of nodejs, where it is possible to add self-signed certificates.

As a temporary solution you can disable verification of the certs by the Document Server. It should help. Please change the value of the parameter "rejectUnauthorized": from true to false in /etc/onlyoffice/documentserver/default.json. After that restart all the services of the Document Server.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while downloading the document file to be converted
Hi Devs, I try to integrate Onlyoffice in my nextcloud Installation. Unfortunatly I cannot use a letsencrypt certificate and so I installed a ......
Read more >
Error while downloading the document file to be converted. ...
Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 7.0.1.37) #601....
Read more >
Onlyoffice: Error while downloading the document file to be ...
Hello, I'm trying to connect Owncloud to my Onlyoffice Docs, but i get: Error while downloading the document file to be converted.
Read more >
Onlyoffice integrate into nextcloud. Error while ...
When I enter the serverip in Nextcloud, I get the following error: Error while downloading the document file to be converted.
Read more >
Unable to Use OnlyOffice with Nextcloud - Connectors
Error Message: Error when trying to connect (Error occurred in the document ... Error while downloading the document file to be converted.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found