Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-23-2024, 12:39 PM   #1
lumping-sugar66
Connoisseur
lumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trolls
 
lumping-sugar66's Avatar
 
Posts: 95
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
How do I restore the database to backup? - database disk image is malformed

Quote:
calibre, version 7.10.0
ERROR: Error: Error communicating with device

CorruptError: database disk image is malformed

Traceback (most recent call last):
File "calibre\gui2\device.py", line 111, in run
File "calibre\gui2\device.py", line 595, in _sync_booklists
File "calibre_plugins.kobotouch_extended.device.driver" , line 513, in sync_booklists
File "calibre\devices\kobo\driver.py", line 1016, in sync_booklists
File "calibre\devices\kobo\driver.py", line 2677, in update_device_database_collections
File "calibre\devices\kobo\driver.py", line 2973, in remove_book_from_device_bookshelves
File "C:\t\t\apsw-42s16m2x\src\cursor.c", line 240, in resetcursor
apsw.CorruptError: CorruptError: database disk image is malformed
Another day another corrupt database issue. Can someone let me know which database file is the one I need to replace? Because I have a backup, but the name is simply "backup.sqlite" and I'm not sure with sqlite file to replace and koboutilities doesn't seem to have any option to restore from backup.

Any help is appreciated.

Thank you
lumping-sugar66 is offline   Reply With Quote
Old 05-23-2024, 03:36 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,545
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
What did you get the backup from? You should simply be able to rename it as KoboReader.sqlite and copy it to the .kobo directory on your Kobo.

If you have the Kobo Utilities installed on calibre (for me, a must have), on the second page of the configuration dialog, you can configure an automatic backup. See the attached image for how I configured it. You can simply extract the two .sqlite from the created .zip file and copy them back to your Kobo.

My workaround for the database corruption issue is to reboot my Kobo ereaders before connecting them to the computer. This is done from NickelMenu. The NM config file entries I use are (allow reboot from Main, My Books and while reading):

Code:
menu_item : main    : Reboot             : power          : reboot
menu_item : library : Reboot             : power          : reboot
menu_item : reader  : Reboot             : power          : reboot
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-05-23 113102.png
Views:	136
Size:	38.5 KB
ID:	208449  
DNSB is offline   Reply With Quote
Advert
Old 05-23-2024, 08:52 PM   #3
lumping-sugar66
Connoisseur
lumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trolls
 
lumping-sugar66's Avatar
 
Posts: 95
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
I got it using calibre kobo utilities plugin. It works like a save as feature for an sqlite file but it doesn’t actually show you which one it is. It is interesting you were saying it’s a zip file but for me it’s a sqlite file. But mine was a manual operation not an automated back up.
lumping-sugar66 is offline   Reply With Quote
Old 05-23-2024, 09:22 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,545
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by lumping-sugar66 View Post
I got it using calibre kobo utilities plugin. It works like a save as feature for an sqlite file but it doesn’t actually show you which one it is. It is interesting you were saying it’s a zip file but for me it’s a sqlite file. But mine was a manual operation not an automated back up.
The manual backup backs up only the KoboReader.sqlite file. I prefer the automated update since I can't forget to do it and it backs up both sqlite databases plus some extras into a .zip file. The file name will also reflect the device and it's serial number with date and time.

The first part of my reply was in regards to your manual backup. The second part referred to Kobo Utilities automated backup which generates a .zip file.
Attached Thumbnails
Click image for larger version

Name:	database_backup_zip.png
Views:	123
Size:	39.6 KB
ID:	208452  
DNSB is offline   Reply With Quote
Old 09-02-2024, 01:10 PM   #5
Mic_Jacq
Junior Member
Mic_Jacq began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2024
Location: France
Device: Kobo Aura HD, Kobo Aura ONE, Kobo NIA, Kobo Elipsa 2E
Hello,
The right file to replace is : KoboReader.sqlite
The corrupted original KoboReader.sqlite file has therefore to be deleted ou renamed.
The backup.sqlite file has to be be copied in the .kobo directory of the reader then renamed as KoboReader.sqlite.
Enjoy your reader,
Have a good day,
--
Mic_Jacq
Mic_Jacq is offline   Reply With Quote
Advert
Old 09-06-2024, 10:10 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Mic_Jacq View Post
Hello,
The right file to replace is : KoboReader.sqlite
The corrupted original KoboReader.sqlite file has therefore to be deleted ou renamed.
The backup.sqlite file has to be be copied in the .kobo directory of the reader then renamed as KoboReader.sqlite.
Enjoy your reader,
Have a good day,
--
Mic_Jacq
  1. Without calibre running, plug in the Kobo to the USB port.
  2. Copy the databases (KoboReader.sqlite anf BookReader.sqlite) over the existing databases.
  3. Run Windows Explorer and eject the Kobo.
  4. Press and hold the power button until the Kobo starts to reboot.
  5. After it reboots, you may get some eBooks importing depending what you added since the last backup.

That's it. Done.

Last edited by JSWolf; 09-10-2024 at 12:56 PM.
JSWolf is offline   Reply With Quote
Old 09-06-2024, 02:40 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,545
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
One item to remember is that there are two databases (KoboReader.sqlite and BookReader.sqlite). Both are included in the Kobo Utilities generated backup file and both should be replaced when restoring. While not as common, davidfor and I noted corruption in both databases.
DNSB is offline   Reply With Quote
Old 09-10-2024, 12:57 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
One item to remember is that there are two databases (KoboReader.sqlite and BookReader.sqlite). Both are included in the Kobo Utilities generated backup file and both should be replaced when restoring. While not as common, davidfor and I noted corruption in both databases.
I edited my post to say to restore both databases. If both can become corrupt, then there's no reason not to restore both.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
database disk image malformed Seth H Devices 12 08-31-2024 06:58 AM
Clara HD Database disk image is malformed? JDesat Kobo Reader 25 02-04-2022 11:43 AM
database disk image is malformed bartveld Devices 5 01-27-2015 07:25 PM
Touch Database Disk Image Malformed TheArtfulDodger Kobo Reader 7 11-20-2014 02:22 PM
Database disk image is malformed alanpmcd Calibre 2 05-31-2012 05:12 PM


All times are GMT -4. The time now is 10:55 PM.


MobileRead.com is a privately owned, operated and funded community.