Oh no! My 1.10.2 Zope server (Redhat 6.0) had to be hard-booted (keyboard lockup) and so the Zope server never got a chance to close nicely. Now I can't start ZopeHTTPServer at all! :-( var/serve.errors contains just this: Traceback (innermost last): File "serve.py", line 92, in ? ZopeHTTPServer.main(args) File "ZopeHTTPServer/ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "ZopeHTTPServer/ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "ZopeHTTPServer/ZopeHTTPServer.py", line 432, in set_published_module __import__(name) # to catch problem modules right away File "lib/python/Main.py", line 103, in ? Bobobase=OFS.Application.open_bobobase() 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 3111549 What can I do? I need to get that data back. -- ### Martin Dougiamas -- Internet Agent "...The Eighties, ### Centre for Educational Advancement the Nineties, ### http://cea.curtin.edu/staff/martin the Naughties."
Martin Dougiamas wrote:
Oh no!
My 1.10.2 Zope server (Redhat 6.0) had to be hard-booted (keyboard lockup) and so the Zope server never got a chance to close nicely.
Hm. This should not matter.
Now I can't start ZopeHTTPServer at all! :-(
var/serve.errors contains just this: (snip) DatabaseError: Corrupted data record at 3111549
What can I do? I need to get that data back.
For starters: Make a backup copy of the data files: tar czf data.tgz var/Data.* (Please send me this tar ball in a private email.) Truncate the data file at the indicated position. Zope should then start just fine. If the data file was significantly larger than 3111549 bytes, then you may have some noticable data loss. If this is the case, let me know, and I'll recover it for you. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.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.
Jim Fulton wrote:
Martin Dougiamas wrote:
Oh no!
My 1.10.2 Zope server (Redhat 6.0) had to be hard-booted (keyboard lockup) and so the Zope server never got a chance to close nicely.
Hm. This should not matter.
My machine has been up and down quite a bit with new hardware upgrades, overclocking etc etc, and Zope has never had a single problem through any of it up to now. So perhaps it was something else. The only other thing I did today was turn on DMA for my hard drive, with: hdparm -d1 /dev/hda
Now I can't start ZopeHTTPServer at all! :-(
var/serve.errors contains just this: (snip) DatabaseError: Corrupted data record at 3111549
What can I do? I need to get that data back.
For starters:
Make a backup copy of the data files:
tar czf data.tgz var/Data.*
(Please send me this tar ball in a private email.)
Truncate the data file at the indicated position. Zope should then start just fine.
Thanks, Jim - that worked great! Yay! Up and running fine. Didn't lose much at all (about 400 bytes I think) I'll send you the 600k tarball separately. Cheers and thanks again for the prompt fix, Martin -- ### Martin Dougiamas -- Internet Agent "...The Eighties, ### Centre for Educational Advancement the Nineties, ### http://cea.curtin.edu/staff/martin the Naughties."
participants (3)
-
Jim Fulton -
Martin Dougiamas -
Martin Dougiamas