[SOLVED]Build failing on Galaxy hosting - bcrypt

David ODea
Dec 13, 07:18 PST

https://eu-west-1.galaxy.meteor.com/kuyashi

Hi, I can deploy to eu-west-1, however the build keeps failing. I was hoping someone could help ? Here are the latest error from logs:

2016-12-13 15:15:03+00:00> fibers@1.0.15 install /app/bundle/programs/server/node_modules/fibers
v002
2016-12-13 15:15:03+00:00> node build.js || nodejs build.js
v002
2016-12-13 15:15:03+00:00
v002
2016-12-13 15:15:03+00:00`linux-x64-46` exists; testing
v002
2016-12-13 15:15:03+00:00Binary is fine; exiting
v002
2016-12-13 15:15:04+00:00
v002
2016-12-13 15:15:04+00:00> meteor-dev-bundle@0.0.0 install /app/bundle/programs/server
v002
2016-12-13 15:15:04+00:00> node npm-rebuild.js
v002
2016-12-13 15:15:04+00:00
v002
2016-12-13 15:15:05+00:00
v002
2016-12-13 15:15:05+00:00> bcrypt@1.0.1 install /app/bundle/programs/server/npm/node_modules/bcrypt
v002
2016-12-13 15:15:05+00:00> node-pre-gyp install --fallback-to-build
v002
2016-12-13 15:15:05+00:00
v002
2016-12-13 15:15:05+00:00sh: 1: node-pre-gyp: not found
v002
2016-12-13 15:15:05+00:00
v002
2016-12-13 15:15:05+00:00npm ERR! Linux 4.4.0-45-generic
v002
2016-12-13 15:15:05+00:00npm ERR! argv "/node-v4.6.2-linux-x64/bin/node" "/node-v4.6.2-linux-x64/bin/npm" "rebuild" "--update-binary"
v002
2016-12-13 15:15:05+00:00npm ERR! node v4.6.2
v002
2016-12-13 15:15:05+00:00npm ERR! npm v4.0.3
v002
2016-12-13 15:15:05+00:00npm ERR! file sh
v002
2016-12-13 15:15:05+00:00npm ERR! code ELIFECYCLE
v002
2016-12-13 15:15:05+00:00npm ERR! errno ENOENT
v002
2016-12-13 15:15:05+00:00npm ERR! syscall spawn
v002
2016-12-13 15:15:05+00:00npm ERR! bcrypt@1.0.1 install: `node-pre-gyp install --fallback-to-build`
v002
2016-12-13 15:15:05+00:00npm ERR! spawn ENOENT
v002
2016-12-13 15:15:05+00:00npm ERR!
v002
2016-12-13 15:15:05+00:00npm ERR! Failed at the bcrypt@1.0.1 install script 'node-pre-gyp install --fallback-to-build'.
v002
2016-12-13 15:15:05+00:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v002
2016-12-13 15:15:05+00:00npm ERR! If you do, this is most likely a problem with the bcrypt package,
v002
2016-12-13 15:15:05+00:00npm ERR! not with npm itself.
v002
2016-12-13 15:15:05+00:00npm ERR! Tell the author that this fails on your system:
v002
2016-12-13 15:15:05+00:00npm ERR! node-pre-gyp install --fallback-to-build
v002
2016-12-13 15:15:05+00:00npm ERR! You can get information on how to open an issue for this project with:
v002
2016-12-13 15:15:05+00:00npm ERR! npm bugs bcrypt
v002
2016-12-13 15:15:05+00:00npm ERR! Or if that isn't available, you can get their info via:
v002
2016-12-13 15:15:05+00:00npm ERR! npm owner ls bcrypt
v002
2016-12-13 15:15:05+00:00npm ERR! There is likely additional logging output above.
v002
2016-12-13 15:15:05+00:00
v002
2016-12-13 15:15:05+00:00npm ERR! Please include the following file with any support request:
v002
2016-12-13 15:15:05+00:00npm ERR! /app/bundle/programs/server/npm/npm-debug.log
v002
2016-12-13 15:15:05+00:00
v002
2016-12-13 15:15:05+00:00npm WARN meteor-dev-bundle@0.0.0 No description
v002
2016-12-13 15:15:05+00:00npm WARN meteor-dev-bundle@0.0.0 No repository field.
v002
2016-12-13 15:15:05+00:00npm WARN meteor-dev-bundle@0.0.0 No license field.
v002
2016-12-13 15:15:05+00:00npm ERR! Linux 4.4.0-45-generic
v002
2016-12-13 15:15:05+00:00npm ERR! argv "/node-v4.6.2-linux-x64/bin/node" "/node-v4.6.2-linux-x64/bin/npm" "install"
v002
2016-12-13 15:15:05+00:00npm ERR! node v4.6.2
v002
2016-12-13 15:15:05+00:00npm ERR! npm v4.0.3
v002
2016-12-13 15:15:05+00:00npm ERR! code ELIFECYCLE
v002
2016-12-13 15:15:05+00:00npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
v002
2016-12-13 15:15:05+00:00npm ERR! Exit status 1
v002
2016-12-13 15:15:05+00:00npm ERR!
v002
2016-12-13 15:15:05+00:00npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script 'node npm-rebuild.js'.
v002
2016-12-13 15:15:05+00:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v002
2016-12-13 15:15:05+00:00npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
v002
2016-12-13 15:15:05+00:00npm ERR! not with npm itself.
v002
2016-12-13 15:15:05+00:00npm ERR! Tell the author that this fails on your system:
v002
2016-12-13 15:15:05+00:00npm ERR! node npm-rebuild.js
v002
2016-12-13 15:15:05+00:00npm ERR! You can get information on how to open an issue for this project with:
v002
2016-12-13 15:15:05+00:00npm ERR! npm bugs meteor-dev-bundle
v002
2016-12-13 15:15:05+00:00npm ERR! Or if that isn't available, you can get their info via:
v002
2016-12-13 15:15:05+00:00npm ERR! npm owner ls meteor-dev-bundle
v002
2016-12-13 15:15:05+00:00npm ERR! There is likely additional logging output above.
v002
2016-12-13 15:15:05+00:00
v002
2016-12-13 15:15:05+00:00npm ERR! Please include the following file with any support request:
v002
2016-12-13 15:15:05+00:00npm ERR! /app/bundle/programs/server/npm-debug.log
v002
2016-12-13 15:15:05+00:00Removing intermediate container 0805e52428ef
v002
2016-12-13 15:15:05+00:00Failed to build version 2. Maximum retries reached.

I don’t see anything I can help you with, but make sure you ask this question to Meteor’s support for Galaxy if you have not already. https://galaxy.meteor.com/your_username?overlay=SupportRequest

This was covered in another thread. bcrypt 1.x is the culprit. Downgrade to 0.8.7 and stay there for the time being (a fix is on its way).

1 Like

@ffxsam cheers, worked like a charm !

1 Like