[ZODB-Dev] How to fix "CorruptedDataError: Error reading unknown oid. Found '' at 81036527"?

Andreas Jung lists at zopyx.com
Thu Jul 14 10:12:11 EDT 2011



Jim Fulton wrote:
>> 2011-07-14 13:36:22 INFO Z2 Shutting down
>
> That error message seems rather weird. WTF SIGINT?

Likely caused during the Zope shutdown amd unrelated).



>
> Use multi-zodb-check-refs with the -r option to get a database of
> reverse references.
> Use that do figure out what's refering to the missing object and fix
> that object(s) so that
> it no longer does.

This gives me one reference:

plone at web1:~/poskeyerror-check$ cat Out
 >>> for x in refs.items(): print x
...
('1', <BTrees.LOBTree.LOBTree object at 0xe7a850>)


I followed the documentation at

http://pastebin.com/bL0CbBm2

So what do I do with the oid 0xe7a850 in this case?

Trying to load the referenced object gives me of course a PosKey error:

 >>> app = refs
 >>> p64
<function p64 at 0x26ab2a8>
 >>> app
{'Application': <persistent broken OFS.Application.Application instance 
'\x00\x00\x00\x00\x00\x00\x00\x01'>, 'ZGlobals': <BTrees.OOBTree.OOBTree 
object at 0x2a6f7d0>}
 >>> app._p_jar.get(p64(0xe7a850))
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File 
"/export/plone/poskeyerror-check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/Connection.py", 
line 248, in get
     p, serial = self._storage.load(oid, '')
   File 
"/export/plone/poskeyerror-check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py", 
line 412, in load
     pos = self._lookup_pos(oid)
   File 
"/export/plone/poskeyerror-check/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py", 
line 403, in _lookup_pos
     raise POSKeyError(oid)
ZODB.POSException.POSKeyError: 0xe7a850


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/20110714/a5241de2/attachment.vcf 


More information about the ZODB-Dev mailing list