我们有一个相当大的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周内没有运行。在错误出现之前,它成功地运行了两次--长时间没有运行包是否与错误有关?
任何帮助都将不胜感激。
我们在跑:
2.10.11
发布于 2011-07-04 12:22:40
错误与Python有关,而不是RelStorage。有关bugreport,请参见http://bugs.python.org/issue1722344,我认为这里与此相关。该bug适用于Python2.5和2.6,但也可能适用于Python2.4。如果尚未升级Python2.4,请尝试将其升级到最新版本。
无论如何,在这种情况下,消息是无害的。pack只使用一个线程,并且在最后得到成功消息(只有在包成功的情况下才会显示Sun Jun 26 09:56:31 BST 2011 finished pack)。
您还可以尝试升级到RelStorage 1.5.0 (它是上周发布的);打包功能得到了很大的改进,可以处理更大规模的数据库和繁忙的站点。
https://stackoverflow.com/questions/6570495
复制相似问题