-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Startup is not starting pm2 daemon and saved process #1055
Comments
How have you generated your startup script (command)? |
root user, |
tried the following also. |
Are you sure that the user that should run pm2 is not ec2-user instead? |
yes this user is supposed to to run the process, iits default sudoer on AWS ec2 instance, there is not other user i have created. |
Can you tell me the value of the PM2_HOME value in the /etc/init.d/pm2-init.sh ? (https://github.com/Unitech/PM2/blob/master/lib/scripts/pm2-init-amazon.sh#L27) |
its showing
|
its not in HOME dir of ec2-user, but in root user (i setup pm2 as user-data script on ec2 launch) |
I also have this problem although with ubuntu (aws instance) with user
somehow running
|
I had this issue too, wanting to run pm2 as root. Here's what I did (warning: know what you're doing while root! insert root precautions here!!):
that resolved it. i definitely ran the |
If you would change |
what about the
lockfile that only root has access ? |
this issue and #889 are same. |
I encounter the same problem. |
Same here. I have a
Ow... Note that this |
I also had this issue, @rbudiharso fix worked for me. Thanks! pm2 0.15.7 |
any updates on this? |
@rbudiharso that did work for me too! |
It doesn't work on Centos 7. |
I get the same on ubuntu as root: pm2 startup ubuntu pm2 list shows no apps when the server returns. |
try to:
|
Same issue here. I ended up using a simple start bash script and an extra line in the crontab as a temporary fix. |
For me it worked when doing |
I had the same problem on ubuntu 14.04. Fixed it by running "sudo pm2 startup -u myusername". Then "sudo pm2 save". And "sudo shutdown -r now" - of course. |
Hi, sudo pm2 startup "matt212" sudo shutdown -r now |
I modified init.d script not to dump processes while stopping and it works for me: stop() { |
great it worked like charmed ! @artursudnik |
duplicate #1035 |
I have this issue when i reboot my server pm2 starts but with no processes I must run |
@benishak make sure you do |
@soyuka but people here suggested to comment the I thought about commenting |
Indeed, but if there is no dump, |
The change here is a breaking a normal server reboot. Really bad "fix" |
the init script is overwriting my |
i think if you use ubuntu and you installed pm2 as a normal user not a root user, it will fail |
I did install pm2 on ubuntu as the vagrant user (not root). I will try to install as root and see if that works. |
@jar349 Did installing as root work? How does one uninstall pm2? How does one install pm2 as root? Thanks. |
|
Hello, so what is the best way to solve the issue because i am facing this problem and find yours comments ?? please help me |
I confirm the solution of @DeveloperAlex in his comment for MacOS. |
i installed pm2 as global package on ubuntu (aws instance).
Created startup, ran a nodejs process, did pm2 save. Rebooted my instance, logged in and did pm2 list
but process was not in, instead it show msg like
i tried many times, tried on Amazon Linux instance also, but no luck. Is there some existing issue ?
am i missing something(i guess i did steps needed) ?
Any help to get it working smoothly?
The text was updated successfully, but these errors were encountered: