![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,781
Karma: 69470831
Join Date: Feb 2009
Device: Kobo Clara 2E
|
|
![]() |
![]() |
![]() |
#17 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Actually it was Calibre when I first connected the device. And also, when I use KoboUtilities -> Database -> Check the device database.
Are there other ways I can be told the database is corrupt? How would Windows do that? As far as I know it doesn't check the device - it merely connects it ----- No? In all my years of using Readers that is the only thing that has ever given me that warning. I think I'm getting even more confused than when I began this. LOL. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
Quote:
It should either kill that stuff, or wait for it to finish before offering to connect the USB. Usually it does wait but not always. That's why rebooting before connecting helps. I'd also recommend turning off wifi *before* rebooting, otherwise it might start a wifi sync after rebooting which will also cause issues. If you know you just downloaded a bunch of new stuff, it wouldn't hurt to wait a few minutes for things to settle. And ignore the advise about rolling back firmware. All the firmwares before 4.41 are worse for this problem. |
|
![]() |
![]() |
![]() |
#19 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
Mine is a bit different. Boiled down it's simply this: Is the database corrupt or not? Does anyone know what the device does on reboot? Does it rewrite the database? That would be a huge piece of the puzzle - no? Thanks. |
|
![]() |
![]() |
![]() |
#20 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
It's hard to say. The database can be fine but the data in it corrupt and that causes issues too, but it's not detectable with database tools.
The only way to be 100% sure your database isn't corrupt is to delete it and let the kobo rebuild it. Obviously that's a solution of last resort, and I do it only when my kobo's misbehavior starts becoming intolerable. Note also that there are *two* databases, and one of them is encrypted, so we can't even check that one. If the encrypted database is corrupt, the online accounts (kobo, overdrive at least) may not work or sync correctly. Quote:
Last edited by compurandom; 01-25-2025 at 02:12 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,136
Karma: 78857258
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
The database is not rewritten on reboot. If the corruption is too bad (no idea how bad it had to be) it is deleted and a new one is created with your being forced to do a reset up of the device.
The closest you can get to knowing from the device itself is subtle signs like the reading position not being retained across reboots. Within calibre it is detected in two distinct locations. One is from within the kobo device driver when it attempts to open the database. This is the check you will see after the device has been connected. The other is if the Kobo Utilities plugin has been installed where it issues a "PRAGMA INTEGRITY_CHECK" to perform an integrity check of the database, it's internal structures and contents. Sent from my Pixel 7a using Tapatalk |
![]() |
![]() |
![]() |
#22 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
Quote:
![]() I suspect the threshold is when it is unable to open either one of the databases at all, or when it's so corrupt some basic query fails. Quote:
Some others I've noticed:
I'm sure there's others, and which of these you might see depends on what parts of the databases are corrupted. Note that reading position not being saved is different from the reading position shifting by a few pages when opening and closing a book. That's likely a different bug. Last edited by compurandom; 01-25-2025 at 02:37 PM. |
||
![]() |
![]() |
![]() |
#23 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,467
Karma: 142993686
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Also use Kobo Utilities to make a backup of your database on connect. It won't backup a corrupt database. With the current firmware, you'll be best to reboot before connecting to the computer. One idea I've come up with is using NickelMenu to get a directory listing of the where the database is. That way you can see if it's open or not and it not, connect without a reboot and if it's open, reboot first. |
|
![]() |
![]() |
![]() |
#24 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Guys, you are ALL missing the point.
JSwolf is going off the deep end, I think It's really simple - is the database corrupt, OR NOT? The software says on thing, but rebooting helps: WHY??????????????????????????????????????????????? ?????????????????????????????????? Sorry but it seems to me that no one is LISTENING!! Is it the first thing or the second thing? |
![]() |
![]() |
![]() |
#25 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,598
Karma: 16300090
Join Date: Sep 2022
Device: Kobo Libra 2
|
The purpose of rebooting is to close any processes that might be accessing the database. This prevents the database from becoming corrupted. If your database is already corrupt, rebooting doesn't help. You must either restore a backup of the database, or delete it and start over. Once the database is corrupt, you can't fix it.
|
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,781
Karma: 69470831
Join Date: Feb 2009
Device: Kobo Clara 2E
|
Quote:
Sorry for the confusion. |
|
![]() |
![]() |
![]() |
#27 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,467
Karma: 142993686
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
My idea of checking if the database is open or not is the only way you'll know the state of the database unless you reboot before connecting to the USB port. |
|
![]() |
![]() |
![]() |
#28 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,467
Karma: 142993686
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That was for the filesystem, not the database.
|
![]() |
![]() |
![]() |
#29 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,437
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
If it is similar to the last database corruption issue, the problem was that the databases were not properly closed before the USB connection was established. In a file explorer, you would see files called KoboReader.sqlite-wal, KoboReader.sqlite-shm, BookReader.sqlite-wal BookReader.sqlite-shm (not necessarily both pairs but even one pair indicates that database was not properly closed) in the .kobo directory.
My workaround was to force a reboot using NickelMenu to ensure the database was closed before the USB connection. What I also found was the if I got the database corrupted message and immediately ejected, the database will be closed which also merges the -wal and -shm file so the next connection will not show a corrupt database. If any attempt to write to the database is made, this will leave the database in a corrupt state. For me using Windows, this meant closing calibre immediately and then ejecting by right-clicking on the Kobo drive in File Explorer and then on Eject. I suspect this is why the OP saw the now I'm corrupted, now I'm not corrupted behaviour. Last edited by DNSB; 01-25-2025 at 05:35 PM. |
![]() |
![]() |
![]() |
#30 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,136
Karma: 78857258
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Sent from my Pixel 7a using Tapatalk |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre corrupt error corrupt error database disk image is malformed | didu812 | Calibre | 50 | 04-10-2024 08:51 AM |
Database corrupt, what can I do? | elstupid | Calibre | 7 | 05-14-2023 03:24 PM |
Aura HD Corrupt database? | patrik | Kobo Reader | 34 | 01-13-2014 02:10 AM |
Database corrupt | mwerth1 | Calibre | 4 | 08-07-2012 07:31 PM |
Corrupt database | jjansen | Calibre | 4 | 10-26-2011 11:51 PM |