Nodes: forever not responding

So, I know this wasnโ€™t the smartest idea, but I updated nodejs to version 0.10 with "n" while the server was still working forever. Now when i try to enter

$ forever list 

or

 $ forever stopall 

or

 $ forever restartall 

he just does nothing. Anyway -

 $ forever --help 

Help menu is displayed, but all actions will not work. And my nodejs server is still responding!

Is there a way that I can kill forever with fire?

+7
source share
3 answers

Ok with litte, I solved the problem:

Just enter

 $ ps aux | less 

and find all the processes that should do something with nodejs and kill them with

 $ kill -9 *PID HERE* 
0
source

you can use

 sudo killall node 

OR

 sudo forever stopall 

If this doesn't work either, just use

 sudo kill -9 $(ps aux | grep 'node' | awk '{print $2}') 

Hope this works

+2
source

I saw this problem in monitoring daemons in general, for example, forever and hotnode. As you pointed out, you can grep pids of lost processes. I went so far as to add the killall node to my bootstrap script, actually (a little less verbose than your solution, and a bit overkill, but it effectively solved the problem).

0
source

All Articles