Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2015, 04:30 AM   #1
myki
Zealot
myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.
 
Posts: 126
Karma: 20236
Join Date: May 2014
Device: Kinde PW v1, Kobo H2O, Onyx Boox T68
DB image is malformed

Greetings,

I have launched the "db check integrity.sh" from the KSM menu, and i got :
"Error: database disk image is malformed".

Do you know a way to cure my database ? (I have no backup)
Thanx in advance


Ps :
Each time I use Calibre to send books to my ereader, the database corrupts, and if i reconnect my device, Calibre tells me "Error communicating with device".
I first suspected my USB ports more than Calibre, but when i copy/past books i meet no problems... I am open to any suggestions

Edit : For my problem with Calibre, I will open a new thread

Last edited by myki; 03-28-2015 at 04:58 AM.
myki is offline   Reply With Quote
Old 03-28-2015, 05:11 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Did you press the details button on the message from calibre? I'd be willing to bet that it shows "database disk image is malformed" or words to that effect. KSM is telling you the database on the device is corrupt. As calibre reads that database when getting the list of books, that is the most likely reason for the error.

Unless you have a backup of the database, the fix is to signout of your Kobo account on the device. This will remove the database and reboot the device. Then it will take you through the setup steps and reload the sideloaded books.
davidfor is offline   Reply With Quote
Advert
Old 03-28-2015, 07:03 AM   #3
booklover6
Grand Sorcerer
booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.
 
booklover6's Avatar
 
Posts: 6,545
Karma: 14008730
Join Date: May 2008
Location: PA (USA)
Device: Kobo Clara, 2E, Libre 1, PW4, PW5, 2022 Kindle, Kobo Libre Colour
The fastest way to do this is via the desktop application. Doing it over wifi takes much longer.
booklover6 is offline   Reply With Quote
Old 03-28-2015, 07:31 AM   #4
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
myki, I guess the fmon problem (killing nickel untimely) created the corruption of the database. Therefore, whatever you are doing in order to recreate your database, start nickel only via "start nickel_no_fmon.sh" until everything is settled (that means all thumbnails of the "dangerous" files are created, and your database is uncorrupted). Otherwise you are caught in a circle. Already when you intend to log in/out of your account, start nickel without involving fmon. (After logging in and out nickel will probably have to create the thumbnails anew.)

Last edited by tshering; 03-28-2015 at 08:07 AM.
tshering is offline   Reply With Quote
Old 03-28-2015, 08:09 AM   #5
myki
Zealot
myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.
 
Posts: 126
Karma: 20236
Join Date: May 2014
Device: Kinde PW v1, Kobo H2O, Onyx Boox T68
Thanks for your help tshering, I now have a clean database.
But my problem is that my database corrupts as soon as I send a book with Calibre (even just one !), or when Calibre refresh the fields about shelves in the DB.

Here is the log, if it can helps :
Code:
calibre, version 2.22.0
ERROR: Error: Error communicating with device

database disk image is malformed

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 87, in run
  File "site-packages\calibre\gui2\device.py", line 503, in _books
  File "site-packages\calibre\devices\kobo\driver.py", line 1787, in books
  File "site-packages\calibre\devices\kobo\driver.py", line 1663, in get_bookshelvesforbook
DatabaseError: database disk image is malformed
The only way to get my kobo works, is to forget Calibre for now and copy/paste my books, and use the auto shelves script...

Last edited by myki; 03-28-2015 at 08:12 AM.
myki is offline   Reply With Quote
Advert
Old 03-28-2015, 08:30 AM   #6
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
I do not have any experience with sending books by calibre, but from the log I have the expression, the database was already corrupted when calibre tried to access it.

Note: KSM has the ability to make back ups of the database. The problem is that the restore function is currently broken. So do not get tricked by that.

Last edited by tshering; 03-28-2015 at 08:34 AM.
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
database disk image is malformed fxp33 Calibre 10 09-02-2015 11:58 PM
database disk image is malformed bartveld Devices 5 01-27-2015 06:25 PM
Touch Database Disk Image Malformed TheArtfulDodger Kobo Reader 7 11-20-2014 01:22 PM
Database disk image is malformed moonsjine Library Management 1 06-16-2012 04:03 AM
database disk image is malformed sirbruce Calibre 12 06-26-2009 09:06 PM


All times are GMT -4. The time now is 12:34 PM.


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