[Spambayes] Need help with coprrupt database please

Chris Goldsmith cdhgold at tecman.com
Mon Oct 6 11:20:45 EDT 2003


Please help I realize I have posted this once before but I never got a resposne so i'm trying again. I'm getting the following error when trying to train on my latest batch of incoming spam thru the web interface. The pc in use in w2k pro. using the pop3proxy_service.py in conjunction with Outlook express. Browser is Mozilla 1.4 although I get same error in IE6

 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
    self.addMessage(msg)

  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
    obs.onAddMessage(message)

  File "C:\download\spambayes-1.0a5\spambayes\storage.py", line 552, in onAddMessage
    self.train(message)

  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: None

Please help any advice or suggestions are appreciated.


More information about the Spambayes mailing list