![]() |
#1 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Jan 2013
Location: Tasmania, Australia
Device: Kobo H2O
|
database disk image malformed
When trying to send books to my Kobo I get the following error.
calibre, version 6.3.0 ERROR: Error: Error communicating with device CorruptError: database disk image is malformed Traceback (most recent call last): File "calibre/gui2/device.py", line 88, in run File "calibre/gui2/device.py", line 540, in _books File "calibre/devices/kobo/driver.py", line 1924, in books File "calibre/devices/kobo/driver.py", line 3056, in get_bookshelflist apsw.CorruptError: CorruptError: database disk image is malformed Calibre recognises the Kobo but will not communicate. Any help would be much appreciated. Since posting this I have found a post from 2015 that recommended signing out and in on the Kobo account. I have done this and the issue has been fixed. Last edited by Seth H; 08-12-2022 at 07:45 PM. Reason: issue fixed |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Unless you have a recent backup of the database, that is the best solution. The only other is to do a factory reset. Unfortunately, there are a few things that can corrupt the database. About the only one that is in our control is to make sure the device is safely ejected after connecting to a computer.
And, again unfortunately, you didn't have to go back to 2015 for that advice. The question is posted most months here and the Kobo forum. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 10794
Join Date: Jan 2016
Location: Italy
Device: Kobo Glo HD
|
Quote:
How does one backup the database? And how does one RESTORE the database? One tries to safely eject the Kobo, but it and the computer are not always forthcoming... ![]() Please feel free to point me out to another thread... ![]() |
|
![]() |
![]() |
![]() |
#4 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,806
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Unfortunately, since @davidfor passed away last August, he will not be answering your questions.
You use the KoboUtilities plugin to backup the database. The configuration is on the second tab of the plugin configuration dialog. You connect your Kobo to your computer. Browse to the directory on your computer where the database backups are stored (the default naming convention gives a filename such as KoboReader-KoboClaraHD-N24985011111-20240229-095905.zip), open the latest database backup file and copy the two .sqlite files to the .kobo directory on your Kobo. Safely eject and then restart (the restart is likely unnecessary but it's what I do). Quote:
Between the reboot before connecting and safely ejecting before disconnecting, I have not seen any database issues in the last 5 months with 4.38.21908 on my Sage which is my go to ereader. |
|
![]() |
![]() |
![]() |
#5 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 10794
Join Date: Jan 2016
Location: Italy
Device: Kobo Glo HD
|
Thanks!
Given the times one gets the "database disk image malformed" error this answer should probably be pinned. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,256
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Always connect WITH the HOME screen showing (never with a book open) Always EJECT WAIT before doing anything else with the device. It may not be instant before SAFE to eject Then WAIT for the device to finish processing (happens when adding), again. It takes time for the Eject to be recognized, then the check for new to complete. FINALLY, you can pull the plug ![]() FWIW other than some bad Kobo FW, I have had this happen 1 time between my Aura2 and my Libra2. Both get LOTS of use. |
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2020
Device: Kindle
|
database disk image is malformed
Hello,
I read through this thread, but didn't see anything that spoke to my particular issue. I am getting this error even though I have not connected any device to calibre to download books. I was just trying to delete a second copy of a book from my library and this error popped up. It keeps showing up every time I try to delete a book. Can anyone help? |
![]() |
![]() |
![]() |
#8 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,806
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Since you are not connecting any Kobo devices, this suggests that your calibre database is corrupted. You could try a database_restore using the calibredb command line option.
Run it once without the -r or --really-do-it option and if no errors, then run it again with the -r option. |
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,256
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Sign out of your device.
The sign it back in. Malformed means DAMAGED. Every piece of data has a pattern that MUST match where it lands. Malformed may mean something like a Letter is trying to land in a location for Logical... A Mismatch. It needs to rebuild itself. Data (reading position,,,) may be lost. Common causes are disconnecting without ejecting AND WAITING for the OK, A power fail during transfer, Kitty on pulls on cable... |
![]() |
![]() |
![]() |
#10 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,640
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Folks.. please read the original post; no device connected to calibre.
Sent from my Pixel 7a using Tapatalk |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2020
Device: Kindle
|
Ok, thanks for your help everyone. I appreciate it.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
database disk image is malformed | fxp33 | Calibre | 10 | 09-02-2015 11:58 PM |
database disk image is malformed | bartveld | Devices | 5 | 01-27-2015 06:25 PM |
Touch Database Disk Image Malformed | TheArtfulDodger | Kobo Reader | 7 | 11-20-2014 01:22 PM |
Database disk image is malformed | alanpmcd | Calibre | 2 | 05-31-2012 04:12 PM |
database disk image is malformed | sirbruce | Calibre | 12 | 06-26-2009 09:06 PM |