Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created November 9, 2011 22:05
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 oberstet/1353252 to your computer and use it in GitHub Desktop.
Save oberstet/1353252 to your computer and use it in GitHub Desktop.
tracebacks1
oberstet@wwwtavendo: ~/txpostgres/testing $ python txpostgres_error.py -n db1 -d tavendo -u tavendoweb -p correctpw
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
why = getattr(selectable, method)()
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 556, in doRead
_PollingMixin.doRead(self)
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 136, in doRead
self.continuePolling()
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 108, in continuePolling
state = self.pollable().poll()
psycopg2.ProgrammingError: relation "nonexistent" does not exist
LINE 1: select * from nonexistent
^
<class 'psycopg2.ProgrammingError'> no results to fetch
None
None
oberstet@wwwtavendo: ~/txpostgres/testing $ python txpostgres_error.py -n db1 -d tavendo -u tavendoweb -p badpassword
<class 'psycopg2.OperationalError'> asynchronous connection failed
None
None
<class 'psycopg2.OperationalError'> asynchronous connection failed
None
None
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/internet/defer.py", line 286, in addCallbacks
self._runCallbacks()
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/internet/defer.py", line 542, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/internet/base.py", line 426, in _continueFiring
callable(*args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/internet/base.py", line 615, in disconnectAll
failure.Failure(main.CONNECTION_LOST))
--- <exception caught here> ---
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 170, in connectionLost
self.continuePolling()
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 108, in continuePolling
state = self.pollable().poll()
psycopg2.OperationalError: asynchronous connection failed
oberstet@wwwtavendo: ~/txpostgres/testing $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment