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

TypeError: Cannot read property 'trim' of null #4212

Closed
ankalagon17 opened this issue Mar 23, 2019 · 1 comment
Closed

TypeError: Cannot read property 'trim' of null #4212

ankalagon17 opened this issue Mar 23, 2019 · 1 comment

Comments

@ankalagon17
Copy link

What's going wrong?

On version 3.4.0 when i type the command "pm2 show 0" the terminal show the "Describing process with id 0" square followed by the title "Revision control metadata" and the error:

/home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/lib/API/CliUx.js:161
{ 'comment' : pm2_env.versioning.comment.trim() },
^

TypeError: Cannot read property 'trim' of null
at Object.UX.describeTable (/home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/lib/API/CliUx.js:161:57)
at /home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/lib/API.js:1713:14
at Array.forEach ()
at /home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/lib/API.js:1712:20
at /home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10
at Parser. (/home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8)
at Parser.emit (events.js:189:13)
at Parser._write (/home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/node_modules/amp/lib/stream.js:91:16)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)

How could we reproduce this issue?

my proyect are over an svn source control on a Centos 7 Linux, a node v10.15.1 and a npm v6.4.1

Supporting information

$ pm2 report
--- PM2 report ----------------------------------------------------------------
Date                 : Sat Mar 23 2019 10:30:02 GMT-0600 (Central Standard Time)
===============================================================================
--- Daemon -------------------------------------------------
pm2d version         : 3.4.0
node version         : 10.15.1
node path            : /home/administrator/.nvm/versions/node/v10.15.1/bin/pm2
argv                 : /home/administrator/.nvm/versions/node/v10.15.1/bin/node,/home/administrator/.nvm/versions/node/v10.15.1/lib/node_modules/pm2/lib/Daemon.js
argv0                : node
user                 : administrator
uid                  : 1000
gid                  : 1000
uptime               : 31min
===============================================================================
--- CLI ----------------------------------------------------
local pm2            : 3.4.0
node version         : 10.15.1
node path            : /home/administrator/.nvm/versions/node/v10.15.1/bin/pm2
argv                 : /home/administrator/.nvm/versions/node/v10.15.1/bin/node,/home/administrator/.nvm/versions/node/v10.15.1/bin/pm2,report
argv0                : node
user                 : administrator
uid                  : 1000
gid                  : 1000
===============================================================================
--- System info --------------------------------------------
arch                 : x64
platform             : linux
type                 : Linux
cpus                 : Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
cpus nb              : 1
freemem              : 449163264
totalmem             : 3974098944
home                 : /home/administrator
===============================================================================
--- PM2 list -----------------------------------------------
┌──────────┬────┬─────────┬──────┬───────┬────────┬─────────┬────────┬──────┬───────────┬───────────────┬──────────┐
│ App name │ id │ version │ mode │ pid   │ status │ restart │ uptime │ cpu  │ mem       │ user          │ watching │
├──────────┼────┼─────────┼──────┼───────┼────────┼─────────┼────────┼──────┼───────────┼───────────────┼──────────┤
│ CAT      │ 0  │ 1.0.0   │ fork │ 26836 │ online │ 0       │ 30m    │ 0.7% │ 49.3 MB   │ administrator │ disabled │
└──────────┴────┴─────────┴──────┴───────┴────────┴─────────┴────────┴──────┴───────────┴───────────────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
/home/administrator/.pm2/pm2.log last 20 lines:
PM2        | 2019-03-23T09:56:35: PM2 log: App [CAT:0] exited with code [0] via signal [SIGINT]
PM2        | 2019-03-23T09:56:35: PM2 log: pid=22785 msg=process killed
PM2        | 2019-03-23T09:58:59: PM2 log: PM2 successfully stopped
PM2        | 2019-03-23T09:59:03: PM2 log: ===============================================================================
PM2        | 2019-03-23T09:59:03: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
PM2        | 2019-03-23T09:59:03: PM2 log: Time                 : Sat Mar 23 2019 09:59:03 GMT-0600 (Central Standard Time)
PM2        | 2019-03-23T09:59:03: PM2 log: PM2 version          : 3.4.0
PM2        | 2019-03-23T09:59:03: PM2 log: Node.js version      : 10.15.1
PM2        | 2019-03-23T09:59:03: PM2 log: Current arch         : x64
PM2        | 2019-03-23T09:59:03: PM2 log: PM2 home             : /home/administrator/.pm2
PM2        | 2019-03-23T09:59:03: PM2 log: PM2 PID file         : /home/administrator/.pm2/pm2.pid
PM2        | 2019-03-23T09:59:03: PM2 log: RPC socket file      : /home/administrator/.pm2/rpc.sock
PM2        | 2019-03-23T09:59:03: PM2 log: BUS socket file      : /home/administrator/.pm2/pub.sock
PM2        | 2019-03-23T09:59:03: PM2 log: Application log path : /home/administrator/.pm2/logs
PM2        | 2019-03-23T09:59:03: PM2 log: Process dump file    : /home/administrator/.pm2/dump.pm2
PM2        | 2019-03-23T09:59:03: PM2 log: Concurrent actions   : 2
PM2        | 2019-03-23T09:59:03: PM2 log: SIGTERM timeout      : 1600
PM2        | 2019-03-23T09:59:03: PM2 log: ===============================================================================
PM2        | 2019-03-23T09:59:04: PM2 log: App [CAT:0] starting in -fork mode-
PM2        | 2019-03-23T09:59:04: PM2 log: App [CAT:0] online

@Unitech
Copy link
Owner

Unitech commented Apr 5, 2019

will be fixed in next release, thanks for reporting

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants