[Spambayes] corrupt database

Chris Goldsmith cdhgold at tecman.com
Mon Sep 29 09:02:47 EDT 2003

please help i'm get the following error when trying to train on my latest batch of incoming spam thru the web interface. 

 500 Server error
Traceback (most recent call last):

  File "C:\download\spambayes-1.0a5\spambayes\Dibbler.py", line 453, in found_terminator
    getattr(plugin, name)(**params)

  File "C:\download\spambayes-1.0a5\spambayes\ProxyUI.py", line 309, in onReview
    targetCorpus.takeMessage(id, sourceCorpus)

  File "C:\download\spambayes-1.0a5\spambayes\Corpus.py", line 201, in takeMessage

  File "C:\download\spambayes-1.0a5\spambayes\FileCorpus.py", line 143, in addMessage
    Corpus.Corpus.addMessage(self, message)

  File "C:\download\spambayes-1.0a5\spambayes\Corpus.py", line 136, in addMessage

  File "C:\download\spambayes-1.0a5\spambayes\storage.py", line 552, in onAddMessage

  File "C:\download\spambayes-1.0a5\spambayes\storage.py", line 560, in train
    self.bayes.learn(message.tokenize(), self.is_spam)

  File "C:\download\spambayes-1.0a5\spambayes\classifier.py", line 276, in learn
    self._add_msg(wordstream, is_spam)

  File "C:\download\spambayes-1.0a5\spambayes\classifier.py", line 411, in _add_msg
    self._wordinfoset(word, record)

  File "C:\download\spambayes-1.0a5\spambayes\storage.py", line 257, in _wordinfoset
    self.db[word] = record.__getstate__()

  File "C:\Python23\lib\shelve.py", line 130, in __setitem__
    self.dict[key] = f.getvalue()

  File "C:\Python23\lib\bsddb\__init__.py", line 90, in __setitem__
    self.db[key] = value

DBRunRecoveryError: (-30982, 'DB_RUNRECOVERY: Fatal error, run database recovery -- fatal region error detected; run recovery')
 Also when i try to run the which_database.py to confirm which database I'm running I get Pickle is available.Dumbdbm is available.Dbhash is available.Bsddb[3] is available.Your storage hammie.db is a: NonePlease help any advice or suggestiosna re appreciated.

More information about the Spambayes mailing list