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

Jim Fulton jim at zope.com
Thu Jul 14 15:40:22 EDT 2011


On Thu, Jul 14, 2011 at 3:23 PM, Hanno Schlichting <hanno at hannosch.eu> wrote:
> On Thu, Jul 14, 2011 at 5:38 PM, Andreas Jung <lists at zopyx.com> wrote:
>> For the sake of completeness: I found this
>>
>> https://mail.zope.org/pipermail/zodb-dev/2008-February/011606.html
>>
>> and will try it out .
>
> There's also instructions in my pastebin dump on how to do this - and
> quite a bit simpler than Chris version:
>
> from persistent import Persistent
> a = Persistent()
> a._p_oid = '\x00\x00\x00\x00\x00\xc9-w'
> a._p_jar = app._p_jar
> app._p_jar._register(a)
> app._p_jar._added[a._p_oid] = a
> transaction.commit()
>
> At Jarn we've used that trick many times to repair broken internals in
> the intid/keyreference data structures.

Do you have any theories why objects are going away for you?

The only time we've seen this is when we packed a multi-database incorrectly.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton


More information about the ZODB-Dev mailing list