Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Close Socket in Django - Error: [Errno 48] Address already in use

Tags:

python

django

I accidentally created an infinite loop on an api call. It got out of hand and I had to shut it down [control + C].

now when I do

$ python manage.py runserver

I get

Validating models...

0 errors found
August 08, 2013 - 12:43:41
Django version 1.5.1, using settings 'summertime.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Error: [Errno 48] Address already in use

Does anyone know how to reset the socket? Can I just shut down my computer

like image 298
IdeoREX Avatar asked Aug 08 '13 19:08

IdeoREX


1 Answers

to see if you already have runserver going use

ps -ef | grep runserver

to kill it use

pkill -9 -f runserver

(pkill kills things by name)

like image 125
Denis Kanygin Avatar answered Oct 02 '22 13:10

Denis Kanygin