[Spambayes] gdbm error (was Error running pop3proxy.py)

Meyer, Tony T.A.Meyer at massey.ac.nz
Mon Sep 8 19:12:10 EDT 2003

[spambayes-dev people: could someone who knows more about the dbm
modules confirm that I'm right here?]

> There is another error. When I go to the configuration page 
> and try to set, say, the spamminess cutoff to 0.8 (or change
> anything else there), I get the following error. After that,
> I need to restart the proxy to get it to work again, although
> the changes will have been saved.
> Error:
>   File 
> "/usr/lib/python2.2/site-packages/spambayes/dbmstorage.py", 
> line 23, in 
> open_gdbm
>     return gdbm.open(*args)
> error: (11, 'Resource temporarily unavailable')

I think this is an actual bug.  When you change the options, everything
is reloaded with the new settings, including the database.  This looks
to me like gdbm won't let anyone else (including spambayes) open the db
while spambayes has it open, so we need to close it first.  We should
probably be doing that anyway.  I suspect that this doesn't show up
using bsddb (and wouldn't using a pickle).

=Tony Meyer

More information about the Spambayes mailing list