-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symbol lookup error undefined symbol: _ZN4node19GetCurrentEventLoopEPN2v87IsolateE #656
Comments
+1 on this. To replicate this: Run any file on node with a bcrypt function (like bcrypt.hash()) Getting this: I was able to fix this by downgrading bcrypt to 2.0.0 (but that has a vulnerability so I cant use that on production). Edit: Running Ubuntu 16.04 (Thanks @agathver) |
Please mention the OS |
I'm also seeing this issue on macOS 10.14. My terminal is outputting:
|
Same error with Heroku, but not on local.
|
I'm also seeing this on Ubuntu 18.04 |
Rolling back to 3.0.0 from 3.0.1 fixed it for me. |
@kirkins thx |
same issue - rolling back to 3.0.0 as @kirkins said fixes the issue. |
It's unfortunate that the NodeJS folks broke API in between releases. There is nothing much we can do in this regard. |
Upgrading my Node engine from 8.9.0 to 8.12.0 solved the problem. |
apporx > 8 && < 8.12 has issues with bcrypt see: kelektiv/node.bcrypt.js#656
I'm concerned this issue is closed while the problem persists. It may be "NodeJS's fault" however the end result is an unusable build and a breaking change between 3.0.0 and 3.0.1 for certain users. So, I understand it is w/r/t prebuilt bcrypt, which is built against a specific N-API and something in the API changed (somewhere between 8.9 and 8.12) without node revving the API version (v57.) I can reproduce with bcrypt 3.0.2 and nodejs 8.9.4, on both MacOS and Linux. I actually wonder if rolling back to v3.0.0 works for folks because there is no prebuilt package for Adding I could suggest, un-publishing the |
I was having the same issue with my production build through Heroku. Updating my node and npm engines on my package.json file to be the latest versions fixed the problem. Running bcrypt 3.0.4. |
What versions did you bump them up to? @bpehlert |
I just made sure that I had the newest versions of Node and NPM by
reinstalling them through the terminal. Here are the versions I have in my
package.json file:
"engines": {
"node": "10.15.3",
"npm": "6.4.1"
},
…On Sat, Apr 6, 2019 at 12:33 PM Fortune Ekeruo ***@***.***> wrote:
I was having the same issue with my production build through Heroku.
Updating my node and npm engines on my package.json file to be the latest
versions fixed the problem. Running bcrypt 3.0.4.
What versions did you bump them up to? @bpehlert
<https://github.com/bpehlert>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#656 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aj25HlUCbQ79h4YUaItvM_FwPc3nISmnks5veOh4gaJpZM4W_GRM>
.
|
You can use bcryptjs |
I think the docker container abernix/meteord:node-8.4.0-base may be using a version of node that causes this issue with bcrypt upon deployment. I think when we are able to use a version of node that is 12.14.0 or above, we can then start using bcrypt 3.0.7, without the need to downgrade the package version to 3.0.0 when you want to deploy. This would be ideal. |
My production app has crashed because of this. This is especially sneaky that until one user signed in everything worked so I did not see that the app had a bug despite testing after deployment and during my sleep the entire app crashed causing very big troubles to my business. |
The issue still persists with |
We were using |
I installed [email protected] version for my project. It worked for a while, but now when I start with node command, the program exit with this error:
node app.js
node: symbol lookup error: /var/www/myproject/node_modules/bcrypt/lib/binding/bcrypt_lib.node: undefined symbol: _ZN4node19GetCurrentEventLoopEPN2v87IsolateE
This is the case if I use with nodemon:
nodemon app.js
[nodemon] 1.15.0 [nodemon] to restart at any time, enter
rs[nodemon] watching: *.* [nodemon] starting
node app.js/usr/local/bin/node: symbol lookup error: /var/www/myproject/node_modules/bcrypt/lib/binding/bcrypt_lib.node: undefined symbol: _ZN4node19GetCurrentEventLoopEPN2v87IsolateE [nodemon] failed to start process, "node" exec not found [nodemon] Error
If I use
nodejs app.js
Its works
My node version: v8.4.0
My nodejs version v8.11.3
The text was updated successfully, but these errors were encountered: