[spambayes-dev] pop3proxy_service prob
Meyer, Tony
T.A.Meyer at massey.ac.nz
Wed Sep 24 01:52:37 EDT 2003
> "Save Advanced Options" button, but got a 500 "Internal Server Error".
Did the 500 page have a traceback on it?
> Is there a problem switching from database to pickle
> or have I encountered some other problem? I can see where
> you might have a problem switching from database to pickle
> without changing the name of the storage file. Unfortunately,
> you can't change the storage file name from the Advanced Configuration
page.
I think this is the case. I tried it myself and I get this traceback
(on the 500 page):
"""
500 Server error
Traceback (most recent call last):
File "c:\spambayes_1_0\spambayes\Dibbler.py", line 453, in
found_terminator
getattr(plugin, name)(**params)
File "c:\spambayes_1_0\spambayes\UserInterface.py", line 684, in
onChangeopts
self.reReadOptions()
File "c:\spambayes_1_0\spambayes\ProxyUI.py", line 519, in
reReadOptions
state = self.state_recreator()
File "C:\spambayes_1_0\scripts\sb_server.py", line 735, in
_recreateState
prepare(state)
File "C:\spambayes_1_0\scripts\sb_server.py", line 751, in prepare
state.createWorkers()
File "C:\spambayes_1_0\scripts\sb_server.py", line 622, in
createWorkers
self.bayes = storage.open_storage(filename, self.useDB)
File "c:\spambayes_1_0\spambayes\storage.py", line 677, in
open_storage
return klass(data_source_name)
File "c:\spambayes_1_0\spambayes\storage.py", line 90, in __init__
self.load()
File "c:\spambayes_1_0\spambayes\storage.py", line 113, in load
tempbayes = pickle.load(fp)
EOFError
"""
For the moment you could just change the option manually in the config
file before you start up. As an actual fix, I suppose the friendliest
way to handle this would be to present a page that said "You have an
existing [pickle/dbm] database with x spam and x ham. Would you like to
convert or delete this?" and takes the appropriate action given the
response.
=Tony Meyer
More information about the spambayes-dev
mailing list