DB got scrashed

Martín Marqués martin.marques at gmail.com
Mon Mar 21 14:11:40 CET 2011


El día 21 de marzo de 2011 08:54, Martín Marqués
<martin.marques at gmail.com> escribió:
> 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.
>

I'm also getting this on my procmail log file:

checksum error: page 561: catastrophic recovery required
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
wordlist.db: pgin failed for page 561
bogofilter[17032]: (db) DB->get(TXN=151339656,  'Lanzan' ), err:
-30974, DB_RUNRECOVERY: Fatal error, run database recovery
PANIC: fatal region error detected; run recovery
bogofilter[17032]: DB_TXN->abort(8000001a) error: DB_RUNRECOVERY:
Fatal error, run database recovery
bogofilter: ../../src/datastore_db_trans.c:277: dbx_abort: Assertion `t' failed.
procmail: Program failure (-6) of "/usr/bin/bogofilter"
procmail: Rescue of unfiltered data succeeded


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



More information about the Bogofilter mailing list