Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created October 30, 2014 13:41
Show Gist options
  • Save Unitech/39d79d80595b5a23b93a to your computer and use it in GitHub Desktop.
Save Unitech/39d79d80595b5a23b93a to your computer and use it in GitHub Desktop.
/home/shant/keymetrics/pm2/lib/Monit.js:231
this.bars[proc.pm_id].cpu.percent(0, proc.pm2_env.status.red);
^
TypeError: Cannot read property 'cpu' of undefined
at Object.Monit.updateBars (/home/shant/keymetrics/pm2/lib/Monit.js:231:26)
at Object.Monit.refresh (/home/shant/keymetrics/pm2/lib/Monit.js:118:12)
at /home/shant/keymetrics/pm2/lib/CLI.js:1298:13
at /home/shant/keymetrics/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10
at Parser.<anonymous> (/home/shant/keymetrics/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8)
at Parser.emit (events.js:107:17)
at Parser._write (/home/shant/keymetrics/pm2/node_modules/pm2-axon/node_modules/amp/lib/stream.js:91:16)
at doWrite (_stream_writable.js:265:12)
at writeOrBuffer (_stream_writable.js:252:5)
at Parser.Writable.write (_stream_writable.js:197:11)
at Socket.ondata (_stream_readable.js:539:20)
at Socket.emit (events.js:107:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment