-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
pm2 monit throws 'TypeError: Cannot read property 'cpu' of undefined' #2
Comments
Thanks for reporting this issue, do you use a Mac OS ? |
yes. Mac OS 10.8.4 when testing on debian 7 I get: /usr/local/lib/node_modules/pm2/node_modules/multimeter/lib/bar.js:68 .write(Array(this.width - bars + 1).join(this.empty.text)) ^RangeError: Invalid array length at Bar.draw (/usr/local/lib/node_modules/pm2/node_modules/multimeter/lib/bar.js:68:16) at Bar.ratio (/usr/local/lib/node_modules/pm2/node_modules/multimeter/lib/bar.js:104:14) at /usr/local/lib/node_modules/pm2/lib/Monit.js:54:16 at Array.forEach (native) at Object.Monit.init (/usr/local/lib/node_modules/pm2/lib/Monit.js:24:13) at /usr/local/lib/node_modules/pm2/bin/pm2:489:11 at /usr/local/lib/node_modules/pm2/lib/Satan.js:126:5 at /usr/local/lib/node_modules/pm2/node_modules/axon-rpc/lib/client.js:43:10 at Parser.onmessage (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/sockets/req.js:65:8) at Parser.frameBody (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:106:10) |
Working on it |
fixed |
Allows to install packages from tarball generated with 'npm pack' #2
Merging fix - on-behalf of @toufik-airane, executed by huntr.dev (003-js-pm2).
pm2 start server.js
pm2 monit
PM2 monitoring :
server.js [93944]
/usr/local/lib/node_modules/pm2/lib/Monit.js:46
bar_cpu.percent(proc.monit.cpu);
^
TypeError: Cannot read property 'cpu' of undefined
at /usr/local/lib/node_modules/pm2/lib/Monit.js:46:31
at Array.forEach (native)
at Object.Monit.init (/usr/local/lib/node_modules/pm2/lib/Monit.js:17:13)
at /usr/local/lib/node_modules/pm2/bin/pm2:484:11
at /usr/local/lib/node_modules/pm2/lib/Satan.js:126:5
at /usr/local/lib/node_modules/pm2/node_modules/axon-rpc/lib/client.js:43:10
at Parser.onmessage (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/sockets/req.js:65:8)
at Parser.frameBody (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:106:10)
at Parser.write (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:50:13)
at Parser.frameHeader (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:81:30)
The text was updated successfully, but these errors were encountered: