How can I restore a corrupted Shotwell db?

Posted by Yann Dìnendal on Ask Ubuntu See other posts from Ask Ubuntu or by Yann Dìnendal
Published on 2011-08-22T23:13:14Z Indexed on 2012/03/29 11:42 UTC
Read the original article Hit count: 381

Filed under:
|
|
|
|

While I was importing photos from a SD card in Shotwell, my laptop has crashed (shutdown because of over-heating). Now, I can no longer launch Shotwell:

$ shotwell
**
ERROR:x86_64-linux-gnu/db/VersionTable.c:104:version_table_construct: assertion failed: (res == SQLITE_OK)

If I move the .db file ~/.shotwell/data/photo.db elsewhere so it is no longer present (but backed-up), shotwell will launch, but will rebuild its library, which will be empty. I can re-import the folders shotwell creates, but I lose nearly all meta-data (most importantly the "folders", or events, and their main picture)

Is there a way to repair/rebuild/restore photo.db? How can I see what's inside? how bad it's damaged?

Or is there another way to get back my events and imports?

© Ask Ubuntu or respective owner

Related posts about error

Related posts about crash