Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2023, 08:33 AM   #1
Odyssee
Connoisseur
Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.
 
Posts: 84
Karma: 25572
Join Date: Jul 2008
Device: Kobo Sage, Kindle Basic 11
error connecting with ereader

When I try to connect calibre with my kobo sage I get this error message:

calibre, version 6.22.0
ERROR: Error: Error communicating with device

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 556, in _books
File "calibre\devices\kobo\driver.py", line 2045, in books
File "calibre\devices\kobo\driver.py", line 1913, in get_bookshelvesforbook
apsw.CorruptError: CorruptError: database disk image is malformed


I already deleted the metadata.db file and then restored the database. To no avail. Any help is much appreciated.

[edit] I also did a reset to the factory settings on my device. Didn't work, again the error.

Last edited by Odyssee; 07-17-2023 at 09:28 AM.
Odyssee is offline   Reply With Quote
Old 07-17-2023, 09:33 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/faq...-touch-glo-etc
kovidgoyal is offline   Reply With Quote
Advert
Old 07-17-2023, 09:50 AM   #3
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: 79,740
Karma: 145864619
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 Odyssee View Post
When I try to connect calibre with my kobo sage I get this error message:

calibre, version 6.22.0
ERROR: Error: Error communicating with device

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 556, in _books
File "calibre\devices\kobo\driver.py", line 2045, in books
File "calibre\devices\kobo\driver.py", line 1913, in get_bookshelvesforbook
apsw.CorruptError: CorruptError: database disk image is malformed


I already deleted the metadata.db file and then restored the database. To no avail. Any help is much appreciated.

[edit] I also did a reset to the factory settings on my device. Didn't work, again the error.
The database on your Kobo is corrupt. Unless you have a recent database backup, you will need to log out and log back in basically starting over.
JSWolf is online now   Reply With Quote
Old 07-17-2023, 10:31 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
If you haven't done so,take time after you fix things and set kobo utilities to back up the DB. I bumped the default copies to 10 as I frequently connect. YMMV a device (restore is a manual file copy+rename)

As you can see, it also supports multiple Kobo's, even if they are not the same model (No, don't think of using a db from a different serial. I have no clue how bad things will get )
Attached Thumbnails
Click image for larger version

Name:	KUbuset.JPG
Views:	188
Size:	125.1 KB
ID:	202686  

Last edited by theducks; 07-17-2023 at 10:34 AM. Reason: obscure ser
theducks is online now   Reply With Quote
Old 07-17-2023, 10:33 AM   #5
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: 79,740
Karma: 145864619
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 theducks View Post
If you haven't done so,take time after you fix things and set kobo utilities to back up the DB. I bumped the default copies to 10 as I frequently connect. YMMV a device (restore is a manual file copy+rename)

As you can see, it also supports multiple Kobo's, even if they are not the same model (No, don't think of using a db from a different serial. I have no clue how bad things will get )
I used my database from my Aura H2O on the Libra 2 and nothing bad happened. I did it when I was setting up the Libra 2 so if something did happen, I could reset everything and start over.
JSWolf is online now   Reply With Quote
Advert
Old 07-17-2023, 11:58 AM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by JSWolf View Post
I used my database from my Aura H2O on the Libra 2 and nothing bad happened. I did it when I was setting up the Libra 2 so if something did happen, I could reset everything and start over.
Not a good idea with a Sage to just overwrite from a Kobo that has no note taking. The config file has extra stuff, though I don't know how it tracks notebooks. It can actually import a notebook from an other Sage or an Elipsa.

I did have an original Aura HD H2), a version c Touch and a Nia. I still have Libra, Libra 2, Sage and Elipsa.

Just because copying a database from one Kobo to another Kobo worked for Jon, doesn't mean it will always work or ever work for someone else. You'd need to have at least the same files the database refers to copied also and the same config.

Last edited by Quoth; 07-17-2023 at 12:02 PM.
Quoth is offline   Reply With Quote
Old 07-18-2023, 03:55 AM   #7
Odyssee
Connoisseur
Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.
 
Posts: 84
Karma: 25572
Join Date: Jul 2008
Device: Kobo Sage, Kindle Basic 11
I think I did everything to solve this problem:
- sign out/sign in
- another (new) USB cable
- another USB port on my laptop
- downgrade of the Kobo firmware just to be sure
- factory settings reset (twice)
and nothing helped. As soon as Calibre 'sees' my device, there is the error message. When I try to see what is in the main memory on the device, there is nothing (although there are books on the ereader).
Strange thing is, I can still upload books to my Kobo Sage via Dropbox but I don't like that method, I vastly prefer Calibre.
Odyssee is offline   Reply With Quote
Old 07-18-2023, 05:32 AM   #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: 79,740
Karma: 145864619
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 Quoth View Post
Just because copying a database from one Kobo to another Kobo worked for Jon, doesn't mean it will always work or ever work for someone else. You'd need to have at least the same files the database refers to copied also and the same config.
I copied all the eBooks as well.
JSWolf is online now   Reply With Quote
Old 07-18-2023, 10:17 AM   #9
Odyssee
Connoisseur
Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.Odyssee knows what's going on.
 
Posts: 84
Karma: 25572
Join Date: Jul 2008
Device: Kobo Sage, Kindle Basic 11
Update and Behold.
I couldn't resign myself to the horrible situation with the communication error. So third time lucky, I tried another reset to the factory settings. Everything is okay now. I transferred my Calibre database of 2000 plus without any trouble. Why it didn't work the previous 2 attempts, I can't fathom.
Odyssee is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preference to disallow connecting to ereader zardoxnet Calibre 14 08-25-2022 06:56 AM
Error connecting to device StickyWicket Devices 6 08-14-2018 05:11 PM
Glo Connecting EReader with my laptop Arran Kobo Reader 10 02-13-2016 03:22 AM
error connecting with device jszentes Devices 3 10-22-2015 10:21 PM
Error connecting to device (again) sedition Kobo Reader 9 02-20-2012 02:42 AM


All times are GMT -4. The time now is 07:57 PM.


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