[Zope] The immortal POSKeyError

David Hassalevris bluepaul at earthlink.net
Fri Jul 16 21:36:39 EDT 2004


George,

Maybe export all but the bad directory.  Then import back into a fresh
data.fs.
I did this once due to necessity and it worked out fine.

Naturally if the bad folder represents alot of work and cannot be reproduced
than thats a hit you will may to take.

David
----- Original Message ----- 
From: "george donnelly" <list at zettai.net>
To: <zope at zope.org>
Sent: Friday, July 16, 2004 5:18 PM
Subject: [Zope] The immortal POSKeyError


hi

I found an entire hierarchy had gone POSKeyError on me today, and the
bad folder hierarchy resists deletion. below is a transcript of the
session,

BadFolder is the first inaccessible folder. it has a lot of peer folder
that i don't want to lose.

This is Zope 2.7.0 and Python 2.3.3. The ZODB is about 1.5GB and some
parts of it have been upgraded over time from as early as zope 2.4.x.

fsrecover.py reports zero bytes removed.

Since i can't delete it i am uncertain as to what to try next.

thanks in advance for any suggestions.

zopectl debug
<snip>

>>>
>>> from Zope import app
>>> from ZODB import POSException
>>> from OFS import DTMLMethod
>>> from OFS import Folder
>>> from AccessControl import User
>>> root= app()
>>> obj= root.unrestrictedTraverse('/BTreeFolder/BadFolder')
>>> obj.manage_delObjects('SoleObjectOfBadFolder')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/bradc/zope/270/lib/python/ZODB/Connection.py", line 561,
in setstate
    p, serial = self._storage.load(oid, self._version)
  File "/home/bradc/zope/270/lib/python/ZODB/FileStorage.py", line 687,
in load
    return self._load(oid, version, self._index, self._file)
  File "/home/bradc/zope/270/lib/python/ZODB/FileStorage.py", line 655,
in _load
    raise POSKeyError(oid)
ZODB.POSException.POSKeyError: 00000000001ae582
<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites
Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669
_______________________________________________
Zope maillist  -  Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list