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

After some searching on the web, it looks like the following command is the best to use. This kills all of the processes running on port 5000 and appeared to work for me:

kill `lsof -i :5000`

Source (although a bit more shady than I prefer)


This should do the trick for you:

kill -9 $(lsof -i:5000 -t) 2> /dev/null

where 5000 is the port you want to kill


Just type

sudo fuser -k 5000/tcp

.This will kill all process associated with port 5000


Check your processes. You may have had an unclean exit, leaving a zombie'd process behind that's still running.