05-04-2013, 08:51 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jun 2010
Device: iPhone w/ Stanza
|
Calibre content-server doesn't seem to see new books
I keep my ebook library in Dropbox, and on one of my machines I have a launchd daemon that runs the calibre content server:
calibre-server --with-library=$HOME/Dropbox/ebooks I can confirm that the server serves my library, but it does not appear to detect changes to the library that happen on another system; I mainly run Calibre on another machine and manipulate the library there, relying on Dropbox to sync it. I can tell (using calibredb list) that my newly added books are just not appearing. I've killed and restarted the calibre server, reloaded the launchd daemon, really everything I can think of, and no good has come of it. How can I make the content server pick up these changes? |
05-04-2013, 08:59 PM | #2 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Are you saying that the books do not appear if you restart the content server, but are there if you run calibredb with the same --with-library argument?
|
Advert | |
|
05-04-2013, 09:55 PM | #3 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jun 2010
Device: iPhone w/ Stanza
|
No, I am not seeing them either way. The only places I can see them are A) on the filesystem of the machine that is hosting the content server, and B) in the Calibre instance running on my other computer.
|
05-04-2013, 10:31 PM | #4 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
If you search for conflicted copy in your dropbox folder I'm betting you find a few. These happen when another device updates something that is in use on the second device. If you use dropbox to sync, only one device should be accessing the dropbox library at a time. You may want to consider a different method for syncing the folders. Preferably at a time when neither library is being used. |
|
05-04-2013, 11:05 PM | #5 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I agree with doctorohh - there must have been a conflict on metadata.db at some point. You need to ensure that all computers are seeing the same files. |
|
Advert | |
|
05-05-2013, 02:28 AM | #6 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jun 2010
Device: iPhone w/ Stanza
|
There's no metadata.db conflict; I assumed that must have been the case, but it turns out no. For what it's worth, the content server _only_ reads the DB, it never (at least, not under my control) writes to the DB.
I have resolved the issue, however; it turns out I'd misunderstood how and when calibre writes to the DB; it writes on exit, not on edit, which meant that my changes had not persisted until I quit Calibre on my editing host. *facepalm* Thanks for the feedback. |
05-05-2013, 02:34 AM | #7 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
05-05-2013, 10:58 AM | #8 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Also, even though the content server does not write to the db, it does open it for update. Python, calibre's implementation language, does not support read-only database access. Because the db is open for write there is a lock, which can block other programs from accessing the db. |
|
Tags |
contentserver, dropbox, launchd, mac |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
is there a tool to open (read) books from the calibre's content server? | tsolignani | Related Tools | 2 | 04-16-2013 07:14 AM |
calibre-server: Doesn't server up newly added files | kaistian | Calibre | 5 | 03-17-2013 11:54 AM |
Calibre content server downloading doesn't include metadata | cerasi | Devices | 0 | 09-08-2012 07:27 PM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
Content server download doesn't complete on Blackberry | jsm555 | Devices | 0 | 03-13-2012 02:42 AM |