10-18-2013, 06:03 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2013
Device: Calibre
|
My Calibre library is missing
I have had the same experience as this user reports.
I am on a Mac, Mac OSX, Lion. The Calibre Library directory is now empty. Asking Calibre (new copy of 1.7.0 this afternoon) to rebuild the library gets a message that the rebuild completed successfully, but there are still no files. This is not something I could accidentally have done, either. It would have taken considerable effort for me to have moved these files. The fact that this has happened on a Mac as well as on Windows tends to say that it's more likely to be Calibre than a bug in Windows as others have suggested. I have looked for these files using the 'find' program and spotlight. AFAICT they are simply gone. There are no .epub files in the Trash folder, so they didn't get deleted through the finder. I think we must consider the possibility that Calibre really has a bug, and a really bad one. I am traveling now, but I will try to recover my library from my Time Machine backup. |
10-18-2013, 07:25 PM | #2 | |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BTW the originator of this thread was using EXT3 on Ubuntu Linux. Windows was mentioned in respect of two other unnamed 3rd party programs that were alleged to have done similar things. And MR member itimpi mentioned Windows as the possible culprit before it became apparent that the OP wasn't running Windows. BR |
|
10-19-2013, 02:06 AM | #3 | ||||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Moderator Notice The calibre library being empty indicates that the metadata.db file went missing.Since you were comparing your plight to someone who had problems 4+ years ago using ver 0.6.x of calibre I decided the two incidents have nothing in common so I moved the post to its own thread Quote:
Quote:
Quote:
Quote:
Good Luck. Last edited by DoctorOhh; 10-19-2013 at 02:32 AM. |
||||
10-19-2013, 02:45 PM | #4 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
My guess is that the library could be corrupt and the books still in place.
|
10-19-2013, 04:56 PM | #5 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2013
Device: Calibre
|
Library disappeared
Quote:
If I had somehow messed this up, either moving or removing the files accidentally, (a) the files should have been found using "find" or searchlight, or (b) if I had deleted the files, they should have been found in the Mac's trash (which has not been emptied in months). Since my books are gone completely, I am inclined to believe that this was done at a level below the Mac's GUI (using the equivalent of Unix's "rm" command). I will see if I can figure out when this happened by looking at my disk backups when I return from my trip (with much of my library inaccessible ) |
|
10-19-2013, 05:52 PM | #6 |
Grand Sorcerer
Posts: 12,160
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
If you're comfie with command line (or the Mac has a good file find that will search everywhere) try a search for metadata.db, the main calibre database that is located in the base directory of your calibre library.
On linux at least I would use the following command to search the entire file system for it Code:
find / -name metadata.db |
10-19-2013, 06:46 PM | #7 | |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Many (most ?) of the reports of the "my calibre library disappeared" I've seen were caused by users inadvertently dragging the library to another location with their file managers. I don't blame the users, I blame the IEEE, Posix should have had a nomove attribute on files and directories, like some pre-Unix/Posix file systems had. BR |
|
10-19-2013, 07:08 PM | #8 | |
....
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
|
Quote:
While I did not want to spend the rest of my day searching for and reviewing the few cases where the thread was not resolved with the books found, in those that was because there was no response by the poster as to the result of their performing the suggested actions by other i.e. the outcome could not be determined by reading the post. It would seem that you are exaggerating in making the claim that many have the same problem as you i.e. that they have completely lost their books, rather than just mislaying them (usually by some action of their own). Given that almost everyone is of the view that it is most unlikely that Calibre has lost your books (and it would seem that if it has it is an extraordinary occurrence), why do you not just restore your backup of your library and see how that goes? Last edited by AnotherCat; 10-19-2013 at 07:13 PM. |
|
10-19-2013, 07:27 PM | #9 | |||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
In the past when a library "disappeared" it was due to the metadata.db file being accidentally deleted or corrupted. The metadata.db file contains virtually everything you actually see in the library. On occasion a user dragged and dropped it elsewhere or deleted it thinking it was redundant. There was at least one instance where some one dragged and dropped their entire tree accidentally (not unheard of in windows) to an unknown location. They were able to find out where by searching for the metadata.db file and all was well. Quote:
Are you sure the epub files are missing? Are you sing any Sync or cloud software? Quote:
He stated that he would attempt this when he returns from his trip. Last edited by DoctorOhh; 10-19-2013 at 07:32 PM. |
|||
10-19-2013, 07:49 PM | #10 |
Well trained by Cats
Posts: 29,785
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I also find it hard to believe that Calibre deleted the entire folder Structure
An Uninstall leaves the: 1)Library folder(s) intact (you must manually delete them, even if you use the 'Delete (another) Library from the Library Menu (that just removes the reference). 2)Leaves the configuration (plugins) behind An Update that should find the configuration does not even attempt to create a new library As mentioned: Quite a while back interlocks were created that prevented creation of a Library in a folder that was occupied and did not have a metadata.db (Calibre will use that valid Library folder, even in the absence of a missing configuration) The only (and it is non-calibre) thing. Something hoarked the FULL user rights to the folder/contents. The odd thing is metadata.db should still be there BECAUSE of a right to delete problem |
10-19-2013, 08:31 PM | #11 | |
....
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
|
Quote:
|
|
10-21-2013, 11:48 AM | #12 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2013
Device: Calibre
|
Library seems to have been deleted by Calibre
Many of these responses seem to assume that my library has simply been moved.
I assure you that this is not the case. As I said, I used both Unix "find" and the Mac's Spotlight file search programs. The epub files are gone. theducks seems not to believe that the files were deleted. I assure you that this was the case. I find on return that my backup disk has a copy as of late August with all the books. Sometime after that all the books are gone, although the metadata files remain. This might relate to the posting of theducks saying that metadata.db should remain. That is, in fact, the case. The "Calibre Library" directory remains. It contains the metadata.db and .json files, but all of the books have been removed. Similarly, wrt PeterT's response, the books are gone; the metadata.db file remains. And to JSWolf, no, the files are gone completely. So my case is the exact opposite of what DoctorOhh conjectures: for me the metadata remains (although it contains no entries), but the books have all been deleted. I stress that the books were deleted completely, rather than moved to the Mac's Trash folder, or located elsewhere on the hard drive, indicating that they were not removed by, e.g., my inadvertently dragging and dropping, or accidentally hitting the Cmd-backspace key (although note that my doing that could not have removed only the books while allowing the metadata to remain; the only easy way to do that would have been to somehow select all and only the books, which would be difficult to do even intentionally). Thanks for your interest. |
10-21-2013, 12:30 PM | #13 |
Well trained by Cats
Posts: 29,785
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I don't "Believe" anything.
I have "suspicions" based from experience. Some prove false . The facts supplied by you: 1)Metadata.db exists 2?)There are: a)no Author folders, or b) Book folders within, or c)formats within those 3)The Gui reflects 2b. This sort of indicates a valid Library action. Do you have some sort of cloud or mirror configured? do you have some sort of scheduled script against the Library folder Do ALL these books have a tag News |
10-21-2013, 01:52 PM | #14 |
Addict
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
|
FWIW, the presence of a metadata.db does not say a whole lot.
If Calibre assumes a library exists at a certain location, and on launch finds there is nothing there, it will simply create a blank metadata.db. So if something happened to your library between closing Calibre and reopening it, that caused all of the epubs to go awol including the metadata.db, then anything found after relaunching Calibre is trash fodder. Can't nothing be done with no more. Only option is having a backup or a tremendous heap of luck trying to recover with a recovery program if files were deleted (leaving in the middle how they might have gotten deleted) From the sound of it the complete folder structure was still there, just no more epub files. Any covers or opf files still present? .original_epub's even? If these are still there ... You the only one with access to that computer? Last edited by At_Libitum; 10-21-2013 at 01:59 PM. |
10-21-2013, 03:02 PM | #15 |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Assume all the books in a library only have one format - lets say ePUB.
Select all books, now select Remove Books->Remove files of a specific format from selected books, select ePUB, select OK - result all ePUBs gone. The author and book folder would remain as is with their cover.jpg and metadata.opf files intact, and the metadata.db file would also remain as it was (with the 'formats' column updated). If I wanted to do it on Windows, I would do a ctrl/a (select all books), ctrl/alt/r (get the Remove files of... dialogue, space to select ePUB, enter to perform action. I can't recall if calibre has an option to do hard deletes rather than soft deletes, but if it does and it was set then the ePUBs would be gone 'forever'. BR Last edited by BetterRed; 10-21-2013 at 03:04 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Metadata From Amazon Missing. What Am I Missing? | BruticusBob | Library Management | 4 | 07-23-2013 08:43 PM |
A book missing from Calibre but still in the library folder | Joanna | Calibre | 1 | 04-11-2013 06:26 PM |
Half of Calibre Library missing! | spyates | Library Management | 1 | 12-16-2012 03:51 PM |
Calibre library missing? | BeccaPrice | Calibre | 2 | 04-14-2011 11:12 AM |
Missing Library | vbussell | Calibre | 5 | 12-09-2009 03:04 PM |