Gunicorn Connection in Use: ('0.0.0.0', 5000)

Craig Cannon picture Craig Cannon · May 26, 2013 · Viewed 17.3k times · Source

I installed redis this afternoon and it caused a few errors, so I uninstalled it but this error is persisting when I launch the app with foreman start. Any ideas on a fix?

foreman start
22:46:26 web.1  | started with pid 1727
22:46:26 web.1  | 2013-05-25 22:46:26 [1727] [INFO] Starting gunicorn 0.17.4
22:46:26 web.1  | 2013-05-25 22:46:26 [1727] [ERROR] Connection in use: ('0.0.0.0', 5000)

Answer

Emil George James picture Emil George James · Jan 4, 2017

Just type

sudo fuser -k 5000/tcp

.This will kill all process associated with port 5000