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

All Service in Process list showing 0% CPU and Mem: {#aN-fg} in Memory. Restart Service Error. #5853

Open
hoyinng0203 opened this issue Jul 4, 2024 · 0 comments

Comments

@hoyinng0203
Copy link

hoyinng0203 commented Jul 4, 2024

What's going wrong?

All Service in Process list showing 0% CPU and Mem: {#aN-fg} in Memory. I tried to run pm2 restart all, but it got error show as below. Even I kill all process and start again still got the same issue.
PS D:\IT\IPchangeTracker> pm2 restart all
Use --update-env to update environment variables
[PM2] Applying action restartProcessId on app [all](ids: [ 0 ])
[PM2][ERROR] Process 0 not found

PM log:
2024-07-04T14:40:01: PM2 log: [Watch] Start watching IPTracker
2024-07-04T14:40:01: PM2 log: App [IPTracker:0] starting in -fork mode-
2024-07-04T14:40:01: PM2 log: App [IPTracker:0] online
2024-07-04T14:40:02: PM2 error: Error caught while calling pidusage
2024-07-04T14:40:02: PM2 error: Error: ERROR:

Description = Not found

2024-07-04T14:40:10: PM2 error: Error caught while calling pidusage
2024-07-04T14:40:10: PM2 error: Error: ERROR:

How could we reproduce this issue?

Supporting information

# Run the following commands
$ pm2 report

PS D:\IT\IPchangeTracker> pm2 report

--- PM2 report ----------------------------------------------------------------
Date                 : Thu Jul 04 2024 14:35:22 GMT+0100 (British Summer Time)
===============================================================================
--- Daemon -------------------------------------------------
pm2d version         : 5.4.1
node version         : 21.2.0
node path            : not found
argv                 : C:\Program Files\nodejs\node.exe,C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\lib\Daemon.js
argv0                : node
user                 : undefined
uid                  : N/A
gid                  : N/A                                            ││ watch & reload        ✔
uptime               : 6min                                                                                        │
===============================================================================le restarts     0
--- CLI ----------------------------------------------------                                                       │
local pm2            : 5.4.1                                          ││ Comment               N/A
node version         : 21.2.0                                                                                      │
node path            : not found
argv                 : C:\Program Files\nodejs\node.exe,C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\bin\pm2,reportswitch boards | up/down/mouse: scroll | Ctrl-C: exit
argv0                : C:\Program Files\nodejs\node.exe                  To go further check out https://pm2.io/
user                 : Administrator
===============================================================================
--- System info --------------------------------------------
arch                 : x64
platform             : win32
type                 : Windows_NT
cpus                 : Intel(R) Xeon(R) E-2334 CPU @ 3.40GHz
cpus nb              : 8
freemem              : 12018438144
totalmem             : 17019039744
home                 : C:\Users\Administrator
===============================================================================
--- PM2 list -----------------------------------------------
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0  │ IPTracker          │ fork     │ 1    │ errored   │ 0%       │ 0b       │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
C:\Users\Administrator\.pm2\pm2.log last 20 lines:
PM2        | 2024-07-04T14:31:32: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:32: PM2 log: Process with pid 5796 still alive after 1600ms, sending it SIGKILL now...
PM2        | 2024-07-04T14:31:32: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:32: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:32: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:33: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:34: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:34: PM2 log: pid=5796 msg=failed to kill - retrying in 100ms
PM2        | 2024-07-04T14:31:34: PM2 log: Process with pid 5796 could not be killed
PM2        | 2024-07-04T14:31:34: PM2 error: app=IPTracker id=0 pid=5796 could not be stopped
PM2        | 2024-07-04T14:31:34: PM2 error: Process with pid 5796 already exists
PM2        | 2024-07-04T14:31:49: PM2 error: Process with pid 5796 already exists

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

1 participant