xrmx / uwsgitop

top-like app for monitoring uWSGI instances
MIT License
496 stars 77 forks source link

Connection reset by peer after ~5 seconds #45

Closed crdoconnor closed 7 years ago

crdoconnor commented 7 years ago

Initially the server runs fine but I get a connection reset by peer whenever I refresh a page on the server:


Traceback (most recent call last):
  File "/bin/uwsgitop", line 167, in <module>
    js = r.read().decode('utf8', 'ignore')
  File "/usr/lib64/python2.7/socket.py", line 351, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib64/python2.7/httplib.py", line 602, in read
    s = self.fp.read(amt)
  File "/usr/lib64/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
error: [Errno 104] Connection reset by peer

uwsgi version 2.0.14 python version 2.7.5 All running on CentOS 7.2.1511 (Core)

crdoconnor commented 7 years ago

Problem caused by not running uwsgi with --stats-http switch in the end.