Meteor up mup deploy fails - meteor

EDIT:
Opened issue in Github repo.
https://github.com/arunoda/meteor-up/issues/87
I have tried to setup Meteor up to run a meteor app.
Here is the error I get when I run mup deploy
Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
e-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/give/tmp/bundle/programs/server/node_modules/bcrypt
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! bcrypt#0.7.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.7.8 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "bcrypt"
npm ERR! cwd /opt/give/tmp/bundle/programs/server
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/give/tmp/bundle/programs/server/npm-debug.log
npm ERR! not ok code 0
-----------------------------------STDOUT-----------------------------------
> fibers#1.0.1 install /opt/give/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js
`linux-x64-v8-3.14` exists; testing
Binary is fine; exiting
fibers#1.0.1 node_modules/fibers
> bcrypt#0.7.8 install /opt/give/tmp/bundle/programs/server/node_modules/bcrypt
> node-gyp rebuild
----------------------------------------------------------------------------
I also ran a mup logs -n 300 and got this response.
error: Cannot start forever
error: script /opt/give/app/main.js does not exist.
Any idea what I might be doing wrong here?

I restored my server to an earlier state, reinstalled mup and set the install nodejs to false. I also installed node v0.10.29 using sudo npm install n -g sudo n stable and ran through mup init, mup setup, mup deploy works this time.

Related

Meteor mup deploy fibers error

i get the following error when i try to mup deploy
Building Started: /Users/../.......
Started TaskList: Deploy app 'meteor' (linux)
[195.30.108.227] - Uploading bundle
[195.30.108.227] - Uploading bundle: SUCCESS
[195.30.108.227] - Setting up Environment Variables
[195.30.108.227] - Setting up Environment Variables: SUCCESS
[195.30.108.227] - Invoking deployment process
[195.30.108.227] x Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
les/fibers
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
Build failed
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! fibers#1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers#1.0.5 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/tmp/bundle/programs/server/npm-debug.log
-----------------------------------STDOUT-----------------------------------
> ./bcrypt: npm install due to binary npm modules
bindings#1.0.0 node_modules/bindings
nodeunit#0.9.1 node_modules/nodeunit
└── tap#0.7.1 (inherits#2.0.1, buffer-equal#0.0.2, slide#1.1.6, deep-equal#1.0.1, yamlish#0.0.7, nopt#3.0.6, mkdirp#0.5.1, difflet#0.2.6, glob#4.5.3, runforcover#0.0.2)
> fibers#1.0.5 install /opt/meteor/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js
make: Verzeichnis »/opt/meteor/tmp/bundle/programs/server/node_modules/fibers/build« wird betreten
CXX(target) Release/obj.target/fibers/src/fibers.o
make: Verzeichnis »/opt/meteor/tmp/bundle/programs/server/node_modules/fibers/build« wird verlassen
----------------------------------------------------------------------------
You are using node version v4.4.7, but meteor build run on v0.10.40 or lower.
You can use nvm for change your node version.
Had similar problem.
The issue was related to meteor version and mup
As my meteor was 1.2.1 and my mup 1.3.1, needed to change in mup.js to use older docker "kariahq/meteord" image
docker: {
// change to 'kadirahq/meteord' if your app is not using Meteor 1.4
image: 'kadirahq/meteord'
//image: 'abernix/meteord:base'
},

node-pre-gyp install --fallback-to-build error install with npm on OSX

Running on OSX, node version 0.12.0, running
npm install --production
for Ghost trying to install sqlite3 v. 3.0.4 I get the following error:
> node-pre-gyp install --fallback-to-build
child_process: customFds option is deprecated, use stdio instead. gyp: /Users/USER/.node/common.gypi not found (cwd:
/Users/USER/Documents/personal_website/ghost/node_modules/sqlite3) while reading includes of binding.gyp while trying to load binding.gyp gyp
ERR! configure error gyp
ERR! stack Error: `gyp` failed with exit code: 1 gyp
ERR! stack at ChildProcess.onCpExit
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at
Process.ChildProcess._handle.onexit (child_process.js:1067:12) gyp
ERR! System Darwin 14.1.0 gyp ERR! command "node"
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=3.0.4" "--major=3" "--patch=4" "--runtime=node" "--node_abi=node-v14" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path=/Users/USER/Documents/personal_website/ghost/node_modules/sqlite3/lib/binding/node-v14-darwin-x64" "--module=/Users/USER/Documents/personal_website/ghost/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node" "--remote_path=./sqlite3/v3.0.4/" "--package_name=node-v14-darwin-x64.tar.gz" "--staged_tarball=build/stage/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz" "--hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/" "--hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz" "--nodedir=/Users/USER/.node" gyp
ERR! cwd /Users/USER/Documents/personal_website/ghost/node_modules/sqlite3 gyp
ERR! node -v v0.12.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--production"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! sqlite3#3.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3#3.0.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
I do have /usr/local/share/npm/bin in my PATH.
When trying to install ghost I also get this error. It looks like something is wrong with node-sqlite3, as I've seen other people posting about this error. Once node-sqlite3 is fixed there may be more issues though:
Ghost doesn't currently support node 0.12.x yet. From the README.md:
Ghost requires Node v0.10.x
There is more info at https://github.com/TryGhost/Ghost/issues/4240
I'll probably just end up installing an older version of node until ghost has a new release.
npm i sqlite3 --build-from-source may work
I got that error too. After downgrade nodejs to 0.10.9 with npm version 2.5.1 I can do npm install --production without error
If you download Ghost directly from the github repo a lot of these issues that arise due to the package.json file are already resolved.
For instance, you have these notable changes that solve some install issues:
"engines": {
"node": "~0.10.0 || ~0.12.0",
"iojs": "~1.2.0"
},
And also in dependencies:
"html-to-text": "1.2.0",
"sqlite3": "3.0.5",
Console appeared like this:
node pre gyp install --fallback-to-build
This is installed into a 32 bit version.
Waiting for a while, it automatically becomes 64 bit.
And just fine.

while running meteor app i got this error message

iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d/npm-debug.log
npm ERR! not ok code 0
iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While Building package `iron-router`:
error: couldn't install npm package
While Building package `iron-router`:
error: couldn't install npm package
=> Your application has errors. Waiting for file change.
If you run your initial command with user permissions (which is not clear from your answer - please print the command next time), then it needs to be able to access (read, write, execute) other directories with the same permissions.
You can change ownership with:
chown -R $USER <directory>
where in your case <directory> is /home/john and -R is for recursive, so it will change all subdirectories too, which is exactly what you want.
See here for more details.

Ghost install npm

I get an error when I run this command:
npm install --production
Help please.
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/root/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! System Linux 2.6.32-042stab088.4
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /root
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.4
npm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
I tried to execute the command in the directory with Ghost. And came out this error:
sqlite3#2.2.0 install /var/www/node_modules/sqlite3
node-pre-gyp install --fallback-to-build
/usr/bin/env: node: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! sqlite3#2.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the sqlite3#2.2.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab088.4
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /var/www
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/npm-debug.log
npm ERR! not ok code 0`
From your output it seems to me that you are not in the Ghost install directory. Could you please try to cd to the directory where the source of Ghost is located and run the command again?

Issue in installing grunt-cli

I'm trying to install grunt-cli. Here is the command I'm executing:
npm install -g grunt-cli
But I'm getting the following error message. My machine is running under corporate proxy. Is it due to that?? Could someone please let me know how to resolve this issue.
npm http GET http://registry.npmjs.org/grunt-cli
npm http 304 http://registry.npmjs.org/grunt-cli
npm http GET http://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm http 200 http://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm ERR! Error: shasum check failed for C:\Users\781650\AppData\Local\Temp\npm-6
640-cHN2e4JV\1401080165006-0.9552419183310121\tmp.tgz
npm ERR! Expected: e9ebc4047631f5012d922770c39378133cad10f4
npm ERR! Actual: 11b711d30f410c53585e0dee9d932cb24d49bab9
npm ERR! From: http://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\sha\index.
js:38:8
npm ERR! at ReadStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm
\node_modules\sha\index.js:85:7)
npm ERR! at ReadStream.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:920:16
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR!
i guess most likely due to proxy, try to set the proxy
npm config set proxy xxx
npm config set https-proxy xxx

Resources