Cannot specify PORT related config values from ENV on Windows
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_PORTPM2_DAEMON_PUB_PORTPM2_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
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
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