Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

I've been running a NodeJS server for a website using the MEAN stack for a website, and it's been running for a few months. When I started to work on it again this morning, I started up the website with:

nodemon server/app.js 

The express server starts up just fine, but as soon as I connect to it with my browser, I get the following error:

node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference [nodemon] failed to start process, "node" exec not found`

And when I do node server/app.js, I get the same node: relocation error..., but dont' get the ...failed to start process...

I don't think it is with any changes I made in the past few days, because I went to another server where this was running on (where the code was a few weeks old), and I restarted the nodejs process, and then it broke when I accessed the site.

npm version: 3.10.10, node version: 6.11.3, CentOS Linux release 7.3.1611

like image 589
Mike K. Avatar asked Sep 28 '17 15:09

Mike K.


1 Answers

I had same issue with a ursa module that on the same environment.

Npm rebuild has the following error when my openssl version is 1.0.1e

node-gyp: relocation error: node-gyp: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

I updated openssl with yum update openssl to 1.0.2k, then npm rebuild no longer has that error.

like image 191
Jerome C. Avatar answered Sep 28 '22 11:09

Jerome C.