Unitech / Unitech/pm2

Help and report commands don't work until the daemon starts

Open
#5,886 0 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

What's going wrong?

The help and report commands don't work unless the daemon is started. This seems like an odd choice, I would suggest to have the help command work without the daemon.

How could we reproduce this issue?

$ pm2 -h
[PM2] Spawning PM2 daemon with pm2_home=/home/kiro/.pm2
$

Supporting information

# Run the following commands
$ pm2 report

Can't run this command this is part of the issue:

$ sudo pm2 report
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
$
  • PM2 version: 5.4.2
  • Node version: 20.11.0

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

Reproduce the issue with pm2 -h and pm2 report before starting the daemon, using the command examples in the report. Trace the CLI entry points for these commands and verify that both complete without requiring the daemon, with tests covering the reported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.