DB got scrashed

Martín Marqués martin.marques at gmail.com
Mon Mar 21 12:54:28 CET 2011


El día 19 de marzo de 2011 15:53, David Relson
<relson at osagesoftware.com> escribió:
> On Sat, 19 Mar 2011 14:11:18 -0300
> Martín Marqués wrote:
>
>> I'm having again problems with bogofilter DB.
>>
>> For some reason I can't get more spam and ham definitions in the DB.
>> Also I can't get a dump from the DB:
>>
>> ~/.bogofilter$ alias spam
>> alias spam='/usr/bin/bogofilter -sN < ~/mail/newspam && >
>> ~/mail/newspam' ~/.bogofilter$ spam
>> PANIC: fatal region error detected; run recovery
>> PANIC: fatal region error detected; run recovery
>> bogofilter[20101]: DB_ENV->open, err: -30974, DB_RUNRECOVERY: Fatal
>> error, run database recovery
>> To recover, run: bogoutil -v --db-recover "/home/martin/.bogofilter"
>> ~/.bogofilter$ bogoutil -v --db-recover "/home/martin/.bogofilter"
>> PANIC: fatal region error detected; run recovery
>> ~/.bogofilter$ db4.8_dump -r ~/.bogofilter/wordlist.db >
>> ~/.bogofilter/wordlist.saved
>
>
> Hello Martin,
>
> Have you tried bogoutil's --db-recover-harder option?  Look at the
> on-line help and the man page for bogoutil on how to use the option.

--db-recover-harder Gave the same output:

$ bogoutil -v --db-recover-harder ~/.bogofilter
PANIC: fatal region error detected; run recovery

> If your wordlist is totally hosed this may not work.  In that case
> you'll have to delete your wordlist and start training anew.

:-(

> As a defensive practice, I periodically run bogoutil to dump my
> wordlist to a text file.  If something goes wrong I have a record of
> the wordlist's contents and can recover easily.

We have nightly BU, so I'll try to get an old copy of the wordlist database.

Else, I'm fried. :-(

-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador



More information about the Bogofilter mailing list