View Single Post
Old 02-14-2014, 09:21 PM   #12
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
It is overwhelmingly more likely that it is some form of user error that caused calibre to loose track of books, than it is a bug or error in calibre that is the cause.

Somehow files in the calibre library has been updated, renamed, restored or otherwise changed in a way that made the database metadata.db out of sync with the books stored in the library. The paths and the names stored in metadata.db don't match the actual files. This is discovered only when calibre attempts to do something with the books. So there may very well be a very long time span between the error that caused the problem and the discovery of the problem. That is why it is good to run the database maintenance tools now and then, especially after the library has been updated or changed using any other tools than the GUI.

Possible causes are partial restores of backups, overwriting one library with another. Perhaps a restore of an old metadata.db without replacement of the books. Or a partial restore of book files from backups. Copying the library between different operating systems and/or filesystems that have different case sensitivity. Or using some utilities that updated files or paths in the library.

When calibre is backed up and restored it should be handled as a single monolithic entity. Never partially restored or restored over an existing library.

The problems should hopefully be easy to fix by running the calibre maintenance tools, using the GUI to copy the entire library to a new library, and manually add the books left behind in the old library to the new library. But metadata may be lost.

Please note that the problem will most likely come back again and again, if the assumption is that calibre was the cause. The same user error will then most likely be repeated again. So do try to figure out the actual cause.

Last edited by Adoby; 02-14-2014 at 09:28 PM.
Adoby is offline   Reply With Quote