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

pm2 monit throws 'TypeError: Cannot read property 'cpu' of undefined' #2

Closed
oren opened this issue Jun 8, 2013 · 4 comments
Closed
Labels

Comments

@oren
Copy link

oren commented Jun 8, 2013

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)

@Unitech Unitech closed this as completed in 31603d3 Jun 9, 2013
@Unitech
Copy link
Owner

Unitech commented Jun 9, 2013

Thanks for reporting this issue, do you use a Mac OS ?

@oren
Copy link
Author

oren commented Jun 13, 2013

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)

@Unitech
Copy link
Owner

Unitech commented Jun 17, 2013

Working on it

@Unitech
Copy link
Owner

Unitech commented Jun 17, 2013

fixed

@Unitech Unitech closed this as completed Jun 17, 2013
Tjatse added a commit that referenced this issue Nov 26, 2014
Tjatse added a commit that referenced this issue Dec 6, 2014
Tjatse added a commit that referenced this issue Feb 26, 2015
Update to latest@development
Unitech added a commit that referenced this issue Oct 24, 2015
Allows to install packages from tarball generated with 'npm pack'  #2
@Unitech Unitech mentioned this issue Jan 26, 2016
soyuka pushed a commit that referenced this issue Mar 12, 2020
Merging fix - on-behalf of @toufik-airane, executed by huntr.dev (003-js-pm2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants