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 12-23-2015, 09:25 AM   #1
Mex5150
Banned
Mex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the rough
 
Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
Why does Calibre keep losing books, and how can I stop it?

Hi Guys,

This has been happening on and off for years, but I've reached my frustration level with it.

Calibre frequently loses books, while retaining the meta data. It doesn't happen with every book, but it does happen enough to be annoying. Here's a recent example: I'm updating and converting a lot of books at the moment, this is something that just happened
1) Open the pdf to see if it's suitable for conversion to ePub (ie consists of actual text rather than just pictures of text).
2) Update meta data to get the cover I want etc
3) hit convert book
The problem is, on 3 I'm told the book format doesn't exist, even though I just looked at it seconds ago.

Library Maintenance -> Restore Database takes ages to do nothing.
Library Maintenance -> Check Library tells me there are missing books (which is why I went there in the first place).
If I go and search the HDD I can often (but not always) find the missing book(s), sometimes in a case mismatch, sometimes elsewhere, which means I've got to move them elsewhere then re-import.

The library is not on a network drive (I know this can cause problems).
Although I do on occasion access the files directly from the drive, this is not the problem here (as it also happens to newly imported books that have never been accessed directly).

Any ideas on why this keeps happening, and more importantly how to stop it from happening in the future?

~Mex
Mex5150 is offline   Reply With Quote
Old 12-23-2015, 09:42 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,771
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Mex5150 View Post
The library is not on a network drive (I know this can cause problems).
Although I do on occasion access the files directly from the drive, this is not the problem here (as it also happens to newly imported books that have never been accessed directly).

Any ideas on why this keeps happening, and more importantly how to stop it from happening in the future?

~Mex
The fact that your library is on a network drive is exactly why it is happening. Many (perhaps most) network file systems are broken in some way. The brokenness usually appears when renaming files and folders, something that calibre does whenever it adds books or changes their titles or authors.

The solutions: live with it or move the library off the NAS.
chaley is offline   Reply With Quote
Advert
Old 12-23-2015, 10:23 AM   #3
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by chaley View Post
The fact that your library is on a network drive is exactly why it is happening.
You may have misread. He said:
Quote:
Originally Posted by Mex5150 View Post
The library is not on a network drive (I know this can cause problems).
I don't think it's the network.

What's your OS? Calibre version?

N.
aleyx is offline   Reply With Quote
Old 12-23-2015, 10:35 AM   #4
BookJunkieLI
Evangelist
BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.
 
BookJunkieLI's Avatar
 
Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
Are you using it with Dropbox or Google Drive? Do you have any kind of autosync software running?
BookJunkieLI is offline   Reply With Quote
Old 12-23-2015, 10:35 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,771
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@aleyx: my bad. You are right -- I didn't see the "not".

That said, the fact that the OP sees case differences in lost books implies that there is a problem doing renaming. Using a NAS is one reason this can happen. Another reason is a mismatch between the file system and the operating system. Problems like this will arise if you run windows using a case-sensitive file system, or if you run linux with a non case-sensitive file system, or if you are using a portable drive and moving it between operating systems. I don't have enough experience with macs to speculate whether case sensitivity problems might arise.

Bottom line: be sure that the file system type is native for the OS you are running, and do not move your library storage device between dissimilar operating systems.
chaley is offline   Reply With Quote
Advert
Old 12-23-2015, 07:33 PM   #6
Mex5150
Banned
Mex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the rough
 
Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
Quote:
Originally Posted by chaley View Post
The fact that your library is on a network drive ...
As others have pointed out, I said I was NOT on a networked drive, I mentioned it because I know it can cause problems, easy mistake to make though, as it is often the culprit ;^>
Quote:
Originally Posted by aleyx View Post
What's your OS? Calibre version?
Sorry, should have said that, Doh! I’m Running Linux (Ubuntu 16.04 LTS to be precise), Calibre is 2.47.0, the drive they are on is formatted to ext4
Quote:
Originally Posted by BookJunkieLI View Post
Are you using it with Dropbox...
Well, yes and no. They are in a folder that is normally shared on/in DropBox, however I start Calibre with a script that cuts autosync runs Calibre, then restarts autosync when I quit out of Calibre. A habit I got into using Scrivener (that gets very upset with autosync) so anything I use that needs (or may need) a steady non-autosync dive on a drive that is normally shared, I use this script with. So effectively as far as Calibre is concerned, it's a completely normal, non-networked, non-autosynced drive.

I have just tested the start-up script and can confirm autosync is stopped for the duration of Calibre running. So no closer to a solution then ;^<
Quote:
Originally Posted by chaley View Post
That said, the fact that the OP sees case differences in lost books implies that there is a problem doing renaming.
Sometimes it does do this with renaming (I think I can recall an instance of that happening), but normally it's when I hit convert. It could be that that's doing it, or it could be something before hand that I don't notice until convert tells me the book is missing though.
Quote:
Using a NAS is one reason this can happen. Another reason is a mismatch between the file system and the operating system. Problems like this will arise if you run windows using a case-sensitive file system, or if you run Linux with a non case-sensitive file system, or if you are using a portable drive and moving it between operating systems. I don't have enough experience with macs to speculate whether case sensitivity problems might arise.
Linux file system accessed by a Linux OS. Permanent non-removable (well not without a screwdriver LOL) drive. I do have several other OS's on the machine, but they are all safely tucked away on virtual machines that don't have access to that particular drive.
Quote:
Bottom line: be sure that the file system type is native for the OS you are running, and do not move your library storage device between dissimilar operating systems.
When Calibre is not running an android device will occasionally access one of the libraries directly, but I can't see how this would be the culprit as books also vanish on libraries it doesn't have access to.

Don't know about you guys, but I really stumped by it ;^/


~Mex
Mex5150 is offline   Reply With Quote
Old 12-23-2015, 08:25 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,514
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Try moving the library out of the directory that gets synced and stop accessing the libraries directly outside of Calibre. See if your books stop going missing.
JSWolf is online now   Reply With Quote
Old 12-24-2015, 09:12 AM   #8
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by Mex5150 View Post
...
1) Open the pdf ...
in what app?
dwig is offline   Reply With Quote
Old 12-24-2015, 10:39 AM   #9
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: 29,932
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dwig View Post
in what app?
Why would this matter, as long as the file was not saved (where the name might get tampered with) or deleted from the app?

My normal Calibre (Win & Linux) configuration : (Preferences: Behavior: <no tick next to PDF> ) View uses the OS to supply the PDF viewer. That way, you do not need to even peek inside the library folder
theducks is offline   Reply With Quote
Old 12-31-2015, 06:43 PM   #10
Mex5150
Banned
Mex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the roughMex5150 is a jewel in the rough
 
Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
Quote:
Originally Posted by JSWolf View Post
Try moving the library out of the directory that gets synced
I'll give it a go, but as I said as far as Calibre is concerned it's not on a drive that gets synced, all synchronisation is stopped while calibre is running, then restarted after it stops.
Quote:
and stop accessing the libraries directly outside of Calibre. See if your books stop going missing.
I know many people here consider touching the files with anything other than Calibre the deadliest of all cardinal sins, but as I said, this is not the issue as it happens in libraries that are never accessed outside of Calibre as well as some that are.
Quote:
Originally Posted by dwig View Post
in what app?
The default (Adobe Reader 9) opened by clicking the link in Calibre, but this is just one of the ways I notice the problem, it doesn't precede every instance of books vanishing, so again, unlikely to be connected.

Due to Christmas/Hogmanay I've not had the time to investigate this any further, but if I ever do resolve the issue, I'll drop back and report.

~Mex
Mex5150 is offline   Reply With Quote
Old 12-31-2015, 07:06 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,652
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Mex5150 - maybe you could run a 'watch for deletes' monitor on the library tree, see ==>> Monitor file system activity with inotify - probably filter by the format types (PDF, EPUB, MOBI etc), log or pop a message when delete happens

BTW I'm with you on the library folders - I dive in and out of them all the time. But I never add new items (folders or files), or delete or rename existing items. And I've never lost anything, or had Check Library report significant errors.

BR
BetterRed is offline   Reply With Quote
Old 12-31-2015, 07:47 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,514
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Mex5150 View Post
I'll give it a go, but as I said as far as Calibre is concerned it's not on a drive that gets synced, all synchronisation is stopped while calibre is running, then restarted after it stops.
But it does get synced and if anything is wrong on the other end, your end gets screwed. So really, having your library be in a synced directory is a really really bad idea.

What you can do that would work rather well is make a copy of your library to the synced directory and use FreeFileSync to keep the synced copy in sync with the working copy. That would be the safest way to keep your working library safe. I've been using Calibre a good while and I've never had any eBooks go missing just like that. I do think it's related to your syncing.
JSWolf is online now   Reply With Quote
Old 12-31-2015, 09:23 PM   #13
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,244
Karma: 74000000
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Like Jon, I do a one way sync using AllwaysPro to my local DropBox, and then let DropBox sync as it likes.
PeterT is offline   Reply With Quote
Old 12-31-2015, 09:40 PM   #14
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
It is certainly true that the safest way to use calibre with Dropbox/other is to do a one-way mirror into the Dropbox folder.

But it is also (probably) irrelevant.
If you are careful, as the OP has indicated, one-way sync is not needed to prevent Dropbox/calibre editing conflicts. The most likely source of failure. Although extra safeguards are always good.

For the record, I have used calibre a long time without doing a one-way sync and never once had problems.
eschwartz is offline   Reply With Quote
Old 01-02-2016, 12:40 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,514
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by eschwartz View Post
It is certainly true that the safest way to use calibre with Dropbox/other is to do a one-way mirror into the Dropbox folder.

But it is also (probably) irrelevant.
If you are careful, as the OP has indicated, one-way sync is not needed to prevent Dropbox/calibre editing conflicts. The most likely source of failure. Although extra safeguards are always good.

For the record, I have used calibre a long time without doing a one-way sync and never once had problems.
But, I've never before read of anyone having eBooks vanish from a Calibre library just like that. The only thing different that I can tell given the OP's information is the use of a sync directory. Careful or not, something isn't working properly. So move out of the sync directory and see if books get lost just like that or the problem is solved. It's just easy to use FreeFileSync to make a copy in the sync directory. The only way to try to solve the problem is to try ifferent things and the first thing to try is no working library in a sync directory.
JSWolf is online now   Reply With Quote
Reply

Tags
lost books


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Losing books in shelves on Kobo Mini when I connect to Calibre AliciaNunz Kobo Reader 4 01-11-2013 08:56 PM
Calibre wont stop trying to get a list of books on GN7 Post-It Devices 16 10-01-2012 09:30 AM
Losing Wedding Ring Less Stressful Than Losing Mobile Device xg4bx General Discussions 41 07-04-2012 07:16 AM
help please to stop calibre moving books Grizzly Library Management 1 02-24-2011 05:21 PM
Books losing their formatting... Shiren Sony Reader 38 05-24-2010 12:42 PM


All times are GMT -4. The time now is 05:56 AM.


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