Skip to content

Cannot specify PORT related config values from ENV on Windows #5930

@doesdev

Description

@doesdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions