[Zope] corrupted Data.fs

Dennis Allison allison at sumeru.stanford.EDU
Mon Dec 8 05:36:17 EST 2003


Something appears to have corrupted one of my Data.fs files.  Rather than
being at the end of the file it's in the middle, the diagnostic being

CorruptedTransactionError:
 .../zope/instances/chi/var/Data.fs data record exceeds transaction record
at 95261

Examining the Data.fs with fsrecover.py shows the problem:

: remove regular file `Data.fs'? y
   1670 1186
error copying transaction: global name 'file' is not defined
looking for valid txn header at 1014987
error reading txn header: invalid transaction length, 0, at 1014987
looking for valid txn header at 1016294
error reading txn header: invalid transaction length, 0, at 1016294
looking for valid txn header at 1016998
error reading txn header: invalid transaction length, 0, at 1016998
looking for valid txn header at 1017238
error reading txn header: invalid transaction length, 0, at 1017238
looking for valid txn header at 1017876
error reading txn header: invalid transaction length, 0, at 1017876
looking for valid txn header at 1018033
error reading txn header: invalid transaction length, 0, at 1018033
looking for valid txn header at 1018189
error reading txn header: invalid transaction length, 0, at 1018189
looking for valid txn header at 1018641
error reading txn header: invalid transaction length, 0, at 1018641
looking for valid txn header at 1018749
error reading txn header: invalid transaction length, 0, at 1018749
looking for valid txn header at 1018852
error reading txn header: invalid transaction length, 0, at 1018852
looking for valid txn header at 1018932
error reading txn header: invalid transaction length, 0, at 1018932
looking for valid txn header at 1019383
error reading txn header: invalid transaction length, 0, at 1019383
looking for valid txn header at 1019514
error reading txn header: invalid transaction length, 0, at 1019514
looking for valid txn header at 1019640

although the indexes don't quite match.   

This is being done under Zope 2.6.2b3. RH9SMP, Athlon processors, 
and Python 2.1.3.

The problem (question) is how to recover as much of the Data.fs as
possible.  Here the trick of truncation does not work.  The problem is
near the middle of the file...

Suggestions?  Google didn't turn up much of anything useful.





More information about the Zope mailing list