wulczer/txpostgres — Issue #8: reactor errors upon backend terminating connection
Author: mtharp
Created: 2011-11-10 15:39:27+00:00
State: open

Seen on d13f8ff5381f83a3521fc5067f5f310eba73fe73

2011-11-10 15:18:30,171 ERROR twisted.internet.epollreactor : Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- ---
File "/usr/lib64/python2.6/site-packages/twisted/internet/epollreactor.py", line 217, in _doReadOrWrite
why = selectable.doRead()
File "/srv/code/products/rbuilder/x/include/txpostgres/txpostgres.py", line 556, in doRead
_PollingMixin.doRead(self)
File "/srv/code/products/rbuilder/x/include/txpostgres/txpostgres.py", line 136, in doRead
self.continuePolling()
File "/srv/code/products/rbuilder/x/include/txpostgres/txpostgres.py", line 108, in continuePolling
state = self.pollable().poll()
psycopg2.OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

2011-11-10 15:18:30,184 ERROR twisted.internet.epollreactor : Unhandled Error
Traceback (most recent call last):
File "/srv/code/products/rbuilder/x/include/rmake3/lib/daemon.py", line 357, in doWork
self.reactor.run()
File "/usr/lib64/python2.6/site-packages/twisted/internet/base.py", line 1162, in run
self.mainLoop()
File "/usr/lib64/python2.6/site-packages/twisted/internet/base.py", line 1174, in mainLoop
self.doIteration(t)
File "/usr/lib64/python2.6/site-packages/twisted/internet/epollreactor.py", line 197, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- ---
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib64/python2.6/site-packages/twisted/internet/epollreactor.py", line 230, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py", line 256, in _disconnectSelectable
selectable.connectionLost(failure.Failure(why))
File "/srv/code/products/rbuilder/x/include/txpostgres/txpostgres.py", line 170, in connectionLost
self.continuePolling()
File "/srv/code/products/rbuilder/x/include/txpostgres/txpostgres.py", line 108, in continuePolling
state = self.pollable().poll()
psycopg2.OperationalError: connection not open