when i using mup deploy to deploy my app into remote server ,there are some errors below:
-
Invoking deployment process
[xx.xx.xx.xx] x Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
ack at Module.require (module.js:364:17)
gyp ERR! System Linux 3.2.0-67-generic
gyp ERR! command “node” “/usr/bin/node-gyp” "rebuild"
gyp ERR! cwd /opt/hhxad/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt
gyp ERR! node -v v0.10.41
gyp ERR! node-gyp -v v3.2.1
gyp ERR! This is a bug in node-gyp
.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/node-gyp/issues
npm WARN meteor-dev-bundle@0.0.0 No description
npm WARN meteor-dev-bundle@0.0.0 No repository field.
npm WARN meteor-dev-bundle@0.0.0 No license field.
js-bson: Failed to load c++ bson extension, using pure JS version
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) couldn’t connect to host
Latest deployment failed! Reverted back to the previous version.
-----------------------------------STDOUT-----------------------------------
de@1.1.6
└── yamlish@0.0.7
fibers@1.0.5 install /opt/hhxad/tmp/bundle/programs/server/node_modules/fibers
node ./build.js
linux-x64-v8-3.14
exists; testing
Binary is fine; exiting
meteor-dev-bundle@0.0.0 /opt/hhxad/tmp/bundle/programs/server
├─┬ chalk@0.5.1
│ ├── ansi-styles@1.1.0
│ ├── escape-string-regexp@1.0.3
│ ├─┬ has-ansi@0.1.0
│ │ └── ansi-regex@0.2.1
│ ├── strip-ansi@0.3.0
│ └── supports-color@0.2.0
├─┬ eachline@2.3.3
│ └── type-of@2.0.1
├── fibers@1.0.5
├─┬ meteor-promise@0.5.0
│ └─┬ promise@7.0.4
│ └── asap@2.0.3
├── semver@4.1.0
├─┬ source-map-support@0.3.2
│ └─┬ source-map@0.1.32
│ └── amdefine@1.0.0
└── underscore@1.5.2
Waiting for MongoDB to initialize. (5 minutes)
{ [Error: Cannot find module ‘…/build/Release/bson’] code: ‘MODULE_NOT_FOUND’ }
connected
hhxad stop/waiting
hhxad start/running, process 803
Waiting for 60 seconds while app is booting up
Checking is app booted or not?
hhxad stop/waiting
hhxad start/running, process 1099
Here is the complete list of mup troubleshooting steps you should consider:
- Make sure your target server is running Debian/Ubuntu or Open Solaris (the only OS’ supported; using others are possible but you’ll have to jump through extra hoops).
- Make sure you’re using node 0.10.40 on your target server (as of today).
- Stop using mup - start using mupx (this should arguably be step 1 - mupx will make your life so much easier).
hi
1.my target server is running ubuntu 12.04
2.using node 0.10.41 on target server
3.2016-01-12 mup deploy success, 2016-01-14 mup deploy failed
is there any other solutions? thanks
target server
root@iZ94tgjsw2jZ:~# node-gyp -v
v3.2.1
root@iZ94tgjsw2jZ:~# node -v
v0.10.41
root@iZ94tgjsw2jZ:~#
mup logs
/opt/hhxad/app/programs/server/node_modules/fibers/future.js:245
throw(ex);
^
Error: Could not load the bindings file. Tried:
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Debug/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/out/Debug/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/Debug/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/out/Release/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/Release/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/default/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/compiled/0.10.41/linux/x64/bcrypt_lib.node
at bindings (/opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:84:13)
at Object. (/opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.Npm.require (/opt/hhxad/app/programs/server/boot.js:162:18)
at Package (packages/npm-bcrypt/packages/npm-bcrypt.js:9:1)
error: Forever detected script exited with code: 8
error: Script restart attempt #32
Please try switching to node 0.10.40 before you try anything else. Meteor is not (officially) supported on anything higher than 0.10.40 (as of Meteor version 1.2).
hi
hwillson
I try the solution you give,The mup deploy error is the same ,some information below
target server node & node-gyp version is
root@iZ94tgjsw2jZ:~# node -v
v0.10.40
root@iZ94tgjsw2jZ:~# node-gyp -v
v3.2.1
mup deploy errors are
x Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
:364:17)
gyp ERR! System Linux 3.2.0-67-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/hhxad/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v3.2.1
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
js-bson: Failed to load c++ bson extension, using pure JS version
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) couldn’t connect to host
Latest deployment failed! Reverted back to the previous version.
-----------------------------------STDOUT-----------------------------------
/ansi-styles
chalk@0.5.1 node_modules/chalk
escape-string-regexp@1.0.3 node_modules/escape-string-regexp
supports-color@0.2.0 node_modules/supports-color
has-ansi@0.1.0 node_modules/has-ansi
strip-ansi@0.3.0 node_modules/strip-ansi
eachline@2.3.3 node_modules/eachline
type-of@2.0.1 node_modules/type-of
amdefine@1.0.0 node_modules/amdefine
asap@2.0.3 node_modules/asap
underscore@1.5.2 node_modules/underscore
meteor-promise@0.5.0 node_modules/meteor-promise
promise@7.0.4 node_modules/promise
source-map-support@0.3.2 node_modules/source-map-support
semver@4.1.0 node_modules/semver
source-map@0.1.32 node_modules/source-map
fibers@1.0.5 node_modules/fibers
Waiting for MongoDB to initialize. (5 minutes)
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
connected
hhxad stop/waiting
hhxad start/running, process 23301
Waiting for 60 seconds while app is booting up
Checking is app booted or not?
hhxad stop/waiting
hhxad start/running, process 23556
mup logs are
/opt/hhxad/app/programs/server/node_modules/fibers/future.js:245
throw(ex);
^
Error: Could not load the bindings file. Tried:
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Debug/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/out/Debug/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/Debug/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/out/Release/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/Release/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/default/bcrypt_lib.node
→ /opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/compiled/0.10.40/linux/x64/bcrypt_lib.node
at bindings (/opt/hhxad/app/p[120.24.226.66] rograms/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:84:13)
at Object. (/opt/hhxad/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.Npm.require (/opt/hhxad/app/programs/server/boot.js:162:18)
at Package (packages/npm-bcrypt/packages/npm-bcrypt.js:9:1)
error: Forever detected script exited with code: 8
error: Script restart attempt #29
hi
hwillson
I found mup logs error message may be relate to opt/hhxad/tmp/bundle.tar.gz that not unziped and installed,and how to unzipwd and installed bundle.tar.gz in mup deploy process automaticaly?
hi
hwillson
mup deploy error has been solved,the error reason is in deploy.sh,update the deploy.sh,mup deploy successfully!
thnaks very much!
Best Regards