Try the fastest and simplest way to install ONLYOFFICE

Error: unable to get local issuer certificate

Issues during installation and related to database

Error: unable to get local issuer certificate

Postby Reza.Nazeman » Thu Jun 14, 2018 12:47 pm

When trying to create a new example document, I get a "Download failed" popUp in the frontend.
Taking a look into the error log with
Code: Select all
less /var/log/onlyoffice/documentserver/docservice/out.log

shows:
Code: Select all
[2018-06-14 14:18:11.983] [WARN] nodeJS - Plugins watch exception (https://nodejs.org/docs/latest/api/fs.html#fs_availability).
[2018-06-14 14:18:12.015] [WARN] nodeJS - update cluster with 1 workers
[2018-06-14 14:18:12.046] [WARN] nodeJS - worker 28875 started.
[2018-06-14 14:18:13.297] [WARN] nodeJS - Express server starting...
[2018-06-14 14:18:13.975] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode
[2018-06-14 14:18:30.740] [ERROR] nodeJS - postData error: docId = -1846555779;url = https://iuvm480.in.audi.vwg/example/track?filename=new%20(16).docx&useraddress=10.250.52.52;data = {"key":"-1846555779","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}]}
Error: unable to get local issuer 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:609:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)


Any help how to solve this Error: unable to get local issuer certificate problem?
Reza.Nazeman
 
Posts: 5
Joined: Tue Jun 12, 2018 3:59 pm

Re: Error: unable to get local issuer certificate

Postby Carl » Fri Jun 15, 2018 6:44 am

Hello.

This Download failed error means that Document Server cannot download the document from the storage. unable to get local issuer certificate string in the log file means that the ssl certificate installed on the server with the document storage was signed by an unknown CA-authority. Unfortunately, NodeJS 6.0 which is used by Document Server doesn't allow to add intermediate certificates to its CA-bundle, so please try to disable the certificate verification in Document Server's config (/etc/onlyoffice/documentserver/default.json => "rejectUnauthorized": false). Check if the issue persists.
Carl
 
Posts: 26
Joined: Thu Apr 12, 2018 10:00 am

Re: Error: unable to get local issuer certificate

Postby Reza.Nazeman » Fri Jun 15, 2018 7:41 am

Hello Carl,

thank you very much. Setting "rejectUnauthorized" to false solves the problem. Currently NodeJs v6.14.1 is installed on our server.
Is there a possibility to leave the ssl certificate verification active?
Reza.Nazeman
 
Posts: 5
Joined: Tue Jun 12, 2018 3:59 pm

Re: Error: unable to get local issuer certificate

Postby Carl » Fri Jun 15, 2018 11:49 am

We are currently working on adding support of later NodeJS versions which allow to add intermediate certificates to their CA-bundle. Unfortunately, we can't tell the exact date.

Until then, we'd recommend to leave the rejectUnauthorized parameter's value as false.
Carl
 
Posts: 26
Joined: Thu Apr 12, 2018 10:00 am


Return to Installation issues

Who is online

Users browsing this forum: No registered users and 2 guests