django - Ubuntu/ Virtualenv/ Python3.4/ Gunicorn/ Nginx gunicorn ERROR: Connection in use: ('0.0.0.0', 8000) -


i have looked across internet, including stackoverflow, , have seen similar problems, after several hours stumped.

i can add in information thinks might of use. on digitalocean droplet ubuntu14.0.4, in virtualenv named 'sod22', python3.4, django1.8, gunicorn19.4.5, nginx1.4.6 here error output in bash:

(sod22) root@shapeofdata2:~/.virtualenvs/sod22# gunicorn --bind    0.0.0.0:8000 sod22.wsgi:application [2016-01-27 02:25:18 -0500] [25609] [info] starting gunicorn 19.4.5 [2016-01-27 02:25:18 -0500] [25609] [error] connection in use: ('0.0.0.0', 8000) [2016-01-27 02:25:18 -0500] [25609] [error] retrying in 1 second. [2016-01-27 02:25:19 -0500] [25609] [error] connection in use: ('0.0.0.0', 8000) [2016-01-27 02:25:19 -0500] [25609] [error] retrying in 1 second. [2016-01-27 02:25:20 -0500] [25609] [error] connection in use: ('0.0.0.0', 8000) [2016-01-27 02:25:20 -0500] [25609] [error] retrying in 1 second. [2016-01-27 02:25:21 -0500] [25609] [error] connection in use: ('0.0.0.0', 8000) [2016-01-27 02:25:21 -0500] [25609] [error] retrying in 1 second. [2016-01-27 02:25:22 -0500] [25609] [error] connection in use: ('0.0.0.0', 8000) [2016-01-27 02:25:22 -0500] [25609] [error] retrying in 1 second. [2016-01-27 02:25:23 -0500] [25609] [error] can't connect ('0.0.0.0', 8000) 

i have checked processes might running on port 8000 using netstat:

(sod22) root@shapeofdata2:~/.virtualenvs/sod22# netstat -tulpn active internet connections (only servers) proto recv-q send-q local address           foreign address         state       pid/program name tcp        0      0 0.0.0.0:80              0.0.0.0:*               listen      16069/nginx      tcp        0      0 0.0.0.0:22              0.0.0.0:*               listen      3411/sshd        tcp        0      0 127.0.0.1:5432          0.0.0.0:*               listen      14574/postgres   tcp        0      0 127.0.0.1:8000          0.0.0.0:*               listen      25638/python3.4  tcp6       0      0 :::80                   :::*                    listen      16069/nginx      tcp6       0      0 :::22                   :::*                    listen      3411/sshd     

i have killed gunicorn processes, same behavior. however, different command console seems 'lock up' , there still no output web page:

(sod22) root@shapeofdata2:~/.virtualenvs/sod22# gunicorn sod22.wsgi:application [2016-01-27 02:27:17 -0500] [25638] [info] starting gunicorn 19.4.5 [2016-01-27 02:27:17 -0500] [25638] [info] listening at: http://127.0.0.1:8000 (25638) [2016-01-27 02:27:17 -0500] [25638] [info] using worker: sync [2016-01-27 02:27:17 -0500] [25641] [info] booting worker pid: 25641 

at point there no cursor try else, without killing console @ point.

per sayse's advice, checked out processes , results after killing processes. maybe python using port:8000 , continuously refreshing after killed? see below, note after process killed, check again, , running again:

(sod22) root@shapeofdata2:~/.virtualenvs/sod22# netstat -tulpn active internet connections (only servers) proto recv-q send-q local address           foreign address         state       pid/program name tcp        0      0 0.0.0.0:80              0.0.0.0:*               listen      16069/nginx      tcp        0      0 0.0.0.0:22              0.0.0.0:*               listen      3411/sshd        tcp        0      0 127.0.0.1:5432          0.0.0.0:*               listen      14574/postgres   tcp        0      0 127.0.0.1:8000          0.0.0.0:*               listen      25638/python3.4  tcp6       0      0 :::80                   :::*                    listen      16069/nginx      tcp6       0      0 :::22                   :::*                    listen      3411/sshd        (sod22) root@shapeofdata2:~/.virtualenvs/sod22# kill 25638 (sod22) root@shapeofdata2:~/.virtualenvs/sod22# netstat -tulpn active internet connections (only servers) proto recv-q send-q local address           foreign address         state       pid/program name tcp        0      0 0.0.0.0:80              0.0.0.0:*               listen      16069/nginx      tcp        0      0 0.0.0.0:22              0.0.0.0:*               listen      3411/sshd        tcp        0      0 127.0.0.1:5432          0.0.0.0:*               listen      14574/postgres   tcp        0      0 127.0.0.1:8000          0.0.0.0:*               listen      25638/python3.4  tcp6       0      0 :::80                   :::*                    listen      16069/nginx      tcp6       0      0 :::22                   :::*                    listen      3411/sshd  

thanks in advance. surely i'm not 1 has experienced this!


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -