[ZODB-Dev] Weird ZODB error on Zope startup :-(

Tim Peters tim.peters at gmail.com
Fri Mar 24 12:15:01 EST 2006


[Chris Withers]
> Anyone ever see this error before and have a clue what it means?
>
> >>>   File "lib/python/Zope2/Startup/__init__.py", line 47, in startup
> >>>     starter.setConfiguration(cfg)
> >>>   File "lib/python/Zope2/App/startup.py", line 100, in startup
> >>>   File "lib/python/Products/ZODBMountPoint/Mount.py", line 226, in close
> >>>   File "lib/python/ZODB/Connection.py", line 240, in close
> >>> ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transaction

It means that some object in the Connection was in a modified state
when an attempt to close the Connection was made.  The current
transaction must be committed or aborted first -- ZODB can't guess
whether the pending changes should be committed or thrown away, so it
won't let the app close the Connection until the app decides that for
itself.

Which version of Zope?

Note that ZODBMountPoint isn't part of ZODB -- it's part of Zope, and
gets rewritten a lot ;-)  That's why the Zope version is important. 
If you want to make progress, look in SVN history for who rewrote it
most recently for the version of Zope you're using.


More information about the ZODB-Dev mailing list