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 describe issues #423

Closed
wf744 opened this issue Apr 22, 2014 · 4 comments
Closed

pm2 describe issues #423

wf744 opened this issue Apr 22, 2014 · 4 comments

Comments

@wf744
Copy link

wf744 commented Apr 22, 2014

When i use the pm2 describe to list a process , pm2 occur error!

[root@AY140317162231422d76Z ~]# pm2 describe 181
  pm2:satan Trying to connect to server +0ms
  axon:sock connect attempt localhost:6666 +0ms
  axon:sock connect +5ms
  axon:sock add socket 0 +0ms
  axon:queue flush 0 messages +0ms
  axon:sock closing +1ms
  axon:sock closing 1 connections +0ms
  pm2:satan Daemon alive +12ms
  pm2:satan Launching RPC client on port 6666 localhost +0ms
  axon:sock connect attempt localhost:6666 +1ms
  axon:sock remove socket 0 +1ms
  axon:sock connect +0ms
  axon:sock add socket 0 +0ms
  axon:queue flush 0 messages +2ms
  pm2:satan Connected to Daemon +1ms
Describing process with pid 181 - name 1_cache

/usr/local/lib/node_modules/pm2/node_modules/cli-table/lib/cli-table/index.js:183
      var contents = item.toString().split("\n").reduce(function (memo, l) {
                          ^
TypeError: Cannot call method 'toString' of undefined
    at /usr/local/lib/node_modules/pm2/node_modules/cli-table/lib/cli-table/index.js:183:27
    at Array.forEach (native)
    at generateRow (/usr/local/lib/node_modules/pm2/node_modules/cli-table/lib/cli-table/index.js:182:11)
    at /usr/local/lib/node_modules/pm2/node_modules/cli-table/lib/cli-table/index.js:276:16
    at Table.forEach (native)
    at Table.toString (/usr/local/lib/node_modules/pm2/node_modules/cli-table/lib/cli-table/index.js:259:10)
    at Object.UX.describeTable (/usr/local/lib/node_modules/pm2/lib/CliUx.js:59:21)
    at /usr/local/lib/node_modules/pm2/lib/CLI.js:657:12
    at Array.forEach (native)
    at /usr/local/lib/node_modules/pm2/lib/CLI.js:654:10
[root@AY140317162231422d76Z ~]# 

What is the problem?

@soyuka
Copy link
Collaborator

soyuka commented Apr 22, 2014

Please update this was fixed with 7b5110c

@soyuka soyuka closed this as completed Apr 22, 2014
@wf744
Copy link
Author

wf744 commented Apr 22, 2014

I install the latest pm2, via npm install pm2@latest -g
But it also has the same issue, how to do " Please update this was fixed with 7b5110c " ??

@soyuka
Copy link
Collaborator

soyuka commented Apr 22, 2014

After updating it :

pm2 kill
pm2 start yourapp

@wf744
Copy link
Author

wf744 commented Apr 22, 2014

OK, it work! Thank you! @soyuka

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