[Spambayes] Configuring sb_server for not :110 servers (995, TLS) <> Errors in DB

Vys0 vys0 at epf.pl
Fri Jun 17 18:00:41 CEST 2005


Hello, I am new to this list - I tried to search a bit archive, but did not 
succeed ;/

Linux (Aurox 10.2 based on RH), KMail 1.7.2 (KDE 3.3.210.2aur-3), Spambayes 
1.1a1

What concerns me are two problems:

1) how to configure Spambayes to be able to get mails from servers, that 
communicate with mail-client not on 110 port - but on 995, for example.
Writing host with example.host.com:995 does not work
example.host.com 995 neither

I need this as one of servers I use for e-mails does only allow TLS 
connection, on 995 port.

2) and here comes another.
Yesterday I set up all the stuff, it worked fine. Switched the machine off. 
Turned it on today - launched sb_server.py - launched KMail .. and got lots 
of errors in console window, with lots of /python paths, ending with DBError 
run recovery -- PANIC, or something like this 
-----------
[vys0 at agnich spambayes-1.1a1]$ sb_server.py
SpamBayes POP3 Proxy Version 1.1a1 (April 2005)

Loading database... User interface url is http://localhost:8880/
Traceback (most recent call last):
  File "/usr/bin/sb_server.py", line 1096, in ?
    run()
  File "/usr/bin/sb_server.py", line 1090, in run
    start()
  File "/usr/bin/sb_server.py", line 1025, in start
    main(state.servers, state.proxyPorts, state.uiPort, state.launchUI)
  File "/usr/bin/sb_server.py", line 1005, in main
    Dibbler.run(launchBrowser=launchUI)
  File "/usr/lib/python2.3/site-packages/spambayes/Dibbler.py", line 727, in 
run
    asyncore.loop(map=context._map)
  File "/usr/lib/python2.3/asyncore.py", line 193, in loop
    poll_fun(timeout, map)
  File "/usr/lib/python2.3/asyncore.py", line 108, in poll
    r, w, e = select.select(r, w, e, timeout)
KeyboardInterrupt
-------------------
Traceback (most recent call last):
  File "/usr/bin/sb_server.py", line 564, in onRetr
    msg.addSBHeaders(prob, clues)
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 452, in 
addSBHeaders
    self.RememberClassification(disposition)
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 401, in 
RememberClassification
    self.modified()
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 377, in 
modified
    self.message_info_db.store_msg(self)
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 181, in 
store_msg
    self.db[msg.getDBKey()] = attributes
  File "/usr/src/build/475206-i386/install/usr/lib/python2.3/shelve.py", line 
130, in __setitem__
    self.dict[key] = f.getvalue()
  File 
"/usr/src/build/475206-i386/install/usr/lib/python2.3/bsddb/__init__.py", 
line 120, in __setitem__
DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, run database 
recovery -- PANIC: Invalid argument')

Exception bsddb._db.DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, 
run database recovery -- PANIC: fatal region <bound method 
MessageInfoDB.__del__ of <spambayes.message.MessageInfoDB object at 
0xb147b38c>> ignored
Exception bsddb._db.DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, 
run database recovery -- PANIC: fatal region  ignored
Exception bsddb._db.DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, 
run database recovery -- PANIC: fatal region  ignored
Exception bsddb._db.DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, 
run database recovery -- PANIC: fatal region <bound method 
MessageInfoDB.__del__ of <spambayes.message.MessageInfoDB object at 
0xb14761ec>> ignored
Exception bsddb._db.DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, 
run database recovery -- PANIC: fatal region  ignored
--------------------
something like that ...

I stopped server (with Ctrl+C). I cd'ed to ~/spambayes ... and there were no 
files it should have created. So I had to rebuild the whole database from the 
scratch. Hopefully it will work fine this time, and survive powering off the 
machine.
What could have caused such an error ?


I appreciate all your help, sorry if this was spoken about already.

-- 
Greetings,
Piotr 'Vys0' Budny


More information about the Spambayes mailing list