Unitech / Unitech/pm2

PM2 Pid file is not being create.

Open
#5,966 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.