Solution to Meteor deploy conflict with bcrypt

Balogh Akos
1 min readJul 8, 2016

Some of my colleagues and me too experienced this error in the Upstart log:

Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)

...

First this is caused because bcrypt module is platform dependant (as fibers), so you need to reinstall the package after decompressing the bundle in your server.

cd /home/$YOUR_APP/bundle/programs/server/npm installnpm rebuildcd npm/node_modules/meteor/npm-bcryptnpm install bcrypt

That solves the problem.

Update 1:

Forgot to mention to specify the architecture, that helps too:

meteor build . --architecture os.linux.x86_64

--

--

Balogh Akos

Front-end Developer • AngularJS Fan • Designer • Startupper