Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2024, 01:00 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,861
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
[Kobo] Having database corruption issues?

This keeps coming up again and again, so I'm making a thread for easy linking. If a moderator is inclined, feel free to sticky it.

The current Kobo firmware has an glitch in which it occasionally fails to close the database while connecting to PC, often resulting in database corruption. If you look at the .kobo folder in your file manager, you may see an sqlite write-ahead log - which indicates that it exported to USB while the sqlite database was open.

I've personally had it happen under two circumstances:
  • connecting while a kepub is open.
  • Using a NickelMenu option to reconnect immediately after importing a large amount (50+) of books.

However, other users have also had it happen under other circumstances, including "at random."

If you have Kobo Utilities installed in Calibre, you'll get an error about a malformed database. If you don't, you may notice if metadata fails to update or the reading position keeps resetting back to the same spot.

Ensuring that you're on the home screen before connecting often (not always) helps with preventing the issue, but rebooting before connection is the most reliable way to keep it from happening. This NickelMenu config will add an easy-access reboot button to the main menu:

Code:
menu_item : main : Reboot Device : power : reboot
If it happens, there's two main ways to fix it.
  • Restore a database backup taken by Kobo Utilities. Extract the contents of the archived ZIP into the .kobo folder. This is preferred as you will not lose any reading positions or annotations.
  • If you have not a backup, logging in and out of your Kobo account. This reinitializes the database to a fresh slate, and re-imports any sideloaded books. Unfortunately, this also results in the loss of the reading positions and annotations for those sideloaded books.

    Even if you don't have a database backup here, Kobo Utilities is still of assistance: it's possible to save the reading position to a custom column beforehand and then restore it back to device afterwards.

Amendments to this post welcome.

Last edited by ownedbycats; 05-19-2024 at 01:52 PM.
ownedbycats is offline   Reply With Quote
Old 05-19-2024, 01:06 PM   #2
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 684
Karma: 8902748
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
I have made the observation, that using the option to completely shut down the device after X minutes helps to prevent any database corruption. I set this to 60 minutes and I also make sure to shut down the device and only start the device after connecting it to my PC, and I haven't had any database corruption for months.

Even though this is anecdotal at best, other users also seem to have good experiences by shutting the device completely off before connecting to a PC.

EDIT
You've already made the suggestion to use a reboot option in Nickelmenu, good idea.

Last edited by rantanplan; 05-19-2024 at 01:28 PM.
rantanplan is offline   Reply With Quote
Old 05-19-2024, 01:42 PM   #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: 74,685
Karma: 130140792
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 rantanplan View Post
I have made the observation, that using the option to completely shut down the device after X minutes helps to prevent any database corruption. I set this to 60 minutes and I also make sure to shut down the device and only start the device after connecting it to my PC, and I haven't had any database corruption for months.

Even though this is anecdotal at best, other users also seem to have good experiences by shutting the device completely off before connecting to a PC.

EDIT
You've already made the suggestion to use a reboot option in Nickelmenu, good idea.
No need to shut down when not being used. That actually uses more battery doing that then a reboot just before plugging into the USB.
JSWolf is offline   Reply With Quote
Old 05-19-2024, 02:43 PM   #4
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 684
Karma: 8902748
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
Quote:
Originally Posted by JSWolf View Post
No need to shut down when not being used. That actually uses more battery doing that then a reboot just before plugging into the USB.

I have ready access to several power outlets in my home, so I don’t have to worry about that 😁
rantanplan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kobo] Database corruption - thoughts? jonmach Devices 16 11-29-2023 09:04 AM
Kobo Forma possible database corruption, books keep "disappearing" pixelpaperyarn Kobo Reader 6 11-16-2023 04:47 PM
Database Corruption / FW 3.5.0 PeterT Kobo Reader 7 08-26-2014 04:10 PM
Database Corruption during Installation aronan Calibre 3 09-10-2010 01:17 AM
Database Corruption!! Alexander Turcic Announcements 0 07-22-2003 10:08 AM


All times are GMT -4. The time now is 09:20 AM.


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