View Single Post
Old 10-05-2010, 10:36 PM   #1
djorkboy began at the beginning.
Posts: 16
Karma: 10
Join Date: Sep 2010
Device: Kobo
"Database Disk Image is malformed" when connecting to Calibre after adding new books

I keep getting errors in Calibre when trying to add books to the Kobo.

I tried to add a bunch of new books and a couple were having problems (badly formed epubs I think), so I deleted the iffy books from Calibre, after much trying, testing and head-scratching I found the only way to get the Kobo working again was to manually delete all books from the Kobo then do the SQL database replacement referred to in the sticky.

This is the 3rd time in the last 24 hours I have had to wipe and start again. I replace the SQL database, start adding my books 100 at a time (or 50 at a time, or 20 at a time, doesn't seem to matter) and then disconnect the device to let it process the new content, then I go back and add some more books etc etc.

Eventually, some times after almost all the books are loaded, sometimes after less than half are loaded, I will reconnect the device to add more books after the last lot were processed successfully by the Kobo and Calibre will give me an error saying it cannot connect to the device and the details show it as a "database disk image is malformed" error.

From my checking it looks like either Calibre or (more likely) the Kobo is creating a corrupted file in the .kobo/images folder.

At this point if I disconnect the Kobo it might work fine, but will no longer connect to Calibre to load new books or it is toast, it won't start and I have to go back and wipe all the books from it manually, let Windows do it's disk check (If I don't do this the corrupted file in the .kobo/images folder won't delete) then reload the SQL database and start again, even though it was working fine before I connected it to the PC.

Anyone seen this before or know what I should do?

Full text of error message....

database disk image is malformed

Traceback (most recent call last):
File "site-packages\calibre\gui2\", line 69, in run
File "site-packages\calibre\gui2\", line 289, in _books
File "site-packages\calibre\devices\kobo\", line 186, in books
File "site-packages\calibre\devices\kobo\", line 567, in sync_booklists
File "site-packages\calibre\devices\kobo\", line 458, in update_device_database_collections
DatabaseError: database disk image is malformed
djorkboy is offline   Reply With Quote