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

Error when deploy meteor 0.8.2 on centos with kadira 2.4.4 package installed #7

Closed
solo999 opened this issue Jun 25, 2014 · 13 comments
Closed

Comments

@solo999
Copy link

solo999 commented Jun 25, 2014

I have upgrade meteor to 0.8.2 and got following error when build it on VPS:

kadira: updating npm dependencies -- debug, usage...
npm http GET https://registry.npmjs.org/usage
npm http 304 https://registry.npmjs.org/usage
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
Traceback (most recent call last):
File "/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Linux 2.6.32-431.20.3.el6.x86_64
gyp ERR! command "node" "/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu/node_modules/usage
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! usage@0.4.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usage@0.4.3 install script.
npm ERR! This is most likely a problem with the usage 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 usage
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
npm ERR! command "/home/vb/.meteor/tools/858c88b520/bin/node" "/home/vb/.meteor/tools/858c88b520/bin/npm" "install" "usage@0.4.3"
npm ERR! cwd /home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu
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! /home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu/npm-debug.log
npm ERR! not ok code 0

Errors prevented bundling:
While building package kadira:
error: couldn't install npm package

With meteor 0.8.1.3 it was building and working ok...
Any ideas what's wrong?

@arunoda
Copy link
Member

arunoda commented Jun 25, 2014

Hy Seems like a issue with gyp installation on CentOS.
Can you please try this solution:
nodejs/node-gyp#363 (comment)

Keep me posted.


Arunoda Susiripala
I curate Meteor Weekly - Check it out!
http://meteorhacks.com/meteor-weekly/?utm_source=email-footer&utm_medium=email&utm_campaign=meteorweekly

On Wed, Jun 25, 2014 at 7:38 PM, solo999 notifications@github.com wrote:

I have upgrade meteor to 0.8.2 and got following error when build it on
VPS:

kadira: updating npm dependencies -- debug, usage...
npm http GET https://registry.npmjs.org/usage
npm http 304 https://registry.npmjs.org/usage
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
Traceback (most recent call last):
File
"/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py",
line 18, in
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(child_process.js:807:12)
gyp ERR! System Linux 2.6.32-431.20.3.el6.x86_64
gyp ERR! command "node"
"/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu/node_modules/usage
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! usage@0.4.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usage@0.4.3 install script.
npm ERR! This is most likely a problem with the usage 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 usage
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
npm ERR! command "/home/vb/.meteor/tools/858c88b520/bin/node"
"/home/vb/.meteor/tools/858c88b520/bin/npm" "install" "usage@0.4.3"
npm ERR! cwd
/home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu
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!
/home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu/npm-debug.log
npm ERR! not ok code 0

Errors prevented bundling:
While building package kadira:
error: couldn't install npm package

With meteor 0.8.1.3 it was building and working ok...
Any ideas what's wrong?


Reply to this email directly or view it on GitHub
#7.

@arunoda
Copy link
Member

arunoda commented Jun 25, 2014

Or may be this one:
nodejs/node-gyp#363 (comment)


Arunoda Susiripala
I curate Meteor Weekly - Check it out!
http://meteorhacks.com/meteor-weekly/?utm_source=email-footer&utm_medium=email&utm_campaign=meteorweekly

On Wed, Jun 25, 2014 at 8:03 PM, Arunoda Susiripala <arunoda@meteorhacks.com

wrote:

Hy Seems like a issue with gyp installation on CentOS.
Can you please try this solution:
nodejs/node-gyp#363 (comment)

Keep me posted.


Arunoda Susiripala
I curate Meteor Weekly - Check it out!
http://meteorhacks.com/meteor-weekly/?utm_source=email-footer&utm_medium=email&utm_campaign=meteorweekly

On Wed, Jun 25, 2014 at 7:38 PM, solo999 notifications@github.com wrote:

I have upgrade meteor to 0.8.2 and got following error when build it on
VPS:

kadira: updating npm dependencies -- debug, usage...
npm http GET https://registry.npmjs.org/usage
npm http 304 https://registry.npmjs.org/usage
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
Traceback (most recent call last):
File
"/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py",
line 18, in
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(child_process.js:807:12)
gyp ERR! System Linux 2.6.32-431.20.3.el6.x86_64
gyp ERR! command "node"
"/home/vb/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu/node_modules/usage
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! usage@0.4.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usage@0.4.3 install script.
npm ERR! This is most likely a problem with the usage 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 usage
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
npm ERR! command "/home/vb/.meteor/tools/858c88b520/bin/node"
"/home/vb/.meteor/tools/858c88b520/bin/npm" "install" "usage@0.4.3"
npm ERR! cwd
/home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu
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!
/home/vb/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f922796b6fc82de/.npm/package-new-1xxtlqu/npm-debug.log
npm ERR! not ok code 0

Errors prevented bundling:
While building package kadira:
error: couldn't install npm package

With meteor 0.8.1.3 it was building and working ok...
Any ideas what's wrong?


Reply to this email directly or view it on GitHub
#7.

@solo999
Copy link
Author

solo999 commented Jun 25, 2014

got it built by this solutiuon:
nodejs/node-gyp#363 (comment)

install node and npm ...

rm -rf $(dirname python -c 'import gyp; print gyp.__file__')
npm install -g node-gyp
npm install -g pm2

Thank you

@solo999 solo999 closed this as completed Jun 25, 2014
@arunoda
Copy link
Member

arunoda commented Jun 25, 2014

Awesome.

On Wednesday, June 25, 2014, solo999 notifications@github.com wrote:

Closed #7 #7.


Reply to this email directly or view it on GitHub
#7 (comment).


Arunoda Susiripala

@arunoda http://twitter.com/arunoda
http://gplus.to/arunodahttps://github.com/arunoda
http://www.linkedin.com/in/arunoda

@splendido
Copy link

Hi all,
I've got the same also on Ubuntu 14.04

Linux henesis4 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

and the solution provided by @solo999 worked for me as well!

Tnx

@solo999
Copy link
Author

solo999 commented Jun 30, 2014

Now can not Install Kadira 2.4.5 to local meteor 0.8.2 (Mac OS). Any connection to above issue?

kadira: updating npm dependencies -- debug, usage...
npm http GET https://registry.npmjs.org/usage
npm http 304 https://registry.npmjs.org/usage
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/node-gyp
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/node-gyp
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/npmlog
npm http GET https://registry.npmjs.org/osenv
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/osenv
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/request
npm ERR! Error: EACCES, open '/Users/vb/.npm/fstream/0.1.28/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/vb/.npm/fstream/0.1.28/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/vb/.npm/fstream/0.1.28/package/package.json',
npm ERR! parent: 'node-gyp' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.2.0
npm ERR! command "/Users/vb/.meteor/tools/858c88b520/bin/node" "/Users/vb/.meteor/tools/858c88b520/bin/npm" "install" "usage@0.4.4"
npm ERR! cwd /Users/vb/.meteorite/packages/kadira/meteorhacks/kadira/fa9a6446f6efb576953f99c01c03474f56f3852e/.npm/package-new-1dlyxns
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /Users/vb/.npm/fstream/0.1.28/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/vb/.npm/fstream/0.1.28/package/package.json'
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/npmlog
npm http 304 https://registry.npmjs.org/minimatch
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/vb/.meteorite/packages/kadira/meteorhacks/kadira/fa9a6446f6efb576953f99c01c03474f56f3852e/.npm/package-new-1dlyxns/npm-debug.log
npm ERR! not ok code 0

=> Errors while scanning packages:

While building package kadira:
error: couldn't install npm package

/usr/local/lib/node_modules/meteorite/lib/command.js:41
throw "Command exited with " + code + "/" + signal;
^
Command exited with 1/null

@arunoda
Copy link
Member

arunoda commented Jun 30, 2014

Seems like you've run mrt with sudo at some place.
Can you please follow this discussion: https://github.com/oortcloud/meteorite#permission-woes

@solo999
Copy link
Author

solo999 commented Jun 30, 2014

Solved with:

sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R whoami ~/.npm
sudo -H npm install -g meteorite

Thank you again...

@arunoda
Copy link
Member

arunoda commented Jun 30, 2014

Great.


Arunoda Susiripala

@arunoda http://twitter.com/arunoda
http://gplus.to/arunodahttps://github.com/arunoda
http://www.linkedin.com/in/arunoda

On Mon, Jun 30, 2014 at 5:11 PM, solo999 notifications@github.com wrote:

Solved with:

sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R whoami ~/.npm

Thank you again...


Reply to this email directly or view it on GitHub
#7 (comment).

@aashuagg
Copy link

I am getting following issue when trying to run 'meteor' after 'mrt update'. Executed the steps @solo999 suggested but no use. I am using meteor 0.8.3 and ubuntu 14.04

kadira: updating npm dependencies -- debug, usage, v8-profiler...
=> Meteor 1.0 is available. Update this project with 'meteor update'.
make: g++: Command not found
make: *** [Release/obj.target/profiler/src/profiler.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/aashu/.meteor/tools/cef2bcd356/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.13.0-37-generic
gyp ERR! command "node" "/home/aashu/.meteor/tools/cef2bcd356/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/aashu/.meteorite/packages/kadira/meteorhacks/kadira/60186338e3d4153da41debc03693eceb1bfe2dc5/.npm/package-new-wlqx0v/node_modules/v8-profiler
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! v8-profiler@5.2.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-profiler@5.2.0 install script.
npm ERR! This is most likely a problem with the v8-profiler 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 v8-profiler
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-37-generic
npm ERR! command "/home/aashu/.meteor/tools/cef2bcd356/bin/node" "/home/aashu/.meteor/tools/cef2bcd356/bin/npm" "install" "v8-profiler@5.2.0"
npm ERR! cwd /home/aashu/.meteorite/packages/kadira/meteorhacks/kadira/60186338e3d4153da41debc03693eceb1bfe2dc5/.npm/package-new-wlqx0v
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/aashu/.meteorite/packages/kadira/meteorhacks/kadira/60186338e3d4153da41debc03693eceb1bfe2dc5/.npm/package-new-wlqx0v/npm-debug.log
npm ERR! not ok code 0

=> Errors prevented startup:

While building the application:
node_modules/meteorite/node_modules/prompt/node_modules/winston/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/ddp/node_modules/meteor-ejson/node_modules/underscore/index.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/ddp/node_modules/node-srp/node_modules/underscore/index.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/ddp/node_modules/faye-websocket/examples/sse.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/ddp/node_modules/faye-websocket/examples/ws.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/prompt/docs/prompt.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/colors/example.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/underscore/index.html:1: Can't set DOCTYPE here. (Meteor sets for you)
node_modules/meteorite/node_modules/prompt/node_modules/utile/node_modules/mkdirp/bin/cmd.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/fstream/node_modules/mkdirp/bin/cmd.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/fstream/node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test//argv.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test/
/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/bool.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_double.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_single.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_hash.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_singles.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/divide.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_options.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_wrap.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/nonopt.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/reflect.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/short.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/string.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/xup.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/bin/mrt.js:1:15: Unexpected token ILLEGAL

While building package kadira:
error: couldn't install npm package

@arunoda
Copy link
Member

arunoda commented Nov 17, 2014

@aashuagg
Copy link

many thanks once again @arunoda . Didnt realize its the g++ issue and not kadira problem. installing g++ fixed it.

@arunoda
Copy link
Member

arunoda commented Nov 17, 2014

no problem. Happy to help.

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

No branches or pull requests

4 participants