Skip to content

Instantly share code, notes, and snippets.

@luhn
Created July 18, 2014 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luhn/db8ad9921d32b0786865 to your computer and use it in GitHub Desktop.
Save luhn/db8ad9921d32b0786865 to your computer and use it in GitHub Desktop.
txpostgres tracebacks
Traceback (most recent call last):
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/python/log.py", line 88, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
why = selectable.doRead()
File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 675, in doRead
_PollingMixin.doRead(self)
File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 196, in doRead
self.continuePolling()
File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 168, in continuePolling
state = self.pollable().poll()
psycopg2.OperationalError:
Traceback (most recent call last):
File "/home/redacted/env/local/lib/python2.7/site-packages/redacted-0.1.0-py2.7.egg/redacted/cron/__init__.py", line 126, in _run
""", (datetime, datetime))
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 577, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 329, in finishedAndPassthrough
self._connection.cursorFinished(self)
File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 668, in cursorFinished
self.reactor.addReader(self)
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 271, in addReader
EPOLLIN, EPOLLOUT)
File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 257, in _add
self._poller.register(fd, flags)
ValueError: file descriptor cannot be a negative integer (-1)
Traceback (most recent call last):
File "/home/redacted/env/local/lib/python2.7/site-packages/redacted-0.1.0-py2.7.egg/redacted/cron/__init__.py", line 126, in _run
""", (datetime, datetime))
ConnectionDead
Traceback (most recent call last):
  File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/reconnection.py", line 128, in callChecking
    d = defer.maybeDeferred(method, *args, **kwargs)
  File "/home/redacted/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 521, in _runQuery
    d = c.execute(*args, **kwargs)
  File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 303, in execute
    return self._doit('execute', query, params)
--- <exception caught here> ---
  File "/home/redacted/env/local/lib/python2.7/site-packages/txpostgres/txpostgres.py", line 320, in _doit
    getattr(self._cursor, name)(*args, **kwargs)
  File "/home/redacted/env/local/lib/python2.7/site-packages/psycopg2/extras.py", line 120, in execute
    return super(DictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: execute cannot be used while an asynchronous query is underway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment