DatabaseError: Corrupted data record...
Hi all, Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... "...there is one small problem!" (MPaTHG) My database has got nuked. I don't know how it happened, but this is the tail of my serve.errors file File "lib/python/OFS/Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "lib/python/BoboPOS/PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "lib/python/BoboPOS/SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "lib/python/BoboPOS/SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "lib/python/BoboPOS/SimpleDB.py", line 1365, in read_index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1087646 Trying to 'start' the server again just results in the serve.errors file being touched. As you'll know from my 'Touch Questions' post, I'm a novice in Zope (but I've bought the Lutz 'Programming Python' book, have two more on order and have been reading and rereading the docs all week...so I'm learning fast), but this has me stumped. I haven't got too far into my Zope 'career' yet, so I won't be devastated if I have to replace the database from scratch (how do you do that by the way?), but I'm sorta worried about the way that all my work seems inaccessible to me now. any and all help would be ... appreciated. tone.
Tony.McDonald@newcastle.ac.uk wrote:
Hi all, Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say...
"...there is one small problem!" (MPaTHG)
My database has got nuked.
Oh my :-) ...
DatabaseError: Corrupted data record at 1087646
I didn't try such a thing before. But because the Zope database is always only appended to (if I'm understanding right), you might try to truncate the file upto that offset and see if it is working again? (please keep a backup :-) ciao - chris -- Christian Tismer :^) <mailto:tismer@appliedbiometrics.com> Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net 10553 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF we're tired of banana software - shipped green, ripens at home
Christian Tismer wrote:
Tony.McDonald@newcastle.ac.uk wrote:
DatabaseError: Corrupted data record at 1087646
I didn't try such a thing before. But because the Zope database is always only appended to (if I'm understanding right), you might try to truncate the file upto that offset and see if it is working again? (please keep a backup :-)
Good point. I should have mentioned that as a quick recovery, especially if the location is near the end of the file. But please send me the file before you truncate it. :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (3)
-
Christian Tismer -
Jim Fulton -
Tony.McDonald@newcastle.ac.uk