[ZODB-Dev] Yet another Poskey error...

Andreas Jung lists at zopyx.com
Thu Jul 21 06:25:06 EDT 2011


Hi there,

this month is Poskey-error fixing month - so I can across a different 
problem with another site.

Environment: Zope 2.12.18, Plone ZODB 3.9.5, Plone 4.0.7

Plone gives us the following error:

Traceback (innermost last):

Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Shared.DC.Scripts.Bindings, line 324, in __call__
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 240, in _exec
Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
Module Products.PageTemplates.PageTemplate, line 80, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 888, in do_useMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 852, in do_condition
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 220, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
URL: 
file:/opt/plone/4.0/eggs/plonetheme.sunburst-1.0.6-py2.6.egg/plonetheme/sunburst/skins/sunburst_templates/main_template.pt
Line 73, Column 12
Expression: <StringExpr u'plone.abovecontent'>
Names:
{'container': <ATDocument at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html>,
  'context': <ATDocument at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html>,
  'default': <object object at 0xf761b6b8>,
  'here': <ATDocument at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html>,
  'loop': {},
  'nothing': None,
  'options': {'args': ()},
  'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 
0x1349161c>,
  'request': <HTTPRequest, 
URL=http://www.plone-entwicklerhandbuch.de/plone-entwicklerhandbuch/erscheinungsbild/portlets.html/document_view>,
  'root': <Application at >,
  'template': <FSPageTemplate at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html/document_view>,
  'traverse_subpath': [],
  'user': <PropertiedUser 'ajung'>}
Module zope.contentprovider.tales, line 80, in __call__
Module plone.app.viewletmanager.manager, line 154, in render
Module plone.app.viewletmanager.manager, line 85, in render
Module plone.locking.browser.info, line 34, in render
Module Products.Five.browser.pagetemplatefile, line 126, in __call__
Module Products.Five.browser.pagetemplatefile, line 60, in __call__
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
URL: 
/opt/plone/4.0/eggs/plone.locking-2.0.1-py2.6.egg/plone/locking/browser/info.pt
Line 1, Column 0
Expression: <PathExpr standard:u'view/info/is_locked_for_current_user'>
Names:
{'args': (),
  'container': <ATDocument at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html>,
  'context': <ATDocument at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html>,
  'default': <object object at 0xf761b6b8>,
  'here': <ATDocument at 
/pen/pen/plone-entwicklerhandbuch/erscheinungsbild/portlets.html>,
  'loop': {},
  'nothing': None,
  'options': {},
  'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 
0x13493eb4>,
  'request': <HTTPRequest, 
URL=http://www.plone-entwicklerhandbuch.de/plone-entwicklerhandbuch/erscheinungsbild/portlets.html/document_view>,
  'root': <Application at >,
  'template': 
<Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 
0x13499c6c>,
  'traverse_subpath': [],
  'user': <PropertiedUser 'ajung'>,
  'view': <Products.Five.viewlet.metaconfigure.LockInfoViewlet object at 
0x134ae82c>,
  'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 
0x1348aecc>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 157, in _eval
Module Products.PageTemplates.Expressions, line 119, in render
Module plone.locking.browser.locking, line 59, in is_locked_for_current_user
Module plone.locking.lockable, line 83, in can_safely_unlock
Module plone.locking.lockable, line 119, in lock_info
Module webdav.Lockable, line 87, in wl_lockValues
Module webdav.Lockable, line 74, in wl_lockmapping
Module ZODB.Connection, line 838, in setstate
Module ZODB.Connection, line 888, in _setstate
Module ZEO.ClientStorage, line 810, in load
Module ZEO.ServerStub, line 176, in loadEx
Module ZEO.zrpc.connection, line 703, in call

I proceeded in the same way as discussed in my former question
(extracts the refs using (multi-zodb-check-refs -r ...) and then
used Hanno's recipe (which worked apparently for the other problem)).
Appliying Hanno's solution in this case however fails:

Traceback (most recent call last):
   File "fix_zodb.py", line 18, in <module>
     transaction.commit()
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/transaction-1.1.1-py2.6.egg/transaction/_manager.py", 
line 89, in commit
     return self.get().commit()
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/transaction-1.1.1-py2.6.egg/transaction/_transaction.py", 
line 329, in commit
     self._commitResources()
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/transaction-1.1.1-py2.6.egg/transaction/_transaction.py", 
line 443, in _commitResources
     rm.commit(self)
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/Connection.py", 
line 567, in commit
     self._commit(transaction)
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/Connection.py", 
line 623, in _commit
     self._store_objects(ObjectWriter(obj), transaction)
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/Connection.py", 
line 682, in _store_objects
     s = self._storage.store(oid, serial, p, '', transaction)
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py", 
line 479, in store
     oldserial, data)
   File 
"/home/pacs/ves00/zeo_check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/ConflictResolution.py", 
line 232, in tryToResolveConflict
     data=newpickle)
ZODB.POSException.ConflictError: database conflict error (oid 0x68ae, 
class persistent.Persistent, serial this txn started with 0x00 
1900-01-01 00:00:00.000000, serial currently committed 
0x038eb68bf0d11655 2011-06-01 13:31:56.441425)

How to solve this?

Andreas




-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20110721/971f7688/attachment.vcf 


More information about the ZODB-Dev mailing list