Unitech / Unitech/pm2

Cannot specify PORT related config values from ENV on Windows

Open
#5,930 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 following environment variables are not respected on Windows while they are on other platforms:

  • PM2_DAEMON_RPC_PORT
  • PM2_DAEMON_PUB_PORT
  • PM2_INTERACTOR_RPC_PORT

Non-privileged (Admin) user accounts on Windows cannot write to named pipes which can disrupt some PM2 operations under such accounts. By specifying a port the problem is sidestepped, but currently that can't be done as the values are overwritten right after assigning from ENV.

How could we reproduce this issue?

Run on Windows and the relevant observe config values.

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

No source file or test is named. Start by locating the configuration initialization for PM2_DAEMON_RPC_PORT, PM2_DAEMON_PUB_PORT, and PM2_INTERACTOR_RPC_PORT, then reproduce on Windows with those environment variables set; done means the configured values remain available instead of being overwritten.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.