[Bug 1554964] [NEW] gunicorn raises exception due to gevent change in 1.1b1
James Henstridge
james.henstridge at canonical.com
Wed Mar 9 08:28:38 UTC 2016
Public bug reported:
I was trying to get a Python project that uses gunicorn running on
Xenial, and hit the following error:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 498, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 153, in _close_when_done
return handle(*args)
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 945, in handle
handler.handle()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 340, in handle
result = self.handle_one_request()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 500, in handle_one_request
self.handle_one_response()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 693, in handle_one_response
self.log_request()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 228, in log_request
self.server.log.access(resp, req_headers, self.environ, response_time)
AttributeError: 'LoggingLogAdapter' object has no attribute 'access'
After searching around for others with this problem, I found the
following upstream gevent bug report:
https://github.com/gevent/gevent/issues/663
It looks like this fix was applied in 1.1b6, and applying the same
change to pywsgi.py locally was enough to get gunicorn running again.
The final 1.1.0 release was recently released, so it would be nice to
upgrade to that version. If that isn't possible, could we get the patch
from that bug report applied?
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: python-gevent 1.1~b1-0ubuntu2 [modified: usr/lib/python2.7/dist-packages/gevent/pywsgi.py]
ProcVersionSignature: Ubuntu 4.4.0-4.19-generic 4.4.1
Uname: Linux 4.4.0-4-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 9 16:08:57 2016
InstallationDate: Installed on 2013-10-29 (861 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: python-gevent
UpgradeStatus: Upgraded to xenial on 2015-12-22 (78 days ago)
** Affects: python-gevent (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-gevent in Ubuntu.
https://bugs.launchpad.net/bugs/1554964
Title:
gunicorn raises exception due to gevent change in 1.1b1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-gevent/+bug/1554964/+subscriptions
More information about the Ubuntu-server-bugs
mailing list