Quote:
Originally Posted by tamarissa
Calibre has been crashing the database on my Kobo regularly (about every 3 weeks or so) for about 4 months now. It's usually after hitting the 'eject device' button that I get an error message saying that it was not properly ejected, but once and a while I don't see anything wrong with the eject process. Then the next time I plug it in, I get a "cannot communicate with device" error message because the database is corrupted.
|
Are you running KSM on the device? There was a bug in one version of that which caused problem like you describe. The last version solved this.
Otherwise, you can try closing calibre and ejecting the device using the OS functions and seeing if that helps.
What OS is this happening with?
Quote:
Then I have reset my Kobo, re-download all my books from the Kobo store, connect them back up the matching books in Calibre, then send the rest of my books to the device. Then I have to unplug it, plug it back in, send all the metadata again because none of the series or other info updates when it originally sends, then I have to update all the reading positions... etc. etc. This is a good 4-5 hour process and is extremely frustrating. Especially having to do it so frequently. I found an option to back up the database, but since there's no option to restore the database from that backup, it's basically a useless feature.
|
The database backup is part of my Kobo Utilities plugin. I deliberately didn't write a restore function as if it was needed, you need to be sure of what you are doing. And hopefully, it would never actually be needed, so it would be a waste of time writing it.
The backup is a zip file containing the database plus a few other files. The restore is simply unzipping the file and copying the database to the device replacing the one that is there. Then eject the device and restart it.
Quote:
How do I stop Calibre from ejecting incorrectly when hitting the 'eject device' option?
Or alternatively, if that's not an option, how do I restore the database from the backup?
This is the current message I get when trying to update the metadata:
Code:
calibre, version 3.48.0
ERROR: Error: Error communicating with device
'list' object has no attribute 'set_debugging_title'
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 90, in run
File "site-packages/calibre/gui2/device.py", line 543, in _sync_booklists
File "site-packages/calibre/devices/kobo/driver.py", line 970, in sync_booklists
File "site-packages/calibre/devices/kobo/driver.py", line 2387, in update_device_database_collections
AttributeError: 'list' object has no attribute 'set_debugging_title'
|
Is this happening after getting the error below?
Quote:
This is the current message I get when trying to refresh the book list:
Code:
calibre, version 3.48.0
ERROR: Error: Error communicating with device
CorruptError: database disk image is malformed
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 90, in run
File "site-packages/calibre/gui2/device.py", line 513, in _books
File "site-packages/calibre/devices/kobo/driver.py", line 1932, in books
File "src/cursor.c", line 236, in resetcursor
CorruptError: CorruptError: database disk image is malformed
|
That is one of the possible errors with what you are reporting.