Question

I am getting this stacktrace after the server runs for some time 2014-02-12 23:42:14 [28012] [ERROR] Error handling request

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gunicorn/workers/async.py", line 39, in handle
    self.handle_request(req, client, addr)
  File "/usr/lib/pymodules/python2.7/gunicorn/workers/ggevent.py", line 86, in handle_request
    super(GeventWorker, self).handle_request(*args)
  File "/usr/lib/pymodules/python2.7/gunicorn/workers/async.py", line 74, in handle_request
    resp.write(item)
  File "/usr/lib/pymodules/python2.7/gunicorn/http/wsgi.py", line 255, in write
    self.send_headers()
  File "/usr/lib/pymodules/python2.7/gunicorn/http/wsgi.py", line 251, in send_headers
    util.write(self.sock, "%s\r\n" % "".join(tosend))
  File "/usr/lib/pymodules/python2.7/gunicorn/util.py", line 235, in write
    sock.sendall(data)
  File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 509, in sendall
    data_sent += self.send(_get_memory(data, data_sent), flags)
  File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 483, in send
    return sock.send(data, flags)
error: [Errno 32] Broken pipe

I am using gunicorn+nginx as a server. This is my gunicorn configuration:

workers = 5
worker_class = 'egg:gunicorn#gevent'
worker_connections = 1000
timeout = 3600
keepalive = 2

I am not even sure if this stacktrace is the actual cause of server hang as 2-3 other get requests are shown after this stacktrace (get requests which work normally when the server is started fresh) and no further logs are produced.

Also after some time I keep getting the error "included urlconf doesn't have any patterns in it". This does not happen when server is started fresh. And I've tested all the urls individually and they seem to work fine.

Any help would be appreciated.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top