View Single Post
Old 09-16-2019, 10:15 PM   #1
tamarissa
Connoisseur
tamarissa began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura H2O
Calibre crashes Kobo database every three weeks or so...

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.

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.

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'
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
tamarissa is offline   Reply With Quote