[Zope-dev] Corrupted database, ZopeHTTPServer won't start

Martin Dougiamas martin@complex.curtin.edu.au
Wed, 26 May 1999 14:28:36 +0800 (WST)


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."