Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-25-2016, 02:05 PM   #1
Ersatzreifen
Bibliothekar
Ersatzreifen began at the beginning.
 
Ersatzreifen's Avatar
 
Posts: 38
Karma: 10
Join Date: Jun 2011
Location: San Jose City, Philippines
Device: Galaxy Tab S w/Bookari Premium
Power failure messed up files in library

I had been processing a few hundred books and had to stop to go out of town. While I was gone there was a power failure, and when I returned I discovered that many of the formats were missing. When I click on 'edit metadata' the database still lists the ebooks, but shows the actual files aren't there any more, and the covers are missing too. This happened to random books throughout the database.

When I exited the 'edit metadata' and checked the 'Formats' column, it shows the list of formats as being there - but they aren't.

Next, I selected one of the books and clicked on 'Open containing folder' it contained only the metadata.opf file, the epub and cover file were missing.

Then I went up to the parent directory, (/home/Calibre/Calibre Library/Lynsay Sands/) and found that it contains this tree:
Code:
├── Der Teufel und die Lady (28113)
│** ├── cover.jpg
│** ├── Der Teufel und die Lady - Lynsay Sands.epub
│** └── metadata.opf
├── Der Teufel Und Die Lady (28113)
│** └── metadata.opf
There are two directories but should only be one. Calibre is seeing only the directory without the epub and cover files.

I repeated that on a second book and got this:
Code:
└── Schwanengesang (28504)
    └── metadata.opf
...and several others which appeared like this:
Code:
├── Kryptografie_ Verfahren, Protokolle, Infrastrukturen (28880)
│** ├── cover.jpg
│** ├── Kryptografie_ Verfahren, Protokolle, Infra - Klaus Schmeh.epub
│** └── metadata.opf
└── Kryptografie_ Verfahren, Protokolle, Infrastrukturen (iX Edition) (28880)
    └── metadata.opf
So for most of the books, the files are there, but in a different directory. While I'm writing this I'm making a copy of the entire Calibre library tree on another drive to use as a back up. But what's next? Is there a relatively way to restore all these books? If you need more info just tell me what you need and I'll dig it out as soon as I figure out how.
Ersatzreifen is offline   Reply With Quote
Old 06-25-2016, 02:42 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Run Library Maintenance (both phases) and resolve the reports.

BUT Before that, have the OS check (and repair) the drive (folders)

Unless an active Calibre (Add/rename) operation was interrupted, those results could not occur on a standard drive. Changes are done almost immediately (Only that OPF may lag if part of a bulk change. That is a metadata backup)
theducks is offline   Reply With Quote
Advert
Old 07-05-2016, 08:51 AM   #3
Ersatzreifen
Bibliothekar
Ersatzreifen began at the beginning.
 
Ersatzreifen's Avatar
 
Posts: 38
Karma: 10
Join Date: Jun 2011
Location: San Jose City, Philippines
Device: Galaxy Tab S w/Bookari Premium
No joy on that suggestion. But I did find a method that helped:

1. I created a new library named MASTER.
2. I did a copy-to-library with delete after copy, which moved all books still in the database from Calibre library to MASTER.

After that was done there were still books in the directory tree of Calibre library. Those were the "missing" book files. I re-added them to the new library: problem solved. A lot of work, but it fixed the problem with the most automation possible.

Thanks for the suggestions.
Ersatzreifen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Messed up Library [open thread] EvM1 Library Management 24 04-06-2016 05:13 AM
[CLOSED] Messed up Library EvM1 Calibre 2 03-30-2016 09:38 PM
Messed up my library pollybel Library Management 2 06-22-2013 04:23 PM
Calibre reader messed up files bedook Calibre 3 05-21-2013 10:17 AM
Sone Reader Library messed up Roffee Sony Reader 5 09-11-2010 08:19 AM


All times are GMT -4. The time now is 06:38 AM.


MobileRead.com is a privately owned, operated and funded community.