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

Hanno Schlichting hanno at hannosch.eu
Thu Jul 14 15:23:43 EDT 2011


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.

Hanno


More information about the ZODB-Dev mailing list