Skip to content
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

Hotfix: bcrypt symbol lookup error #11

Merged
merged 2 commits into from
Dec 18, 2019

Conversation

cabeese
Copy link
Owner

@cabeese cabeese commented Dec 18, 2019

Updating to bcrypt@3 caused the app to crash with the following error:

.meteor/heroku_build/bin/node: symbol lookup error: /app/.meteor/heroku_build/app/programs/server/npm/node_modules/bcrypt/lib/binding/bcrypt_lib.node: undefined symbol: ...

See a discussion of the problem here: kelektiv/node.bcrypt.js#656

An apparent fix is to update to node 8.12 so that the N-API bindings are compatible between bcrypt and node. However, this does not seem to work in all cases when deploying to Heroku.

Because we are not taking advantage of any new bcrypt features and because no security updates have apparently been made to the library, I am simply rolling back the bcrypt version to what we had before the recent /tickets API update.

@cabeese
Copy link
Owner Author

cabeese commented Dec 18, 2019

Using admin privileges to force merge this PR since it is a hotfix

@cabeese cabeese merged commit 0b6e9a4 into master Dec 18, 2019
@cabeese cabeese deleted the hotfix/bcrypt-symbol-lookup-error branch December 19, 2019 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant