![]() |
#1 |
Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 6184
Join Date: Jun 2009
Location: Celebration, FL
Device: iPad
|
![]()
I have no idea when it happened, or how, but somehow I have a large number of books (in an even larger library) which have been added to the Library (in the directory), have been assigned a Library number, and yet are not in the database.
Initially I thought that the Library maintenance option would fix the problem, but it seems only to want to delete items, not fix the Database problems. The library on disk is correct and contains books in the correct Calibre format: i.e. the book, the metadata.opf file, and the cover file. Each book that I have examined seem to have been added properly and have valid, but unused, Calibre database id. The Database itself is valid, but incomplete. ![]() Is there an automatic solution? |
![]() |
![]() |
![]() |
#2 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
There are several ways to handle this, but first you may want to make a backup of your calibre library, to avoid loosing books or data.
One way is to use calibre to move the library to a new folder. Then calibre will leave behind the books it has lost track of. You can examine them and add the ones you don't already have in the library. You may already have another copy of the books in the library. Another way, that may be faster, is to delete the database file, metadata.db, and have calibre recreate it from the library. The metadata should be backed up in OPF-files. (You might just rename the database file to metadata.bak to test this quickly.) You might end up with duplicate books... The reason why this happened can be that you had some cloud sync software active while running calibre. Or did a restore of a backup to the same place as an existing calibre library. Or restored just an old metadata.db, and not the books at the same time. Or you have accessed the library from another computer, with another operating system that has different case sensitivity. Or something else... |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
+1 Restore Database will recreate the library from the unique ids on each book.
It assumes everything is correct except the database itself, and will not locate duplicate ids. But you said they aren't duplicate ids so that should be all right. |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
One of the ways to mess up the DB is to share the Library and have both have it open. Opening with 2 instances of Calibre (ie. Calibre and Portable)
(Note:Network shares are not supported, but sometimes work. Your risk if you choose to try.) |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to sync database with 2 pc and preview panel | Kosh | Library Management | 1 | 04-18-2014 03:21 PM |
Adding books already in library directory but not library database | sfguy5874 | Library Management | 1 | 07-07-2012 04:33 AM |
sync calibre and itunes-database | Henning | Devices | 4 | 03-23-2012 08:00 AM |
iPad sync Stanza library to Calibre database? | vonCZ | Apple Devices | 2 | 05-04-2011 04:59 PM |
Move Library Database? | edbro | Sony Reader | 1 | 04-05-2009 02:14 PM |