git installation files - README.db

hput hput3 at fastmail.fm
Mon Oct 11 01:03:23 CEST 2021


I have a corrupted wordlist.db according to output from bf_compact

 bf_compact ~/.bogofilter-corrupted-211009-211752/ wordlist.db
Can't open wordlist './wordlist.db'
wordlist.db corrupted, aborting.

The README.db file in git sources at
...../bogofilter-git/bogofilter/doc/README.db section 3.2.2

,----
| [...]
|3.2.2 Catastrophic recovery
|
| If regular recovery fails after severe damage to hardware, filesystem,
| database files, you can attempt to run catastrophic recovery. If log
| files have been damaged, catastrophic recovery may not work.
| 
| This may need *all* log files from the backup and is therefore not
| available if log files have been pruned.
| 
| To run catastrophic recovery, replace the log files from your archives,
| then run:
| bogoutil --db-recover-harder ~/.bogofilter
| 
| If this fails, read on.
| [...]
`----

The above section and further along in same file there is mention of:

`*all* log files'

What log files are they talking about?  Is there a log specific to
bogofilter?

I have none at /var/log.  And there is no mention of `bogofilter' in

/var/log/syslog going back as far Jul 15

  bf_compact tells me wordlist.db is corrupted as shown at the top.

  bogoutil --db-recover-harder ~/.bogofilter-corrupted-211009-211752/

  Shows no response at all.

,----
| bogoutil -v --db-verify ~/.bogofilter-corrupted-211009-211752/wordlist.db
| 
|   BDB1081 Page 2205: btree or recno page is of inappropriate type 13
|   BDB1087 Page 2205: Btree level incorrect: got 0, expected 1
|   /home/reader/.bogofilter-corrupted-211009-211752/wordlist.db:
|   BDB0090 DB_VERIFY_BAD: Database veri  fication failed
|   bogoutil[918560]: database wordlist.db does not verify: BDB0090
|   DB_VERIFY_BAD: Database verification failed 
`----

But then



More information about the bogofilter mailing list