-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
State is now: Stopped #69
Comments
I have the same issue in a Windows Server 2019 |
Restarting the computer solved this issue for me, this problem happened after I installed pm2-installer, removed it and then installed it again |
Same here. |
Same here.. |
for those who are experiencing the problem of the service stopped, go to Services > in the Log On tab, Set as local system account. |
@Sandro-Sousa - Tried changing the service to local system account. Then the service was able to start. However after a reboot of the system, when I try to perform a pm2 list: My understanding of the service is to provide a restart of pm2 after a reboot - currently I can't get this to work. C:\Users\zenwa>pm2 list Error: connect EPERM //./pipe/rpc.sock |
After reboot, if I shut the service down, and then issue the Pm2 list command manually: C:\Users\zenwa>pm2 list Then PM2 starts successfully without the processes... At this point if I restart the service, the expected processes running under pm2 also come back. |
you need to give admin permissions to access the folder where pm2 was installed globally, follow this tutorial:https://blog.cloudboost.io/nodejs-pm2-startup-on-windows-db0906328d75 |
if you already have the pm2 installer disregard the last two steps about the other tools |
@Sandro-Sousa - just discovered the problem(FYI for NVM users): |
When the PM2 service is stopped and you run the command line "pm2 start myapp", this starts the pm2 daemon. If you try to start the PM2 service while running the daemon the service would keep crashing. For Windows, you have to do the following steps in order: This should start the service, register and run your app. Any further restarts should start your pm2 windows service as expected. |
Adding the |
thank you, this was the problem for me too, just reinstalled nvm to c:/program files and it worked fine 👍 |
After running this on windows server 2022 (including the configure options), all I get is: State is now: Stopped printing endlessly to the powershell window. I tried to manually start the PM2 process, but it won't start.
The text was updated successfully, but these errors were encountered: