Closed pengkang12 closed 6 years ago
Please post your relevant uwsgi config
this is my uwsgi config file. Thanks.
[uwsgi] enable-threads = true chdir=/home/django/project/myproject socket=127.0.0.1:3031 http-socket=:8000 env = DJANGO_SETTINGS_MODULE=myproject.settings.development module=myproject.wsgi:application master=True pidfile=/home/django/project/project-master.pid vacuum=True max-requests=5000 ;daemonize=/root/gitrepo/cooper/uwsgi.log not useful while using supervisor stats=127.0.0.1:9191 memory-report=True
You are exposing stats as tcp but you are telling uwsgitop it's http :)
$ uwsgitop http://127.0.0.1:9191
Traceback (most recent call last): File "/usr/local/bin/uwsgitop", line 167, in
js = r.read().decode('utf8', 'ignore')
File "/usr/lib/python2.7/socket.py", line 355, in read
data = self._sock.recv(rbufsize)
File "/usr/lib/python2.7/httplib.py", line 612, in read
s = self.fp.read(amt)
File "/usr/lib/python2.7/httplib.py", line 1416, in read
return s + self._file.read(amt - len(s))
File "/usr/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
error: [Errno 104] Connection reset by peer
My runtime is python2.7.12 so how to fix it, thanks.