|
|
Thread Tools | Search this Thread |
10-05-2010, 09:36 PM | #1 |
Member
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\device.py", line 69, in run File "site-packages\calibre\gui2\device.py", line 289, in _books File "site-packages\calibre\devices\kobo\driver.py", line 186, in books File "site-packages\calibre\devices\kobo\driver.py", line 567, in sync_booklists File "site-packages\calibre\devices\kobo\driver.py", line 458, in update_device_database_collections DatabaseError: database disk image is malformed |
10-05-2010, 10:27 PM | #2 |
Geographically Restricted
Posts: 2,629
Karma: 14933353
Join Date: Dec 2008
Location: Perth, Australia
Device: Sony PRS-T3, Kindle Voyage, iPad Air2, Nexus7v2
|
I would suggest you post this issue in Calibre forum as well. Kovid Goyal frequents there and would certainly be able to help.
|
10-05-2010, 11:37 PM | #3 |
Enthusiast
Posts: 36
Karma: 12
Join Date: Aug 2010
Device: Kobo eReader
|
Reloading your books manually (with a clean DB) would help diagnose whether the problem is with your Kobo or with Calibre, but if you're getting actual disk errors (not just a corrupted file) it's presumably a problem with the Kobo.
|
10-06-2010, 03:34 AM | #4 |
Member
Posts: 16
Karma: 10
Join Date: Sep 2010
Device: Kobo
|
I posted my question over in the Calibre forum.
I do believe the underlying problem is with the Kobo not with Calibre despite the fact that the Borders app is not having any problem synching with the device. Yesterday one time it happened I found that one of the image files was corrupt and I had to get Windows to scan the kobo and fix the file before I could delete it. This time I copied the whole .kobo\images folder to my desktop, batch renamed all the files from .parsed to .jpg in the hope that I could check the preview to see if one was corrupted, but all of them look fine. I will try loading some books by drag-and-drop and see what that does. |
10-06-2010, 05:46 PM | #5 |
Member
Posts: 16
Karma: 10
Join Date: Sep 2010
Device: Kobo
|
So I loaded some books manually and the Kobo went through it's "processing new content" procedure for about as long as I would expect for that amount of books to take but once it was finished none of the new books showed up.
Now up to wipe number 5 and getting frustrated. |
10-06-2010, 06:31 PM | #6 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: kobo
|
Quote:
I ended up deleting everything off the kobo drive and running windows chkdsk against it. I then replaced the contents of the drive, except I made sure the images directory was empty and made sure the sqllite db was not copied over. I then booted up the device and it had no titles (as the SD card was not inserted). I turned off the device, inserted the SD card then booted it back up. At that point, the db was rebuilt (which took quite a long time) and the device began to behave properly once more. Before going through the procedure above, I spent a solid 2hrs trying a variety of different things. |
|
10-06-2010, 07:56 PM | #7 | |
Member
Posts: 16
Karma: 10
Join Date: Sep 2010
Device: Kobo
|
Quote:
From your post it seems you keep all your content on the SD card, I was thinking of doing this, do you find it makes the device any faster, slower or no difference when you keep the Kobo storage empty and store everything on the SD? |
|
10-06-2010, 08:57 PM | #8 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
From later responses it looks like you are having other issues with the device. Instead of doing the chkdsk I would be tempted to reformat that drive. That should clear up any file system issues. However, you will need to make sure that you have a backup of any of the files that you want from the drive (like Desktop Installers). You should probably also deauthorize that device with Adobe Digital Editions if you have used that before formating the device. NOTE!!! I have not attempted to format the drive on my kobo. You may want to ask Sameer or someone else at Kobo to see if that is okay. Logic tells me it should be okay but logic tells me a lot of things that seem to be downright wrong... A bug listed at http://bugs.calibre-ebook.com/ticket/6849 has a similar issue and as far as I know the issue was the device/database not Calibre. Update this if you find differently... Tim |
|
10-06-2010, 09:31 PM | #9 |
Member
Posts: 16
Karma: 10
Join Date: Sep 2010
Device: Kobo
|
I'm starting to wonder if the whole issue of file/database corruption may be caused by data loss from a dodgy USB port on the Kobo? I am finding that sometimes when I plug it in neither the PC nor the Kobo recognise the connection. If I disconnect and reconnect it will work.
Any thoughts on whether this would be possible? If the USB connection was flakey could a file or two get corrupted? My IT brain says no, the USB is either connected or not connected, it's not really possible for it to be connected yet still have degradation of the data. But the thing is, when I had all the problems I was mostly working while lying in bed (injured my leg and was immobile for a few days) and the Kobo was never lying flat, was getting moved around a lot etc. Today I have been very careful to keep the Kobo in precisely the same spot and not move it around at all while the data is being transferred and it's working really well, almost 2/3 way through loading all my books and it's doing fine. Any previous known issue of dodgy USB ports on Kobos? |
10-06-2010, 10:42 PM | #10 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: kobo
|
Quote:
This is certainly a possibility. I had resigned myself to using the SD exclusively for epubs and pdfs - I don't know if its slower or not, but I can easily swap a card to manage content or deal with a corrupt card. Food for thought, I suppose. |
|
10-07-2010, 07:54 AM | #11 |
Grand Sorcerer
Posts: 12,250
Karma: 74000002
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I wonder if there would be any benefit in heading to a Chapters store and having them redo the 1.4 upgrade from the SD Card route.....
|
10-07-2010, 07:59 AM | #12 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Tim |
|
10-07-2010, 08:04 AM | #13 |
Geographically Restricted
Posts: 2,629
Karma: 14933353
Join Date: Dec 2008
Location: Perth, Australia
Device: Sony PRS-T3, Kindle Voyage, iPad Air2, Nexus7v2
|
|
10-07-2010, 08:47 PM | #14 |
Member
Posts: 16
Karma: 10
Join Date: Sep 2010
Device: Kobo
|
Mine is a black 1.4 revision Kobo from Borders Australia, but I have used 3 different USB cables with it, I don't even remember which one came with the device.
Today everything is working well, managed to get all my books loaded via Calibre with no errors. This makes me feel more like the USB port is dodgy, I'm gonna have to run some more tests on it, if it is a bad USB port I want to make sure I get the device replaced before the warranty runs out. Anyone had any experiences with returning a Kobo to Borders Australia? Do they just swap the thing or will they want to send it off to Canada for repair? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Database Disk Image is malformed" when connecting to Calibre after adding new books | djorkboy | Calibre | 1 | 10-06-2010 08:59 PM |
Propagate a new "Save to Disk" Folder Structure using Calibre? | Trickery | Calibre | 3 | 09-11-2010 09:27 PM |
database disk image is malformed | sirbruce | Calibre | 12 | 06-26-2009 09:06 PM |
DatabaseError: database disk image is malformed | moggie | Calibre | 2 | 12-13-2008 08:56 AM |
Adding "Wanted" books to Calibre database? | itimpi | Calibre | 6 | 11-26-2008 03:14 PM |