[Zope] POSKeyError on zexp import

Toby Dickenson tdickenson@geminidataloggers.com
Tue, 16 Jul 2002 11:26:46 +0100

On Monday 15 Jul 2002 11:00 pm, kosh@aesaeion.com wrote:
> I am getting errors like this on import
> 2002-07-15T21:40:39 ERROR(200) ZODB Couldn't load state for
> '\x00\x00\x00\x00\x00I\x97\x93'
> Traceback (innermost last):
>   File /usr/lib/zope/lib/python/ZODB/Connection.py, line 447, in setsta=
>   File /usr/lib/zope/lib/python/ZODB/FileStorage.py, line 582, in load
>     (Object: /var/lib/zope/var/Data.fs)
>   File /usr/lib/zope/lib/python/ZODB/FileStorage.py, line 557, in _load
>     (Object: /var/lib/zope/var/Data.fs)
> POSKeyError: 0000000000499793
> I have tried to look at that object directly using
> >>> import Zope
> >>> app =3D Zope.app()
> >>> ob =3D app._p_jar['\x00\x00\x00\x00\x00I\x97\x93']
> However that object does not exist in the db since zope aborts the impo=
> Hence you can see my problem. How can I open up a zexp file and see wha=
> is in it to find out what objects are causing the problem to figure out
> what is going wrong.

This shouldnt happen, but Ive seen it recently too. Unfortunately I didnt=
the opportunity to debug.

Are you using ZEO? If so, try it without.