01-23-2022, 01:34 AM | #1 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
dupe books problem
I make AZW files on my PC and sideload to my Kindle PW3. Never download wirelessly or from Amazon.
I use Kindlegen in Sigil; it needs a pseudo ASIN when it makes the AZW. I create set one using an abbreviated form of the title. All good the last 3 years. But I had two different books with the same title, and used the same code. Both were showing with the same cover, and who knows what else was scrambled. I deleted them on the kindle, then deleted the associated files in the Documents and thumbnail folders on the Kindle. Thought I was purging these books; obviously I screwed up there. Rebooted it a few times. But now when I sideload new books, they do not appear, and are not findable by search. And one of the books I deleted does show in the library with a generic cover, but when I select it, it's "Item Not Available: has been removed and no longer available on you kindle", when I delete it from the screen, it's still listed. I presume I've screwed up the index. (Where is it?) If that's it, should/how can I force it to reindex? Would be annoying, I have about 1000 books but I'll do it if necessary. Or any other option? Absolutely last option is reset and reload all my books. I have dozens bookmarked and with notes. Last edited by AlanHK; 01-23-2022 at 06:10 AM. |
01-23-2022, 08:08 AM | #2 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Have you tried restarting your Kindle?
(Edit: Never mind, I missed that in the original post.) Last edited by jhowell; 01-23-2022 at 08:17 AM. |
01-23-2022, 12:56 PM | #3 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
kindles keep track of books in an sqlite database in /var/local/cc.db which is only accessible on jailbroken kindles. Indexing only has to do with locations of words in books.
Doing a reset (as opposed to restarting (rebooting)) should clear your problem, but it will also reset all settings to default and might lose indexing. |
01-23-2022, 07:41 PM | #4 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Is there any alternative to "factory reset"? With that I have to re-register with Amazon, load and organise 1000 books... after writing down the bookmarks and notes in the books I want to keep. So I'm not looking forward to that. (These are all sideloaded books, aside from the dictionaries, there is no cloud backup or whatever Amazon does.) It's still working apparently normally, except the two ghost books and inability to load any new ones. Last edited by AlanHK; 01-23-2022 at 11:58 PM. |
|
01-24-2022, 12:37 PM | #5 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
It has been a long time since I have done a reset and do not recall whether books are erased by a reset. I would have guessed they are not. Someone with direct experience will have to chime in. In any case, you can preserve all your bookmarks and notes by making a tar or recursive zip (-r option) of the contents of the documents directory on the kindle.
As for an alternative, as I wrote before, jailbreak. Preople always think they would never have any use for jailbreak but sometimes it turns out there is not only a use but a need. Back to the reset option. If you have no books from amazon, why do you need to register? in any case, reregistering should be quick and easy and there is no need to reorganize your books or manually redo your bookmarks and notes (if you copy all the contents of the documents directory). |
01-24-2022, 06:11 PM | #6 | ||||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Quote:
So if I back up the Documents folder, then reset the Kindle, then copy the the whole Documents folder back, it will restore all the bookmarks, notes, page position, collections, while rebuilding its central database of titles so I can load new books? Worth a try, if I've reset anyway. Quote:
I'm on 5.9.2, and there was no jailbreak for that when I got it, though I think there is now. I put in the block folder to stop automatic updates to give that a chance to evolve. So I was thinking I would do that if I have to rebuild everything anyway. Quote:
Last edited by AlanHK; 01-24-2022 at 06:13 PM. |
||||
01-24-2022, 08:05 PM | #7 | ||||
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
Quote:
You might want to start a new thread with collections in the title then ask about getting collections back after a reset, explaining that you did not use email, send to kindle, etc. and which firmware you have. (amazon has changed collections a lot over the years.) There are quite a few people that know quite a bit about collections. Quote:
Once jailbroken, you can use a sledgehammer or a surgical approach. The former is to remove /var/local/cc.db and let the kindle rebuild it, but I think you might lose collections doing that. If you are willing to manipulate an sqlite database, you can likely repair whatever messed up the rows for the problematic books. If you would like to try this approach and can not figure out what to do by inspecting the entries for your books, there are quite a few people in the Kindle Developer's Forum with the expertise to help. You can use SQL commands directly or one of the sqlite browser apps available for just about any platform. (You'll need to copy /var/local/cc.db to your computer. amazon added some custom SQL function to cc.db so accomodating that will involve some tedium. Quote:
|
||||
01-24-2022, 10:58 PM | #8 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
I'll do the one for currently reading and sort the rest to genres later. Quote:
|
||
01-25-2022, 01:28 PM | #9 | ||
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
backup documents directory "factory" reset restore documents directory But since you manupulate metadata in ways that risk fouling cc.db I think it would be worth your while exploring the contents of cc.db to get insight into what is going on. If you jailbreak, you can rename cc.db and let your kindle rebuild it. If something goes wrong, you can rename the original back to cc.db You could also make a backup copy of cc.db before doing something risky. If you retrigger the problem, you could remove the offending book then restore the backup cc.db I will also reply with more information in your Developer's Forum thread, but it will require some research and I have some pressing requirements on my time. Quote:
|
||
01-26-2022, 04:40 PM | #10 |
Wizard
Posts: 3,168
Karma: 37800000
Join Date: Jan 2010
Location: Walton-on-Thames, Surrey, England, UK
Device: Kindle Keyboard 3G, Kindle Fire 2, NOOK ST, Kindle HDX, Fire 7"
|
I recall that doing a unregister/ register on a Kindle is halfway between restart and factory reset. No content is lost, certainly not sideloaded.
|
01-26-2022, 07:26 PM | #11 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
So I'll see if I can jailbreak it and then delete the database. |
|
01-26-2022, 07:32 PM | #12 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
I know what root of the problem is, I had non-unique ASINs, which presumably are keys in the database. Tried to fix it by deleting the dupe books. That just made things worse...
|
01-27-2022, 12:35 AM | #13 | |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
My guess is that deleting the two rows with duplicate identifiers from the database will take care of the problem, but there is no way to know without having a look. One of NiLUJe's packages has a kindle sqlite that can manipulate the database, but any sqlite can list it. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem copying books into Books Subfolder from laptop | Strav | Onyx Boox | 1 | 12-29-2019 11:24 AM |
Aura One return dupe? | KipPrdy | Kobo Reader | 9 | 07-08-2017 09:45 AM |
Problem with Get Books | Thomboay | Devices | 6 | 12-07-2011 04:32 PM |
Does calibre de-dupe news feeds? | tom95521 | Calibre | 1 | 08-24-2009 08:04 AM |