12-24-2023, 01:55 PM | #1 |
Grand Sorcerer
Posts: 5,050
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, PW SE & Kindle 2022, Kobo Libra 2
|
Database Malformed error
I'm suddenly seeing the Database Malformed error on my Kobo Forma when trying to add new books via Calibre. I don't have this problem with my Libra or Clara. Does anyone know if a factory reset would fix the problem?
I can still add books to my Forma but it doesn't add them to collections, I can work around that manually going forwards but I wouldn't want to do a factory reset and have the same problem for over 3000 books. This is the calibre error message CorruptError: database disk image is malformed Traceback (most recent call last): File "calibre\gui2\device.py", line 104, in run File "calibre\gui2\device.py", line 558, in _books File "calibre\devices\kobo\driver.py", line 2028, in books File "C:\t\t\apsw-42s16m2x\src\cursor.c", line 240, in resetcursor apsw.CorruptError: CorruptError: database disk image is malformed |
12-24-2023, 02:48 PM | #2 |
Grand Sorcerer
Posts: 12,751
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Yes a factory reset will solve the issue by removing the database from the device. Do you have backups created by Calibre / Kobo utilities? If so you could restore the last good backup (if I remember correctly backups of corrected databases have a different name from non corrupted ones).
Sent from my Pixel 6a using Tapatalk |
Advert | |
|
12-24-2023, 03:34 PM | #3 | |
Grand Sorcerer
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
12-24-2023, 06:05 PM | #4 | |
Grand Sorcerer
Posts: 5,050
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, PW SE & Kindle 2022, Kobo Libra 2
|
Quote:
|
|
12-24-2023, 06:05 PM | #5 |
Grand Sorcerer
Posts: 5,050
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, PW SE & Kindle 2022, Kobo Libra 2
|
|
Advert | |
|
12-25-2023, 01:47 AM | #6 |
Bibliophagist
Posts: 40,516
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One item that may help until Kobo releases their next firmware update is to reboot your Forma before connecting to your computer.
|
12-25-2023, 05:19 AM | #7 |
Grand Sorcerer
Posts: 5,050
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, PW SE & Kindle 2022, Kobo Libra 2
|
|
12-25-2023, 05:49 AM | #8 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
12-25-2023, 10:37 AM | #9 |
Guru
Posts: 794
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Sorry, but rebooting IS required for some people. I always go to the home page before connecting my Kobo and if I don't reboot, I get the "database malformed" issue more than half the time. Not sure what triggered the problem to begin with, but once it starts, it continues. (Plus, Kobo has acknowledged that there is a problem and that it will be fixed in the next firmware release.)
Last edited by icallaci; 12-25-2023 at 10:57 AM. |
12-25-2023, 11:04 AM | #10 |
the rook, bossing Never.
Posts: 12,352
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
It's baffling. No problem here. Just checked database again. Regularly updating two Sage and occasionally 3 other Sage, Libra, Elipsa, Libra2 and Nia.
I make sure it's at "My Books" I eject from Calibre and wait not just for bargraph importing, but also the brief screen flash after "My Books" reappears, before disconnecting or reconnecting. SideloadedMode=true (so "My Books" is the "home page") Linux Mint + Mate desktop. Various versions Calibre up to just before 7.2 Current FW. But that doesn't seem to work for everyone. It's very strange. No doubt that's why it's a bug, it's maybe not repeatable for the developers. |
12-25-2023, 01:37 PM | #11 |
Bibliophagist
Posts: 40,516
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Using SideloadedMode may avoid the issue. For me, the consistent item when I got the database errors was the presence of the -shm and -wal files for the KoboReader.sqlite and BookReader.sqlite databases. Those files tells me the database had not been closed before the USB connection completed. I had wondered if my Sage is trying to sync to Kobo and that is taking too long.
|
12-25-2023, 05:01 PM | #12 | |
the rook, bossing Never.
Posts: 12,352
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
In theory when you tap on "Connect", the developers should have arranged that everything is closed, sync ceased, Wifi suspended etc before enabling the USB connection. So what ever way you look at it the problem is "in Kobo", not "how you are holding it". MS had to recently roll back a W10 WiFi update as they han't yet figured how to fix what they broke. Really compared to most consumer items with SW the Kobo track record isn't that bad. I remember MS DOS 4.x and MSDOS 5.x, People had to stay with DOS 3.3 for years till DOS 6.22. And the sheer volume of PCs I replaced Windows ME with either Win98SE or NT 4.0. |
|
12-25-2023, 07:55 PM | #13 | |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
My thought is that with KePub, once you are at the home screen, something may be still open. But with ePub, everything is closed. It works for me going to the home screen after displaying an ePub. I have no tried going to the home screen after a KePub and then connecting to the computer. Last edited by JSWolf; 12-25-2023 at 08:00 PM. |
|
12-25-2023, 08:02 PM | #14 | |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
12-25-2023, 08:22 PM | #15 |
Grand Sorcerer
Posts: 7,534
Karma: 67891011
Join Date: Feb 2009
Device: Kobo Glo HD
|
I thought a factory reset wasn't necessary, just logging out and back in will solve the problem?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clara HD Error: database disk image is malformed | Terisa de morgan | Kobo Reader | 7 | 11-09-2020 08:41 AM |
Strange malformed database error | itimpi | Library Management | 2 | 12-19-2013 10:00 AM |
ERROR - database disk image malformed | Joy1977 | Calibre | 2 | 05-12-2012 12:28 AM |
Kobo error: database disk image is malformed | RSaunders | Devices | 7 | 07-28-2011 10:52 PM |
Error: malformed database schema (books_insert_trg) | cbatalla | Calibre | 4 | 05-08-2010 02:02 PM |