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 passing filename to pm2 stop someFile.txt #54

Closed
mlebrun opened this issue Jul 17, 2013 · 1 comment
Closed

Error when passing filename to pm2 stop someFile.txt #54

mlebrun opened this issue Jul 17, 2013 · 1 comment

Comments

@mlebrun
Copy link

mlebrun commented Jul 17, 2013

I realize now after reading the docs I was supposed to pass the pm2 id, but passing an invalid argument like I did should probably print the docs/manual or a message instead?

root@ubuntu-desktop:/mnt/Projects/server/Notify-Example# pm2 stop index.js
⌬ PM2 Stopping processindex.js

/usr/lib/node_modules/pm2/lib/God.js:176
God.clusters_db[id].opts.max = 0;
^
TypeError: Cannot read property 'opts' of undefined
at Object.God.stopProcessId (/usr/lib/node_modules/pm2/lib/God.js:176:22)
at server.expose.stopId (/usr/lib/node_modules/pm2/lib/Satan.js:106:11)
at Server.onmessage (/usr/lib/node_modules/pm2/node_modules/axon-rpc/lib/server.js:94:6)
at RepSocket.EventEmitter.emit (events.js:98:17)
at Parser.onmessage (/usr/lib/node_modules/pm2/node_modules/axon/lib/sockets/rep.js:47:15)
at Parser.frameBody (/usr/lib/node_modules/pm2/node_modules/axon/lib/parser.js:106:10)
at Parser.write (/usr/lib/node_modules/pm2/node_modules/axon/lib/parser.js:50:13)
at Parser.frameHeader (/usr/lib/node_modules/pm2/node_modules/axon/lib/parser.js:81:30)
at Parser.write (/usr/lib/node_modules/pm2/node_modules/axon/lib/parser.js:49:36)
at Socket.EventEmitter.emit (events.js:95:17)

@Unitech
Copy link
Owner

Unitech commented Jul 19, 2013

You have an old version of pm2,
please update it :

https://github.com/Unitech/pm2#a5

@Unitech Unitech closed this as completed Jul 19, 2013
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

2 participants