Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

TypeError with self.server.log.access #314

migurski opened this Issue Mar 15, 2012 · 1 comment


None yet
3 participants

Upgraded gunicorn, seeing a lot of this in the log:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/gevent-0.13.6-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 390, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/gevent-0.13.6-py2.6-linux-x86_64.egg/gevent/wsgi.py", line 196, in handle
  File "/usr/local/lib/python2.6/dist-packages/gunicorn-0.14.1-py2.6.egg/gunicorn/workers/ggevent_wsgi.py", line 31, in handle
    super(WSGIHandler, self).handle()
  File "/usr/local/lib/python2.6/dist-packages/gevent-0.13.6-py2.6-linux-x86_64.egg/gevent/wsgi.py", line 134, in handle
  File "/usr/local/lib/python2.6/dist-packages/gevent-0.13.6-py2.6-linux-x86_64.egg/gevent/wsgi.py", line 64, in end
  File "/usr/local/lib/python2.6/dist-packages/gunicorn-0.14.1-py2.6.egg/gunicorn/workers/ggevent_wsgi.py", line 21, in log_request
    self.server.log.access(self, self.environ, response_time)
TypeError: access() takes exactly 5 arguments (4 given)
<Greenlet at 0x3078b78: <bound method WSGIServer.handle of <WSGIServer at 0x3109f10 fileno=6 address=>>(<http_request _obj=0x3a31950  "GET /terrain2/12/68)> failed with TypeError

@benoitc benoitc closed this in d6012fa Mar 16, 2012

Hi, I'm using gunicorn-0.14.1 currently and still got the same problem. Do I need to patch it myself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment