[Grok-dev] How do I revover from a CorruptedTransactionError?
Sebastian Ware
sebastian at urbantalk.se
Thu Aug 6 07:04:08 EDT 2009
I have tried:
from ZODB.FileStorage.FileStorage import recover
recover('/Users/jhsware/groksandbox/Rider/parts/data/data.fs')
but I get:
Traceback (most recent call last):
File "<console>", line 0, in __main__
File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
ZODB3-3.8.0-py2.4-macosx-10.3-i386.egg/ZODB/FileStorage/
FileStorage.py", line 1572, in recover
npos = shift_transactions_forward(
File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
ZODB3-3.8.0-py2.4-macosx-10.3-i386.egg/ZODB/FileStorage/
FileStorage.py", line 1460, in shift_transactions_forward
tl=u64(stl)
File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
ZODB3-3.8.0-py2.4-macosx-10.3-i386.egg/ZODB/utils.py", line 83, in u64
return unpack(">Q", v)[0]
TypeError: unpack() argument 2 must be string or read-only buffer, not
long
Mvh Sebastian
6 aug 2009 kl. 12.58 skrev Sebastian Ware:
> The server won't start... how do I recover from a
> CorruptedTransactionError?
>
> ------
> 2009-08-06T12:55:46 WARNING ZODB.FileStorage /Users/jhsware/
> groksandbox/Rider/parts/data/Data.fs time-stamp reduction at 4292666
> Traceback (most recent call last):
> ------
> 2009-08-06T12:55:46 WARNING ZODB.FileStorage /Users/jhsware/
> groksandbox/Rider/parts/data/Data.fs has invalid status,
> File "/Users/jhsware/groksandbox/Rider/parts/app/runzope", line
> 127, in ?
> zope.app.twisted.main.main()
> File "/Users/jhsware/groksandbox/eggs/zope.app.twisted-3.4.1-
> py2.4.egg/zope/app/twisted/main.py", line 74, in main
> service = setup(load_options(args))
> File "/Users/jhsware/groksandbox/eggs/zope.app.twisted-3.4.1-
> py2.4.egg/zope/app/twisted/main.py", line 147, in setup
> db = zope.app.appsetup.appsetup.multi_database(options.databases)
> [0][0]
> File "/Users/jhsware/groksandbox/eggs/zope.app.appsetup-3.4.1-
> py2.4.egg/zope/app/appsetup/appsetup.py", line 213, in multi_database
> db = factory.open()
> File "/Users/jhsware/groksandbox/eggs/ZODB3-3.8.1-py2.4-macosx-10.3-
> i386.egg/ZODB/config.py", line 97, in open
> storage = section.storage.open()
> File "/Users/jhsware/groksandbox/eggs/ZODB3-3.8.1-py2.4-macosx-10.3-
> i386.egg/ZODB/config.py", line 135, in open
> quota=self.config.quota)
> File "/Users/jhsware/groksandbox/eggs/ZODB3-3.8.1-py2.4-macosx-10.3-
> i386.egg/ZODB/FileStorage/FileStorage.py", line 165, in __init__
> read_only=read_only,
> File "/Users/jhsware/groksandbox/eggs/ZODB3-3.8.1-py2.4-macosx-10.3-
> i386.egg/ZODB/FileStorage/FileStorage.py", line 1616, in read_index
> panic('%s has invalid transaction header at %s', name, pos)
> File "/Users/jhsware/groksandbox/eggs/ZODB3-3.8.1-py2.4-macosx-10.3-
> i386.egg/ZODB/FileStorage/FileStorage.py", line 53, in panic
> raise CorruptedTransactionError(message)
> ZODB.FileStorage.FileStorage.CorruptedTransactionError: %s has invalid
> transaction header at %s
>
> Mvh Sebastian
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list