13👍
Check your processes. You may have had an unclean exit, leaving a zombie’d process behind that’s still running.
47👍
Just type
sudo fuser -k 5000/tcp
.This will kill all process associated with port 5000
- [Django]-How to produce a 303 Http Response in Django?
- [Django]-Rendering a value as text instead of field inside a Django Form
- [Django]-Malformed Packet: Django admin nested form can't submit, connection was reset
15👍
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
- [Django]-How can I get MINIO access and secret key?
- [Django]-Django: guidelines for speeding up template rendering performance
- [Django]-Django south migration – Adding FULLTEXT indexes
10👍
I know that if you’re running MacOS, you may see "ControlCe" listed as the process. You can kill it, but it will just restart. After some searching, I found that the control center uses 5000 to listen for Airplay Receiver requests. You can disable this by System Preferences>Sharing>Airplay Receiver.
- [Django]-Difference between User.objects.create_user() vs User.objects.create() vs User().save() in django
- [Django]-Why is factory_boy superior to using the ORM directly in tests?
- [Django]-Django dynamic forms – on-the-fly field population?
7👍
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`
- [Django]-Django connection to postgres by docker-compose
- [Django]-Django – Website Home Page
- [Django]-Django filter JSONField list of dicts
3👍
Find the orphaned process:
ps -ax |grep gunicorn
11111 ?? 0:03.44 /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python /usr/local/bin/gunicorn -b :5000 main:app
Locate the Process ID (the number in the first column of the results)
kill 11111
Replace 11111 with the Process ID
- [Django]-Django south migration – Adding FULLTEXT indexes
- [Django]-Cannot access django app through ip address while accessing it through localhost
- [Django]-Django multiple template inheritance – is this the right style?