Adrián Ribao
unread,May 26, 2011, 6:20:09 PM5/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hello,
I'm testing gunicorn in the server, and I get this error in every
request:
Traceback (most recent call last):
File "project/env/lib/python2.6/site-packages/gunicorn/workers/
async.py", line 62, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "project/env/lib/python2.6/site-packages/django/contrib/
staticfiles/handlers.py", line 68, in __call__
return self.application(environ, start_response)
File "project/env/lib/python2.6/site-packages/django/core/handlers/
wsgi.py", line 273, in __call__
response = self.get_response(request)
File "project/env/lib/python2.6/site-packages/django/core/handlers/
base.py", line 168, in get_response
receivers =
signals.got_request_exception.send(sender=self.__class__,
request=request)
File "project/env/lib/python2.6/site-packages/django/dispatch/
dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "project/env/lib/python2.6/site-packages/django/db/
__init__.py", line 101, in _rollback_on_exception
transaction.rollback_unless_managed(using=conn)
File "project/env/lib/python2.6/site-packages/django/db/
transaction.py", line 133, in rollback_unless_managed
connection.rollback_unless_managed()
File "project/env/lib/python2.6/site-packages/django/db/backends/
__init__.py", line 193, in rollback_unless_managed
self._rollback()
File "project/env/lib/python2.6/site-packages/django/db/backends/
__init__.py", line 50, in _rollback
return self.connection.rollback()
Is working ok with mod_wsgi.
I'm using Debian 6.0 with Django 1.3, postgis for geodjango, the
latest stable version of gunicorn 0.12.1 and gevent. I've been trying
with a sync worker but I got the same error.
I have no idea what's wrong.
Any ideas?
Thank you!
Adrian