當我啓動一個Zope實例時,在我的日誌文件中出現一個奇怪的錯誤。該實例正在運行ZEO服務器,並且Zope安裝是virtualenv(在/ home/myUser/opt中)。我得到了幾個產品的錯誤,但Zope工作正常,並且安裝了這些產品。下面是與產品BTreeFolder2一個例子:Zope:奇怪的「無法安裝」錯誤
2014-01-22T12:38:13 ERROR Application Couldn't install BTreeFolder2
Traceback (most recent call last):
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/Zope2-2.13.21-py2.7.egg/OFS/Application.py", line 693, in install_product
transaction.commit()
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/transaction-1.1.1-py2.7.egg/transaction/_manager.py", line 89, in commit
return self.get().commit()
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 329, in commit
self._commitResources()
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 446, in _commitResources
rm.tpc_vote(self)
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 781, in tpc_vote
s = vote(transaction)
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZEO/ClientStorage.py", line 1098, in tpc_vote
return self._check_serials()
File "/home/myUser/opt/Zope2-2.13.21/local/lib/python2.7/site-packages/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZEO/ClientStorage.py", line 929, in _check_serials
raise s
ConflictError: database conflict error (oid 0x01, class OFS.Application.Application, serial this txn started with 0x03a449da3a7b1e44 2014-01-22 11:38:13.706468, serial currently committed 0x03a449da3af74dee 2014-01-22 11:38:13.820164)
我想解決這個問題,即使它不會影響我的網站的功能,但我不知道去哪裏找。有什麼建議麼? :)
或者這是否意味着緩存的對象必須更新ZEO服務器的數據?
感謝Martijn,經常這樣,你讓我的一天:)我仍然使用我的產品文件夾中的一些產品,所以在這種情況下,我還需要啓用產品安裝開關,但是我會禁用它在其他實例。但是,我猜這些產品必須出現在所有實例的產品文件夾中? – Rastaf