database conflict error on startup - disabling Five
Hi, I'm getting the following error during startup of a zeo with 3 instances. It doesn't happen with one instance. It's zope2.9.8, plone 2.5 and the Five 1.4 svn branch. I thought the Five svn branch might help based on this thread http://archives.free.net.ph/message/20080520.172500.38ab3445.en.html but no luck. 2008-11-25T00:37:49 ERROR Zope Couldn't install Five Traceback (most recent call last): File "c:\zope\2.9.8\Zope\lib\python\OFS\Application.py", line 783, in install_product initmethod(context) File "c:\zope\Plone\parts\productsvn\Five\__init__.py", line 31, in initialize zcml.load_site() File "c:\zope\Plone\parts\productsvn\Five\zcml.py", line 41, in load_site _context = xmlconfig.file(file) File "c:\zope\2.9.8\Zope\lib\python\zope\configuration\xmlconfig.py", line 560, in file context.execute_actions() File "c:\zope\2.9.8\Zope\lib\python\zope\configuration\config.py", line 612, in execute_actions callable(*args, **kw) File "c:\zope\Plone\parts\productsvn\Five\fiveconfigure.py", line 289, in _registerPackage transaction.commit() File "c:\zope\2.9.8\Zope\lib\python\transaction\_manager.py", line 96, in commit return self.get().commit(sub, deprecation_wng=False) File "c:\zope\2.9.8\Zope\lib\python\transaction\_transaction.py", line 380, in commit self._saveCommitishError() # This raises! File "c:\zope\2.9.8\Zope\lib\python\transaction\_transaction.py", line 378, in commit self._commitResources() File "c:\zope\2.9.8\Zope\lib\python\transaction\_transaction.py", line 433, in _commitResources rm.commit(self) File "c:\zope\2.9.8\Zope\lib\python\ZODB\Connection.py", line 484, in commit self._commit(transaction) File "c:\zope\2.9.8\Zope\lib\python\ZODB\Connection.py", line 518, in _commit raise ConflictError(object=obj) ConfigurationExecutionError: ZODB.POSException.ConflictError: database conflict error (oid 0x1338, class App.Product.Product) in: File "c:\zope\plone\src\pretaweb.obrien_theme\pretaweb\obrien_theme\configure.zcml", line 8.2-8.63 <five:registerPackage package="." initialize=".initialize" /> -- View this message in context: http://www.nabble.com/database-conflict-error-on-startup---disabling-Five-tp... Sent from the Zope - General mailing list archive at Nabble.com.
djay75 wrote at 2008-11-26 15:38 -0800:
Hi, I'm getting the following error during startup of a zeo with 3 instances. It doesn't happen with one instance. It's zope2.9.8, plone 2.5 and the Five 1.4 svn branch.
I thought the Five svn branch might help based on this thread http://archives.free.net.ph/message/20080520.172500.38ab3445.en.html but no luck.
2008-11-25T00:37:49 ERROR Zope Couldn't install Five Traceback (most recent call last): File "c:\zope\2.9.8\Zope\lib\python\OFS\Application.py", line 783, in install_product initmethod(context) ... self._commit(transaction) File "c:\zope\2.9.8\Zope\lib\python\ZODB\Connection.py", line 518, in _commit raise ConflictError(object=obj) ConfigurationExecutionError: ZODB.POSException.ConflictError: database conflict error (oid 0x1338, class App.Product.Product)
The Zope startup process is very sensible for exceptions of all kinds (at least in debug mode, in production mode they are ignored), including "ConflictError". Unlike during normal operation, there is no retry after a "ConflictError". When you have a multi ZEO client setup, you should have a single client distinguished responsible to keep "Control_Panel/products" up to date. There is a configuration option for this ("*enable*product*"). Set it to "on" in this distinguished client and to "off" in all others. This avoids "ConflictError"s during startup. -- Dieter
participants (2)
-
Dieter Maurer -
djay75