View Single Post
Old 08-29-2016, 07:24 PM   #1
Ktz
Junior Member
Ktz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2016
Device: Kindle
Corrupted database

So Calibre suddenly stopped loading my library, throwing error "UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in position 763: invalid continuation byte".
OK, I poked around, figured out the db is SQLite, and went and deleted the last added book from database, thinking that might be the issue (book name contains non-english characters. I have a bunch of other books with similar names and they worked, but doesn't hurt to try). So now, if I try to open the library, it tells me that database is corrupted, would you like to try to restore it? Sure thing, it starts restoring, and then fails with "The process cannot access the file because it is being used by another process: u'F:\\CalibreBooks\\metadata.db'". I've checked the file with ProcessExplorer, and the only process touching this file is Calibre itself. It lists that same process twice, so looks like calibre tries to open it twice and fails?

Anyways, is there a way to restore the database?
I'm on Windows 10, Calibre version 2.65.1.

Cheers!
Ktz is offline   Reply With Quote