View Single Post
Old 07-26-2022, 01:06 PM   #31
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: 46,840
Karma: 169712582
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Maria Loranger View Post
Well, that was yesterday.
Today, when attempting to connect the Kobo to Calibre Portable, I get:

"calibre, version 6.1.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 2024, in books
apsw.CorruptError: CorruptError: database disk image is malformed"

Anybody can tell me what does this mean?!

Thanks!
Very bad news. That is telling you that the database image on your Kobo has been damaged. If you have not configured the database backup in calibre, you can try sigining out and signing back in on your Kobo which will generate a new database and then import any sideloaded ebooks. You will lose any book stats.

To setup the automated backup, click on the arrow beside the KoboUtilities icon and select Customize plug-in. On the Devices tab, click on on of the backup options (I use the daily one). Under destination, browse to a location to store the backups. I use Copies to keep to save 5 copies to keep disk space use down and use the Compress database with config files. This will save your configuration no more than once per day as a .zip file.

If you have configured backing up your Kobo database on connect, you can copy the KoboReader.sqlite file found in the backup to your Kobo's .kobo directory.

Edit: The most common cause for database corruption that I've found is not safely ejecting your Kobo before unplugging the USB cable. Generally, I wait for the Kobo to start importing or to return to the GUI before I pull the cable.
Attached Thumbnails
Click image for larger version

Name:	database_backup_config.png
Views:	1199
Size:	41.0 KB
ID:	195339  

Last edited by DNSB; 07-26-2022 at 01:08 PM. Reason: Added comment about corruption cause
DNSB is online now   Reply With Quote