relstorage zodb p期间“sys.excepthook中的错误启动的线程中的未处理异常”

2024-04-19 12:37:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我们有一个相当大的Plone实例在它自己的挂载点上运行。ZMI接口将数据库的大小列为7101.4M。我们使用Relstorage zodbpack.py脚本运行数据库的每周包,删除超过7天的对象。最近两周运行包的cron作业输出如下:

Sun Jun 26 07:00:38 BST 2011 packing cms mount
/home/zope/home/parts/zope2/lib/python/zope/configuration/xmlconfig.py:323: DeprecationWarning: zope.app.annotation has moved to zope.annotation. Import of zope.app.annotation will become unsupported in Zope 3.5
__import__(arguments[0])
/home/zope/home/eggs/p4a.common-1.0.7-py2.4.egg/p4a/common/configure.zcml:19: DeprecationWarning: The five:localsite directive is deprecated and will be removed in Zope 2.12.
See Five/doc/localsite.txt .
 <five:localsite class=".Portal.PloneSite" />
/home/zope/home/parts/zope2/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'description' field in /home/zope/home/eggs/Products.CMFSquidTool-1.5.1-py2.4.egg/Products/CMFSquidTool/configure.zcml
 warnings.warn(
/home/zope/home/parts/zope2/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'title' field in /home/zope/home/eggs/Products.CMFSquidTool-1.5.1-py2.4.egg/Products/CMFSquidTool/configure.zcml
 warnings.warn(
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
Sun Jun 26 09:56:31 BST 2011 finished pack

第一行和最后一行由cron作业运行的shell脚本输出。

数据库大小在包之后减小,因此看起来它正在执行某些操作。对于如何进一步调试这个错误,我有点不知所措。

在很长一段时间里,这个包运行良好。然后,我们更改了数据库的连接参数,但忘记在cron作业上更新它们,因此包在11周内没有运行。在出现此错误之前,它已成功运行了两次-长时间不运行包是否与此错误有关?

任何帮助都将不胜感激。

我们正在运行:

  • 扑通声3.3.5
  • 佐佩2.10.11
  • 重新存储1.4.1
  • ZODB 3.8.4-轮询

Tags: inpy数据库zopehomelib作业annotation
1条回答
网友
1楼 · 发布于 2024-04-19 12:37:44

错误与Python有关,而不是RelStorage。请参阅http://bugs.python.org/issue1722344以获取我认为与此相关的错误报告。这个错误适用于Python2.5和2.6,但也可能适用于Python2.4。如果Python 2.4还没有升级到最新版本,请尝试将其升级到最新版本。

无论如何,在这种情况下,消息是无害的。打包只使用一个线程,并且在最后会得到成功消息(Sun Jun 26 09:56:31 BST 2011 finished pack只有在打包成功时才会显示)。

您还可以尝试升级到RelStorage 1.5.0(上周发布);打包功能得到了显著改进,可以处理更大规模的数据库和繁忙的站点。

相关问题 更多 >