Skip to content
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

Unable to (re)start errored process: Process <id> not found #1983

Closed
raine opened this issue Feb 29, 2016 · 25 comments
Closed

Unable to (re)start errored process: Process <id> not found #1983

raine opened this issue Feb 29, 2016 · 25 comments

Comments

@raine
Copy link
Contributor

raine commented Feb 29, 2016

screen shot 2016-02-29 at 12

Seems like a bug to me.

@Unitech
Copy link
Owner

Unitech commented Feb 29, 2016

Weird, just tried here, everything is fine,
Can you try pm2 restart <app_name> ?

@raine
Copy link
Contributor Author

raine commented Feb 29, 2016

Same thing.

@raine
Copy link
Contributor Author

raine commented Feb 29, 2016

I still have the process in errored state if you want me to dig up something that would help in debugging.

@Unitech
Copy link
Owner

Unitech commented Feb 29, 2016

pm2 restart 7 ?

@raine
Copy link
Contributor Author

raine commented Feb 29, 2016

Same thing.

@Unitech
Copy link
Owner

Unitech commented Feb 29, 2016

pm2 update

@raine
Copy link
Contributor Author

raine commented Feb 29, 2016

That made all processes restart and that particular process is also online now.

@Unitech
Copy link
Owner

Unitech commented Feb 29, 2016

and if you try again pm2 restart with an id or application name, does it work?

@raine
Copy link
Contributor Author

raine commented Mar 9, 2016

I got into this state again, one of the processes got into errored state and I couldn't restart it. pm2 update fixed it but it requires manual work and monitoring so it's not really an acceptable solution I'm afraid.

@Unitech
Copy link
Owner

Unitech commented Apr 1, 2016

closing in favor of #2061

@Unitech Unitech closed this as completed Apr 1, 2016
@jskripnik
Copy link

pm2 update - helped for me!) thank you!

@majimboo
Copy link

I'm experiencing this now. On a live server. Will doing pm2 update restart all services?

@rebeccacaroline
Copy link

@majimboo it just did for me

@AnujPancholi
Copy link

Got this error once - process stopped and just wouldn't start up again. Turns out that there were too many background processes running on the server that were hogging too much memory. Killed them, started my process up again, and it worked.

@indrajitkreative
Copy link

pm2 update

worked for me.thanks

@akshay-squareboat
Copy link

pm2 update

worked

@imjeffparedes
Copy link

Still having issue on v4. pm2 update is not an acceptable solution as it restarted all of our services.

@michel-el-hajj
Copy link

Still having the same issue in v4.5.4 and it's even worse. I found that my apps are running in the background and pm2 status shows the apps as stopped.
pm2 update removed this error but started to have address already in use so i had to kill the pid of the background process, then reloaded my apps and everything is back to normal.
i am upgrading to 5.1.0 hoping that this issue is fixed.

@JaivalBhup
Copy link

I am still having the same issue in v5.1.0. Restarting the service says process not found. Only pm2 update works and its not an reliable solution.
Any help is appreciated.

@pujoljulia
Copy link

Same here - you really need to have a look into this. It's a very serious thing that process stops out of nowhere.

@Hertzogas
Copy link

I have a same issue 5.1.0

@JaivalBhup
Copy link

I solved the issue.
The problem is environment variables. The pm2 variables might be overwritten or changed.

@JaivalBhup
Copy link

add to system variable " %SystemRoot%/System32/Wbem"

This should solve the problem.

@n0099
Copy link

n0099 commented Feb 7, 2023

For me this happens after I've changed the username that pm2 is running

killall pm2
cd /home/newusername/.pm2
sed -i 's/oldusername/newusername/' dump.pm2
pm2 resurrect
pm2 update
pm2 ls
pm2 save

@thedevanand
Copy link

Is there any update on this? This issue is still happening. Somehow I got a hint that issue might be a bugged fs library so I upgraded node version to latest. And it did indeed work but it's not anymore. I've tried installing various pm2 versions as well but all of them have errors/deprecated libraries. This is happening on a windows server, never faced any issue on linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests