[Zope3-Users] Problems with Zope 3.2.0b3 on Linux

Jim Fulton jim at zope.com
Wed Jan 4 19:09:35 EST 2006


Marco Groppo wrote:
> I forgot to say that some times I get this error when I try to access a
> ZODB object (it doesn't matter what kind of object):
> 
> +++
> ERROR ZODB.Connection Shouldn't load state for 0x36 when the connection
> is closed
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/threading.py", line 422, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File
> "/home/marco/apps/zope3.2/lib/python/twisted/python/threadpool.py", line
> 149, in _worker
>     context.call(ctx, function, *args, **kwargs)
>   File "/home/marco/apps/zope3.2/lib/python/twisted/python/context.py",
> line 59, in callWithContext
>     return self.currentContext().callWithContext(ctx, func, *args, **kw)
>   File "/home/marco/apps/zope3.2/lib/python/twisted/python/context.py",
> line 37, in callWithContext
>     return func(*args,**kw)
> --- <exception caught here> ---
>   File "/home/marco/apps/zope3.2/lib/python/twisted/web2/wsgi.py", line
> 139, in run
>     result = self.application(self.environment, self.startWSGIResponse)
>   File "/home/marco/apps/zope3.2/lib/python/zope/app/wsgi/__init__.py",
> line 49, in __call__
>     request = self.requestFactory(environ['wsgi.input'], environ)
>   File
> "/home/marco/apps/zope3.2/lib/python/zope/app/publication/httpfactory.py", line 62, in __call__
>     request_class, publication_class = chooseClasses(method, env)
>   File
> "/home/marco/apps/zope3.2/lib/python/zope/app/publication/httpfactory.py", line 34, in chooseClasses
>     request_class, publication = factory()
>   File
> "/home/marco/apps/zope3.2/lib/python/zope/app/publication/requestpublicationfactories.py", line 79, in __call__
>     request_class = component.queryUtility(
>   File "/home/marco/apps/zope3.2/lib/python/zope/component/__init__.py",
> line 260, in queryUtility
>     return getSiteManager(context).queryUtility(interface, name,
> default)
>   File "/home/marco/apps/zope3.2/lib/python/ZODB/Connection.py", line
> 729, in setstate
>     raise ConnectionStateError(msg)
> ZODB.POSException.ConnectionStateError: Shouldn't load state for 0x36
> when the connection is closed
> +++
> 
> ...and then, if I reload the page, the problem can magically disappear,
> and if I request the view another time I can get the error again, and so
> on and so on... it seems to me that the behaviour is totally random.
> 
> Does anybody know what's going on?

For some reason, a database connection wasn't closed properly.

Is there anything special about your setup?  Is this a plain
Zope install?  Are you using ZEO?  Are you using a single database?

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-users mailing list