Friday, May 13, 2005

fyi: straw database recovery

This morning I accidentally double clicked on the straw RSS aggregator icon and two copies raced
to see who could corrupt the app's database first.

straw refused to start with this error:

ItemStore.py:52:__init__: DB_RUNRECOVERY: Fatal error, run
database recovery - - PANIC: Invalid argument
Recovery Error: See README for details on how to recover data.

And the straw README says to do this:

$ db_recover -h $HOME/.straw -c -v
$ db_checkpoint -1 -v

Fair enough, but I don't have those scripts installed db\_recover or db\_checkpoint. It turns out that they are in the libdb2-util package. (apt-get install libdb2-util)

Fortunately the recovery processed work fine.