PM2 Pid file is not being create.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
I installed node and pm2(globally) as root user.
I setup all my project as non sudo user and setup ecosystem files for start applications using pm2
When i run pm2 startup. it provides command that command i run as root user. and then pm2 save.
After restart server, then pm2 is not able to restart all applications.
I checked pm-user.service is failing because pm2.pid file not found
I tried many times but PM2.PID is not creating So pm-nonuser.service is failing
Any solution??
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 reproducing the pm2 startup and pm2 save flow described in the issue, then inspect the failing pm-user.service and pm-nonuser.service units and their expected PM2.PID path. Determine why the pid file is absent after reboot; done means the generated service starts successfully and restores the non-root user's applications.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100