-
-
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
PM2 service cannot be restarted after Node.js upgrade #65
Comments
Same here. I can't start a windows service. I get this message: And have this in log fie:
This happens to on Node.js versions 16.15.0 and 15.14.0 |
I have tried again using the latest PM2-installer version (3.4.0). Still im not able to start the PM2 service. If i try from Windows services it says that the PM2 service could not be started on the Local computer. There aren't any logs in the Event Viewer, btw from pm2.wrapper.log file that i found in C:\ProgramData\pm2\service\daemon i can see: 2022-06-03 11:53:59 - Failed to log event in Windows Event Log: Starting C:\Program Files\nodejs\node.exe --harmony C:\ProgramData\npm\npm\node_modules\node-windows\lib\wrapper.js --file C:\ProgramData\pm2\service\index.js --scriptoptions= --log "PM2 wrapper" --grow 0.25 --wait 1 --maxrestarts 3 --abortonerror n --stopparentfirst true; Reason: Before doing npm run setup command naturally i executed the commands npm run configure and npm run configure-policy successfully. I then tried pm2-service-install but using the fork from @innomizetech which is from 2019 and has no bugs, it works perfectly following from instructions https://stackoverflow.com/questions/42758985/windows-auto-start-pm2-and-node-apps and it works without any issues. |
Description
I have upgraded Node.js for Windows to latest current stable version (16.15.0), updated PM2 and the PM2 Windows Service cannot be restarted.
Steps to Reproduce
npm install -g npm
npm install pm2 -g
and thenpm2 update
Additional info
After i did the steps 1 to 4 i also did the removal procedure and deconfigure of pm2-installer and did it again the setup and configure, the service will be installed but then don't start, it says "State is now: Stopped" forever in a loop
Environment
Running on: 29/4/2022, pm2-installer 3.3.2 with node v16.15.0 and npm 8.8.0 on win32-10.0.17763.
Machine is Windows Server 2019 Standard.
The text was updated successfully, but these errors were encountered: