pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Socket.io instance will not be stopped after I run pm2 stop command

Open zhfchen opened this issue 13 years ago • 6 comments

My web server uses socket.io. After I run pm2 stop command, the pm2 process is still occupying the port I used. I have to kill the pm2 process, which also stops other scripts...

zhfchen avatar Oct 19 '13 03:10 zhfchen

Are you running node 0.10.x ?

https://github.com/Unitech/pm2/issues/74

https://github.com/Unitech/pm2#a21

Unitech avatar Oct 19 '13 13:10 Unitech

Yes, the version is v0.10.12

zhfchen avatar Oct 21 '13 02:10 zhfchen

And the port can be freed if I use node-forever.

zhfchen avatar Oct 21 '13 02:10 zhfchen

I use the latest version of pm2 and run the app with -x option. It works, but it seems pm2 list and stop command are not functionable. The error is: method "getMonitorData" is not existed.

zhfchen avatar Oct 21 '13 03:10 zhfchen

do a pm2 kill (you still have the old pm2 version in background) or kill it via cli. after tell if everything is okay with the fork

Unitech avatar Oct 21 '13 09:10 Unitech

Yes, everything works now!

zhfchen avatar Oct 21 '13 09:10 zhfchen