-
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
"pm2 update" never ends when running it from a bash script #5000
Comments
Happening to me too. I have to kill the older process and the update then proceeds. It's like the older process is blocking the update. Super annoying when you have 1000's of machines. Somehow, on the same underlying image, it works occasionally, but it gets stuck on most. |
I have the same issue, I used pm2 with
|
I have this problem too. Is there a workaround to use |
I had same problem to workaround don't use pm2 update instead of that just use this approach will be lengthy but will be alternative for pm2 update |
What's going wrong?
I'm running a script that install/updates many things including PM2, but when I try to update it. the script just freezes and I had to manually terminate it.
However, when I run the same commands directly on the terminal, it works fine.
How could we reproduce this issue?
Create a script with the following content:
And run it from the console
sudo bash that_script.sh
Having pm2 already installed, we update it and we end up having a different version on the local computer and on memory.
the pm2 update doesn't finish.
Supporting information
Does anybody know why this is happening?
Thanks in advance!!
The text was updated successfully, but these errors were encountered: