Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run pm2 as another user #4262

Closed
ksemaev opened this issue Apr 27, 2019 · 2 comments
Closed

Cannot run pm2 as another user #4262

ksemaev opened this issue Apr 27, 2019 · 2 comments

Comments

@ksemaev
Copy link

ksemaev commented Apr 27, 2019

The same question was dicussed here #2033 and here #4058 , still problem exists in latest release 3.5.0:

Defining --uid gives must be an integer error

@ip:~# pm2 start /etc/price/ecosystem.config.js --uid 1009
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
[PM2] PM2 Successfully daemonized
[PM2][WARN] Applications exodus-pricing-server-backend not running, starting...
[PM2][ERROR] Process failed to launch The "options.uid" property must be of type int32. Received type string

Adding "user": "existing_username" to ecosystem config file, does not change anything, it still runs under root.

@SagePtr
Copy link
Contributor

SagePtr commented May 6, 2019

3.1 is the latest working minor version working to me. Later versions are broken.

UPD: bisected and found breaking commit: ccb35ef

@valette
Copy link

valette commented Jun 13, 2019

Hi, interested by this! Does it also fix #2957 i.e. does it include all group ids to processes?

Unitech added a commit that referenced this issue Oct 11, 2019
Fix: Allow usernames in uid/gid/user again (fixes #4058, #4262)
inerc pushed a commit to inerc/pm2 that referenced this issue Feb 11, 2020
inerc pushed a commit to inerc/pm2 that referenced this issue Feb 11, 2020
Fix: Allow usernames in uid/gid/user again (fixes Unitech#4058, Unitech#4262)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants