![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2015
Device: iPad
|
Multiple content-server instances possible ?
Hello,
as a first time thank you very much for the great program. I use the Calibre-content-server in an Ubuntu Linux container on a Proxmox environment, it works wonderfully. Integrated are some libraries on different topics. My question: Is it possible to start several content-server instances in parallel on the Linux server, which should then be accessible from external via different ports + login user ? Background: I want to reduce the access for individual users to single or multiple libraries, so that they can not all see or access. Thanks in advance Thomas |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can define library limits per user account no need for multiple server instances.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2015
Device: iPad
|
Hello,
thanks for the tip. I have set it up with the help of the documentation, it works quite well, if the accesses of different users from different computers. However, from the same computer it only works reliably if you clear the browser cache in the meantime - but that's not a problem so far. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
Not sure if it is ok to hijack this thread, but I'd still like to know how to run more than one instance of service on a single machine. I tried to separate them by giving 2 instances each different --port's, different library directories and even different --pidfile's and one of them still detects that the other instance is running and fails to start. What else should I configure to keep them both running?
|
![]() |
![]() |
![]() |
#5 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,973
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
https://manual.calibre-ebook.com/gen...re-server.html
I believe You can STILL use the CLI to start multiple instances if you specify With Library. I used to do the way back around Calibre 2 where server (instance) could only do 1 Library |
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
Quote:
I got around that by having Environment="CALIBRE_NO_SI_DANGER_DANGER=Y" in systemd config for each since I am pretty sure that separate instances talk to separate libraries. That and one of them is intended as read-only. So I hope actual danger is not that big, though it would be nice if I didn't have to use this override. |
|
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,973
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Look at the example at the top.
( ![]() |
![]() |
![]() |
![]() |
#9 | |||
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,180
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
You need to assign them different ports--one on port 80 the other on say port 85.
bernie |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
|
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,973
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I always specified the port as well as the library.
BTW I would use the full path to the Library Some systems want you to avoid Port 80 ![]() |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If for some reason you really want to run two different servers on a single machine and dont want to use the env var, use different user accounts. Though the single instance mutex is there for your protection, working around it is not a good idea. It doesnt just prevent multiple instances of the server, it also prevents other tools such as calibredb and the GUI from running. You basically cannot have more than one thing that can alter a database running.
|
![]() |
![]() |
![]() |
#14 | ||
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
Quote:
And I have elevated CAP_NET_BIND_SERVICE capability in systemd .service file to allow non-root account bind to port <1024, and in fact verified both ports 80 and 8080 were properly bound by respective instances. Quote:
I was under impression that giving two instances 2 different paths to 2 different libraries would prevent more than one thing touching any of those libraries, I am confused as to what other resource those 2 instances could be sharing given that I gave them different ports, different libraries and different pid files. But I agree, I am uncomfortable with using that environment variable override, I will definitely try using 2 different accounts, thanks for suggestion! |
||
![]() |
![]() |
![]() |
#15 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,973
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I have only 2 users SERVER logins
1) is for guests (Guestusername, guestpassword) (not an individual logon ![]() 2) Me, I get to access all libraries from the web |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple identical server instances detected | didierm | Calibre Companion | 2 | 08-17-2014 10:19 AM |
Trouble with multiple content server instances | perx | Calibre | 3 | 02-17-2012 01:24 AM |
Content Server Multiple Libraries with different views? | jamng | Calibre | 18 | 09-27-2011 08:28 AM |
multiple libraries in the content server? | ottovdv | Calibre | 1 | 03-27-2011 05:52 PM |
Multiple logins for content server | wcalexan | Calibre | 4 | 03-06-2011 12:03 PM |