[Zope] ZODB corruption? WWYD?

Thaxter, Jason M. Jason.M.Thaxter@abc.com
Tue, 10 Aug 1999 11:52:45 -0400


I had a problem removing an item from a folder:

	Zope has encountered an error while publishing this resource. 

	  exceptions.AttributeError

	  Sorry, a Zope error occurred.

	  Traceback (innermost last):
	    File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/Publish.py,
line 256, in publish_module
	    File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/Publish.py,
line 161, in publish
	    File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/mapply.py,
line 154, in mapply
	      (Object: manage_delObjects)
	    File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/Publish.py,
line 98, in call_object
	      (Object: manage_delObjects)
	    File /zope/Zope-2.0.0b1-src/lib/python/OFS/ObjectManager.py,
line 392, in manage_delObjects
	      (Object: ElementWithAttributes)
	    File /zope/Zope-2.0.0b1-src/lib/python/OFS/ObjectManager.py,
line 264, in _delObject
	      (Object: ElementWithAttributes)
	    File /zope/Zope-2.0.0b1-src/lib/python/Products/OFSP/Draft.py,
line 218, in manage_beforeDelete
	      (Object: AddocPart)
	    File /zope/Zope-2.0.0b1-src/lib/python/Products/OFSP/Draft.py,
line 174, in nonempty
	      (Object: AddocPart)
	  AttributeError: VersionBase

I tried bbb.py to see what's up:

	machine$ python utilities/bbb.py var/Data.fs

	Corrupted data record at 9

Are there tools available for fixing this?  Of course, this is only a test
site, so I don't really care if I lose data, but would I normally expect to
lose all data following this record?  I assume that data loss could be
minimized by exporting useful objects and re-importing them, but I need to
know if this is the right fix before beginning to use anything "for real".

JT