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 seems to die on ressurect #3150
Comments
About the |
PM2 was installed using
Placing pm2 at: /usr/local/bin/pm2 on our Ubuntu server
|
|
Sorry. PM2 was installed globally using npm.
we did not copy the files there or build a symbolic link. Just installed via NPM using the global parameter. |
We just had it happen again today in production.
Followed by a long list of:
Again it is attempting to find the PM2 executable in the root folder of our project, which to me indicates that the Watchdog.js file path to resurrect found here point to the project root through process.cwd(). Any thoughts on that theory? |
Which node.js version are you using? |
Ok I managed to reproduce the issue |
Fixed on recently published pm2 (2.7.0): $ npm install pm2@latest -g
$ pm2 update Let me know if there is any issue, |
Running a 4 process clustered instance with PM2. This morning we had a failure where the PM2 God deamon had died. Logging through the agent.log file i see these entries:
[WATCHDOG] PM2 is disconnected - Relaunching PM2
Followed by:
Error: Cannot find module '~/.pm2/logs/bin/pm2'
And ending with the following errors for a ECONNREFUSED for a keymetrics subdomain.
Looking at the Watchdog.js file i find that PM2 on ressurect is trying to run the following command:
'node ' + process.cwd() + '/bin/pm2 resurrect'
A command i honestly can't see should ever work as PM2 is not installed, atleast on a unix system under /bin/pm2 or in a projects root.
The text was updated successfully, but these errors were encountered: