Hi there,

I'm trying to debug a ConnectionStateError that my pyramid_zodb app
occasionally shows. I could not find any condition that causes the
error so it looks like it is occuring randomly. The only thing that is
common to all occurences is that the error happens during
authentication.

Is it possible the database connection from the app to the ZODB is
closed when the authentication happens?

Many thanks for your help in adavance,
Sascha


2012-04-26 16:35:04,709 ERROR [ZODB.Connection][worker 9] Shouldn't
load state for 0x04 when the connection is closed
----------------------------------------
Exception happened during processing of request from ('127.0.0.1',
40553)
Traceback (most recent call last):
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/Paste-1.7.5.1-
py2.7.egg/paste/httpserver.py", line 1068, in
process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python2.7/SocketServer.py", line 323, in
finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python2.7/SocketServer.py", line 639, in
__init__
    self.handle()
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/Paste-1.7.5.1-
py2.7.egg/paste/httpserver.py", line 442, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/usr/local/lib/python2.7/BaseHTTPServer.py", line 343, in
handle
    self.handle_one_request()
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/Paste-1.7.5.1-
py2.7.egg/paste/httpserver.py", line 437, in handle_one_request
    self.wsgi_execute()
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/Paste-1.7.5.1-
py2.7.egg/paste/httpserver.py", line 287, in wsgi_execute
    self.wsgi_start_response)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid-1.2.3-
py2.7.egg/pyramid/router.py", line 176, in __call__
    response = self.handle_request(request)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid-1.2.3-
py2.7.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid_tm-0.3-
py2.7.egg/pyramid_tm/__init__.py", line 61, in tm_tween
    response = handler(request)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid-1.2.3-
py2.7.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid-1.2.3-
py2.7.egg/pyramid/config/views.py", line 185, in _secured_view
    result = _permitted(context, request)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid-1.2.3-
py2.7.egg/pyramid/config/views.py", line 181, in _permitted
    principals = self.authn_policy.effective_principals(request)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/
pyramid_multiauth-0.1.2-py2.7.egg/pyramid_multiauth/__init__.py", line
85, in effective_principals
    principals.update(policy.effective_principals(request))
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/pyramid-1.2.3-
py2.7.egg/pyramid/authentication.py", line 84, in effective_principals
    groups = self.callback(userid, request)
  File "/srv/sdtrptdev/sdtrpt/sdtrpt/__init__.py", line 46, in
callback
    return SECURITYMANAGER.getUserPrincipals(userid)
  File "/srv/sdtrptdev/env/lib/python2.7/site-packages/ZODB3-3.10.5-
py2.7-linux-x86_64.egg/ZODB/Connection.py", line 857, in setstate
    raise ConnectionStateError(msg)
ConnectionStateError: Shouldn't load state for 0x04 when the
connection is closed

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to