Unitech / Unitech/pm2

pm2 status outputs commas instead of usernames

Open
#4,431 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S: Open for PR
Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

What's going wrong?

user column in pm2 status doesn't display actual user if I use uid and gid options in ecosystem file.
I run pm2 daemon as root user and tried to launch process using ecosystem file where I specified uid and gid, now status shows ,,, instead of username for this process.

How could we reproduce this issue?

Supporting information

There is nothing in pm2 report.

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 with the pm2 status command and an ecosystem file using uid and gid; reproduce the report while running the daemon as root. Trace how the status user column is produced and confirm that it displays the configured username rather than ,,,.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.