![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
|
[Kobo] database disk image is malformed
I have two Kobo devices. On one of them I have no problem, the other suddenly can't communicate with Calibre (or vice versa, rather).
The error message is this: CorruptError: database disk image is malformed Traceback (most recent call last): File "calibre\gui2\device.py", line 89, in run File "calibre\gui2\device.py", line 515, in _books File "calibre\devices\kobo\driver.py", line 1878, in books File "calibre\devices\kobo\driver.py", line 2970, in get_bookshelflist apsw.CorruptError: CorruptError: database disk image is malformed Is there a remedy for this? The device functions fine, except that the last batch of books I had sideloaded have suddenly been wiped from it. And I now get this message. (Windows 10. Calibre 5.22.1 (64-bit) |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
|
Well, I hadn't seen that before. That basically amounts to: don't use Kobo devices.
Having just spent hours getting a 1000+ library on the device, I don't relish the thought of spending hours doing that again. Because I assume even logging out and logging back in and letting it rebuild the database means I've lost all of the shelving for the books that are present. Back to the shop with this stupid Elipsa. The Forma never gave me any such problems. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,294
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Sorry but I think Kovid is exaggerating there.
Yes the Kobo relies on a database on the device to keep track of books / collections (shelves) / reading status etc. Yes; this database can become damaged but this is rare, and quite often can be linked to either older mods (for instance at one time 3rd party add-ons installed to the partition where the books / database are located, preventing an unmount of the partition when a USB connection was made), or to crashes of the Kobo. I've used Kobos for years (since the original Bluetooth version) and have only had a couple of db corruptions (and I've probably seen more f/w builds than most people). The Kobo utilities plugin has the ability to perform backups of the db, either daily or on every connection, and also can validate and compress the db. Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've been using my H2O for 6 years 7 months and I've never had a corrupt database. I do use Kobo Utilities to backup the database every time I connect to Calibre. While what Kovid pointed out may have been true back when it was written, it's not true now. If it was, many more people would be posting about it.
Most of the time a corrupt database is cause by an incorrect eject. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,662
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I have noted that on my system Adobe Digital Editions interferes with ejection if it's running. The OS says the device has been safely ejected but the next time I connect it to Calibre there's an angry error. Re-connecting a second time always works though.
Last edited by ownedbycats; 06-29-2021 at 09:39 PM. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
![]()
Well, add me to @franklekens. The identical problem just happened to me too. I've had five Kobo readers and never have I had this occur. Since it's new, I was in the process of sideloading additional books and did not yet have a backup. I hope this isn't the beginning of a buggy new device!
I hope the logout/login is the answer. BTW, 1) I always use Kobo's supplied cables, 2) I always confirm there is no activity in progress before ejecting, and 3) never have any other apps open at the time (Win 10). Code:
CorruptError: database disk image is malformed Traceback (most recent call last): File "calibre\gui2\device.py", line 89, in run File "calibre\gui2\device.py", line 515, in _books File "calibre\devices\kobo\driver.py", line 1974, in books apsw.CorruptError: CorruptError: database disk image is malformed Last edited by Skydog; 06-29-2021 at 09:27 PM. Reason: Added info. |
![]() |
![]() |
![]() |
#8 |
Member
![]() ![]() Posts: 15
Karma: 138
Join Date: Nov 2010
Device: Onyx Tab Ultra C; Quaderno A4 Gen2; Sage; Elipsa
|
I am seeing the same recurring problem on the Ellipsa. I have tried hard reset, log out/in, and adding books incrementally (instead of all at once). I am still seeing the problem on Calibre 5.23 and Ellipsa firmware 4.28.17925. Most likely a problem with Ellipsa firmware. I have no issues with my Forma.
calibre, version 5.23.0 ERROR: Error: Error communicating with device CorruptError: database disk image is malformed Traceback (most recent call last): File "calibre\gui2\device.py", line 89, in run File "calibre\gui2\device.py", line 515, in _books File "calibre\devices\kobo\driver.py", line 1974, in books apsw.CorruptError: CorruptError: database disk image is malformed |
![]() |
![]() |
![]() |
#9 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,727
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
For what it's worth, my current experience with an Elipsa is a customer who is looking at them as replacements for their aging Sony DPT eNote devices. After sideloading the corporate content and "safely" ejecting the Elipsa, they have been shutting the connected computer down before unplugging the USB cable. Not exactly the speediest process but so far they have not seen any database corruption. |
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Aug 2020
Device: Kobo Libra
|
Hello,
i have the same issue with my Kobo Libra HD (4.26.16704) : Quote:
I'm uisng KoboUtilities pour read/update the reading status of books on my Kobo. Do you also using this function ? Last edited by dem1980fr; 08-14-2021 at 08:33 AM. |
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Aug 2020
Device: Kobo Libra
|
I have hard reset my Kobo (no more kmon, no more nickelmenu, no more ebook).
I have then copy my ebooks from calibre to the Kobo and everything is working. I ask the KoboUtilities plugin to synchronise reading status and the i have the error. I think when this plugins try to read or write the reading status of ebbok, something is wrong. |
![]() |
![]() |
![]() |
#13 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
~
Quote:
Quote:
The reasons for the database being corrupted are unknown. It can happen if the device is not ejected properly. I think it would also happen if two applications tried to access the database at the same time. So running calibre and the Kobo desktop application at the same time is not recommended. Otherwise, it is something happening when using the device. Something might be crashing and corrupting the database. But, I don't know what. In the Kobo forum I recently made some suggestions for trying to find when it happens, but, there have been no results from that yet. And for the record, it would be a rare day where I didn't plug one or more of my Kobo ereaders in. And I fetch the reading status from them when I do. I rarely see a corrupt database. And mostly I know because I messed up and accidentally unplugged the device. I would love to be able to say what it is that is causing this, but, I just don't know. |
||
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Aug 2020
Device: Kobo Libra
|
Thank you for your answer.
I have only one Kobo and i don't use the Kobo Desktop, only Calibre. I always disconnect the Kobo from the Calibre device option or from the Eject option from Win10. I was able to reproduce it because i had the problem on my previous setup and i thought that hard reset the device will help. So i start from a device that was hard reset (no more ebooks on it, no more custom program, the device was "formated") and i then have the same problem on the "new" device. |
![]() |
![]() |
![]() |
#15 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I mentioned discussion in the Kobo forum about working out the cause. This is inhttps://www.mobileread.com/forums/showthread.php?t=340260. There are suggestions that in that for trying to determine when the corruption happens. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in Kobo Glo: database disk image is malformed | Carpidor | Devices | 2 | 08-07-2015 07:17 AM |
Calibre + Kobo Touch error message : database disk image is malformed | Bernard75 | Devices | 1 | 04-07-2012 03:46 PM |
Kobo error: database disk image is malformed | RSaunders | Devices | 7 | 07-28-2011 09:52 PM |
Error communicating with device(Kobo Wireless)/database disk image is malformed | cotej1977 | Devices | 2 | 04-26-2011 09:34 PM |
Error communicating with device(Kobo Wireless)/database disk image is malformed | cotej1977 | Kobo Reader | 1 | 04-24-2011 08:14 AM |