dcramer/sentry — Issue #362: DatabaseError: execute cannot be used while an asynchronous query is underway
Author: mbaechtold
Created: 2012-02-24 12:20:58+00:00
State: open

I'm running PostgreSQL 8.4 on Debian 6 (Squeeze). Sentry is running standalong (through supervisor).
Sentry is running in standard http mode (no queue).

Unable to record event: execute cannot be used while an asynchronous query is underway
Traceback (most recent call last):
File "/path/to/sentry/lib/python2.6/site-packages/raven/contrib/django/client.py", line 117, in send
return self.send_integrated(kwargs)
File "/path/to/sentry/lib/python2.6/site-packages/raven/contrib/django/client.py", line 126, in send_integrated
return Group.objects.from_kwargs(**kwargs)
File "/path/to/sentry/lib/python2.6/site-packages/django/db/transaction.py", line 217, in inner
res = func(*args, **kwargs)
File "/path/to/sentry/lib/python2.6/site-packages/sentry/manager.py", line 216, in from_kwargs
project = Project.objects.get(pk=project)
File "/path/to/sentry/lib/python2.6/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/path/to/sentry/lib/python2.6/site-packages/django/db/models/query.py", line 344, in get
num = len(clone)
File "/path/to/sentry/lib/python2.6/site-packages/django/db/models/query.py", line 82, in __len__
self._result_cache = list(self.iterator())
File "/path/to/sentry/lib/python2.6/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/path/to/sentry/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/path/to/sentry/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/path/to/sentry/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: execute cannot be used while an asynchronous query is underway
2012-02-18 11:06:07 [20506] [ERROR] WORKER TIMEOUT (pid:20516)
None
WORKER TIMEOUT (pid:20516)
None
2012-02-18 11:06:07 [25397] [INFO] Booting worker with pid: 25397