View Single Post
Old 05-14-2023, 12:39 PM   #1
elstupid
Junior Member
elstupid began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2023
Device: Kobo Clara 2E
Database corrupt, what can I do?

Hello. My Calibre was working fine until this afternoon. I select like 100 ebooks and pressed delete. After that I got an error about deleting files.
After trying to restart Calibre, it's now complaining about a corrupt database.

Code:
Traceback (most recent call last):
  File "calibre\db\backend.py", line 1442, in read_tables
  File "calibre\db\tables.py", line 113, in read
apsw.CorruptError: CorruptError: database disk image is malformed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\gui2\main.py", line 331, in initialize_db
  File "calibre\db\legacy.py", line 200, in __init__
  File "calibre\db\cache.py", line 434, in init
  File "calibre\db\backend.py", line 1439, in read_tables
apsw.CorruptError: CorruptError: database disk image is malformed
Repairing doesn't work. Calibre Web doesn't mind, it still works. Also I can open the database with SQLiteSpy. Any idea what could be the problem and what to do? Or even why this happened?

Thanks!
elstupid is offline   Reply With Quote