![]() |
#1 |
Enthusiast
![]() Posts: 27
Karma: 30
Join Date: Mar 2006
Device: Kindle, iPod Touch,
|
Can a library folder be operated on by two sessions of calibre?
Specifically, I have a Ubuntu box that operates a Calibre content server.
It also shares the folder containing the library out to the home network. For the purpose of updating the library: I want to run Calibre interactively from a laptop, with Calibre referencing the library folder, shared from the content server. Do I need to stop the content server for the time that I am running Calibre interactively on the laptop? No doubt both the content server and the laptop need to be running the same version of Calibre. |
![]() |
![]() |
![]() |
#2 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 8282
Join Date: Jan 2010
Device: Kindle PW, Kobo Aura HD, Galaxy Note 10.1
|
Quote:
The key to the problem is metadata.db. If that file is open from one computer, changes made with the 2nd computer won't be recognized. You'll be able to successfully add files into the Calibre file system, but the original machine won't know they're in the database. So, not a recommended practice. What I do is run a small, secondary installation on my laptop. I add the new content there and get all the metadata the way I like. Then, I save to disk onto my server. Then, I use the Calibre installation on the server and add the files there. It's the safest way if you want to run a content server. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,342
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You can run a content server against a database that is open read/write by calibre. The content server checks if the DB has changed and does its work again when the DB changes.
Two instances of calibre cannot access the database in read/write mode and expect good things to happen. Although running the same version isn't always necessary, I, as a developer, am incapable of giving you the rules. That tells me that running the same version is a good idea. ![]() Today has been a bad day for me and clarity. Do I make sense? |
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 8282
Join Date: Jan 2010
Device: Kindle PW, Kobo Aura HD, Galaxy Note 10.1
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,211
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes run the content server from the command line
calibre-server |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 8282
Join Date: Jan 2010
Device: Kindle PW, Kobo Aura HD, Galaxy Note 10.1
|
|
![]() |
![]() |
![]() |
#7 | |
Pew Pew!
![]() ![]() ![]() Posts: 29
Karma: 270
Join Date: Aug 2010
Device: Kindle v3
|
Quote:
That way if I change some of the display settings/convert settings on one Calibre instance, they get transferred to the others. |
|
![]() |
![]() |
![]() |
#8 | |
Enthusiast
![]() Posts: 27
Karma: 30
Join Date: Mar 2006
Device: Kindle, iPod Touch,
|
Quote:
To clarify: If I run Calibre-server from the command line on my home server (actually as a daemon), and share the library folder from that server as well. I may, from any other machine on my home net, run Calibre, interactively, and edit the library, of the server, without shutting down Calibre-server. Usual caveats of keeping all systems on the same version of calibre apply. Edit: New question, Can a single Calibre database be edited by multiple interactive sessions of Calibre? Last edited by gkbeer; 09-13-2010 at 12:26 AM. |
|
![]() |
![]() |
![]() |
#9 | ||||
Pew Pew!
![]() ![]() ![]() Posts: 29
Karma: 270
Join Date: Aug 2010
Device: Kindle v3
|
I believe both of your questions have been addressed.
Question: Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#10 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Not at the same time. Only one session of calibre should interact with the calibre database at any given time. Bad things may happen if multiple users access/modify the database from multiple locations at the same time. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing Library Folder | miguel_roboso | Calibre | 30 | 10-06-2017 01:23 AM |
Moving library folder outside calibre - than change within. | myle00 | Calibre | 6 | 08-16-2011 07:08 AM |
Reprocessing Calibre Folder | jflatto | Calibre | 1 | 07-03-2010 08:08 PM |
Saving Filenames in Calibre Library Folder | junkyardwillie | Calibre | 2 | 01-07-2010 07:51 PM |
Sony Reader Library Folder Locations | stevewilkinson | Sony Reader | 3 | 12-31-2009 07:42 AM |