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

invalid ps -o flag used in PM2 3.0.0 when starting #3791

Closed
mikebohlen opened this issue Jul 12, 2018 · 7 comments
Closed

invalid ps -o flag used in PM2 3.0.0 when starting #3791

mikebohlen opened this issue Jul 12, 2018 · 7 comments

Comments

@mikebohlen
Copy link

Mike Bohlen Jul 11, 06:48 PDT [2018-07-11T14:32:48.736Z] PM2 log: =============================================================================== [2018-07-11T14:32:48.810Z] PM2 log: Starting execution sequence in -cluster mode- for app name:Wo1 id:0 [2018-07-11T14:32:49.441Z] PM2 log: App name:Wo1 id:0 online [2018-07-11T14:32:49.446Z] PM2 error: (node:7587) [DEP0007] DeprecationWarning: worker.suicide is deprecated. Please use worker.exit[2018-07-11T14:32:49.508Z] PM2 error: Error caught while calling pidusage [2018-07-11T14:32:49.512Z] PM2 error: Error: ps: 0509-048 Flag -o was used with invalid list. Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],...] [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist ] [-@ [wparname] ] Usage: ps [aceglnsuvwxX] [t tty] [processnumber] [2018-07-11T14:32:49.514Z] PM2 log: =============================================================================== [2018-07-11T14:32:49.514Z] PM2 log: --- PM2 global error caught --------------------------------------------------- [2018-07-11T14:32:49.514Z] PM2 log: --- PM2 global error caught --------------------------------------------------- [2018-07-11T14:32:49.514Z] PM2 log: Time : Wed Jul 11 2018 14:32:49 GMT+0100 (CST) [2018-07-11T14:32:49.514Z] PM2 error: Cannot read property '7588' of undefined [2018-07-11T14:32:49.515Z] PM2 error: TypeError: Cannot read property '7588' of undefined at /QOpenSys/pkgs/lib/nodejs8/lib/node_modules/pm2/lib/God/ActionMethods.js:79:30   Mike Bohlen Jul 11, 06:48 PDT [2018-07-11T14:32:48.736Z] PM2 log: =============================================================================== [2018-07-11T14:32:48.810Z] PM2 log: Starting execution sequence in -cluster mode- for app name:Wo1 id:0 [2018-07-11T14:32:49.441Z] PM2 log: App name:Wo1 id:0 online [2018-07-11T14:32:49.446Z] PM2 error: (node:7587) [DEP0007] DeprecationWarning: worker.suicide is deprecated. Please use worker.exit[2018-07-11T14:32:49.508Z] PM2 error: Error caught while calling pidusage [2018-07-11T14:32:49.512Z] PM2 error: Error: ps: 0509-048 Flag -o was used with invalid list. Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],...] [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist ] [-@ [wparname] ] Usage: ps [aceglnsuvwxX] [t tty] [processnumber] [2018-07-11T14:32:49.514Z] PM2 log: =============================================================================== [2018-07-11T14:32:49.514Z] PM2 log: --- PM2 global error caught --------------------------------------------------- [2018-07-11T14:32:49.514Z] PM2 log: --- PM2 global error caught --------------------------------------------------- [2018-07-11T14:32:49.514Z] PM2 log: Time : Wed Jul 11 2018 14:32:49 GMT+0100 (CST) [2018-07-11T14:32:49.514Z] PM2 error: Cannot read property '7588' of undefined [2018-07-11T14:32:49.515Z] PM2 error: TypeError: Cannot read property '7588' of undefined at /QOpenSys/pkgs/lib/nodejs8/lib/node_modules/pm2/lib/God/ActionMethods.js:79:30
  Mike Bohlen Jul 11, 06:48 PDT [2018-07-11T14:32:48.736Z] PM2 log: =============================================================================== [2018-07-11T14:32:48.810Z] PM2 log: Starting execution sequence in -cluster mode- for app name:Wo1 id:0 [2018-07-11T14:32:49.441Z] PM2 log: App name:Wo1 id:0 online [2018-07-11T14:32:49.446Z] PM2 error: (node:7587) [DEP0007] DeprecationWarning: worker.suicide is deprecated. Please use worker.exit[2018-07-11T14:32:49.508Z] PM2 error: Error caught while calling pidusage [2018-07-11T14:32:49.512Z] PM2 error: Error: ps: 0509-048 Flag -o was used with invalid list. Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],...] [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist ] [-@ [wparname] ] Usage: ps [aceglnsuvwxX] [t tty] [processnumber] [2018-07-11T14:32:49.514Z] PM2 log: =============================================================================== [2018-07-11T14:32:49.514Z] PM2 log: --- PM2 global error caught --------------------------------------------------- [2018-07-11T14:32:49.514Z] PM2 log: --- PM2 global error caught --------------------------------------------------- [2018-07-11T14:32:49.514Z] PM2 log: Time : Wed Jul 11 2018 14:32:49 GMT+0100 (CST) [2018-07-11T14:32:49.514Z] PM2 error: Cannot read property '7588' of undefined [2018-07-11T14:32:49.515Z] PM2 error: TypeError: Cannot read property '7588' of undefined at /QOpenSys/pkgs/lib/nodejs8/lib/node_modules/pm2/lib/God/ActionMethods.js:79:30

What's going wrong?

How could we reproduce this issue?

Supporting information

$ pm2 report
@wallet77
Copy link
Contributor

Which pm2 command are you using ?
We need more details to reproduce !

@mikebohlen
Copy link
Author

mikebohlen commented Jul 12, 2018 via email

@mikebohlen
Copy link
Author

mikebohlen commented Jul 12, 2018 via email

@Unitech
Copy link
Owner

Unitech commented Jul 12, 2018

@soyuka

@Unitech
Copy link
Owner

Unitech commented Jul 13, 2018

@mikebohlen we don't have an AIX machine, could you post the result of the command:

ps --help simple
ps --help output
ps --help list

Thanks

@mikebohlen
Copy link
Author

mikebohlen commented Jul 13, 2018 via email

Unitech added a commit that referenced this issue Jul 13, 2018
@soyuka
Copy link
Collaborator

soyuka commented Jul 13, 2018

fixed in soyuka/pidusage@7d55518

@soyuka soyuka closed this as completed Jul 13, 2018
inerc pushed a commit to inerc/pm2 that referenced this issue Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants