Error while downloading the document file to be converted
See original GitHub issueAfter 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.
/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:
Issue Analytics
- State:
- Created 5 years ago
- Comments:40 (7 by maintainers)
Top GitHub Comments
@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)!
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/
@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":
fromtrue
tofalse
in /etc/onlyoffice/documentserver/default.json. After that restart all the services of the Document Server.