ConflictError:数据库冲突错误

use*_*660 5 zope plone

任何人都能解释我的错误 - 以及我如何修复它?

我们用:

  • Plone 4
  • Zope 2.12.19
  • ZEO
  • ZODB-暂存

错误日志

Site Error

An error was encountered while publishing this resource.

Sorry, a site error occurred.

Traceback (innermost last):

Module ZPublisher.Publish, line 239, in publish_module_standard
Module ZPublisher.Publish, line 197, in publish
Module ZPublisher.Publish, line 197, in publish
Module ZPublisher.Publish, line 197, in publish
Module ZPublisher.Publish, line 173, in publish
Module plone.app.linkintegrity.monkey, line 17, in zpublisher_exception_hook_wrapper
Module ZPublisher.Publish, line 135, in publish
Module Zope2.App.startup, line 291, in commit
Module transaction._manager, line 93, in commit
Module transaction._transaction, line 322, in commit
Module transaction._transaction, line 419, in _commitResources
Module ZODB.Connection, line 767, in tpc_vote
Module ZEO.ClientStorage, line 1068, in tpc_vote
Module ZEO.ClientStorage, line 905, in _check_serials

ConflictError: database conflict error (oid 0x08, class Products.Transience.Transience.Length2, serial this txn started with 0x0394fddba7126fbb 2012-03-08 07:23:39,157504, serial currently committed 0x0394fddbb0a4cb22 2012-03-08 07:23:41,400873)

Troubleshooting Suggestions

The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the error log.

If the error persists please contact the site maintainer. Thank you for your patience.
Run Code Online (Sandbox Code Playgroud)

我试图修复Data.fs没有任何错误......

提前致谢.

Lau*_*owe 4

当两个用户尝试同时更新同一对象(通常是目录数据结构的一部分)并且系统无法解决冲突时,就会发生冲突错误。您应该确保您的ZEO 服务器包含来自Zope 实例的所有彩蛋,以确保您拥有所有冲突解决代码。

如果您在简单视图上看到这些,那么这可能意味着您有一些代码在渲染该视图时更新数据库。这对于 ZODB 来说不是一个好主意。