Pm2 start a new daemon and delete all my apps
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
When I typed pm2 list, pm2 start a new Daemon and delete all my apps
How could we reproduce this issue?
There are no errors in the logs, I don't know how to reproduce it, but I've met this bug twice this month
Supporting information
[appuser@ .pm2]$ node -v
v16.20.2
[appuser@ .pm2]$ pm2 -v
5.3.1
[appuser@ .pm2]$ ps -ef | grep pm2 | grep appuser
appuser 5345 1 0 Mar18 ? 00:51:00 PM2 v5.3.1: God Daemon (/home/appuser/.pm2)
appuser 16771 1 0 Mar14 ? 00:00:06 PM2 v5.3.1: God Daemon (/home/appuser/.pm2)
appuser 24555 23915 0 09:08 pts/0 00:00:00 grep --color=auto pm2
[appuser@ .pm2]$
[appuser@ .pm2]$ uname -po
aarch64 GNU/Linux
[appuser@ .pm2]$
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the two PM2 v5.3.1 God Daemon processes shown by ps -ef and the reported pm2 list behavior on Node.js v16.20.2 and aarch64 Linux. Reproduce the duplicate-daemon condition if possible, then identify why applications disappear and verify that the daemon no longer starts twice or deletes them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100