|
|
#1 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2026
Device: none
|
Running multiple calibre-server.exe instances
Hi - I have searched through the forum and still just can not understand how to start two calibre-servers exposing two different libraries on the same PC.
- windows 11 pro - one library stored in a folder named c:\bob's library - a second library stored at c:\jane's library Calibre 4.9.5 installed - gui can switch between libraries with no problem I would like to start two instances of the calibre-server: one for bob's library on port 8080 and a second calibre-server for jane's on port 8081. I have tried a simple .bat file containing: start /min calibre-server.exe -p 8080 --with-library "C:\Jane's Library" start /min calibre-server.exe -p 8081 --with-library "C:\Bob's Library" and a vbs file: Set sh = CreateObject("WScript.Shell") exe = """C:\Program Files\Calibre2\calibre-server.exe""" ' Jane isolated environment sh.Run "cmd /c set CALIBRE_USER_DIR=C:\CalibreEnv\Jane && start ""JaneServer"" " & exe & " ""C:\Jane's Library"" --port=8080", 0, False ' Bob isolated environment sh.Run "cmd /c set CALIBRE_USER_DIR=C:\CalibreEnv\Bob && start ""BobServer"" " & exe & " ""C:\Bob's Library"" --port=8081", 0, False In both cases, the first library is available on 8080 but the second does not start... I know there is an answer, I just know what the answer is... Can someone point me in the right direction... Thanks |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,850
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You do not need all that as the server runs only in background unlike Calibre
OTOH the bat does not end until the server quits, so you need to start 2 which you did You also had the Port use wrong Code:
start /b calibre-server --port=8081 "C:\Bob's Library" |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2026
Device: none
|
Sorry - running version 9.10, not 4.9.5... my bad
|
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2026
Device: none
|
Thanks for the quick reply. I tried this in a .bat file:
start /b calibre-server --port=8080 "C:\Jane's Library" start /b calibre-server --port=8081 "C:\Bob's Library" and got this in response C:\AMD\Calibre scripts>start /b calibre-server --port=8080 "C:\Jane's Library" C:\AMD\Calibre scripts>start /b calibre-server --port=8081 "C:\Bob's Library" Another calibre program such as another instance of calibre-server.exe or the main calibre program is running. Having multiple programs that can make changes to a calibre library running at the same time is not supported. calibre server listening on [::]:8081 OPDS feeds advertised via BonJour at: 10.201.0.72 port: 8081 Bob's library is available at 8081 but Jane's did not start. (?) |
|
|
|
|
|
#5 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2026
Device: none
|
I am not interested in making changes through these ports, just pulling books from the library to a tablet. Is there a flag that can help?
Or possibly run two portable versions each pointed toward a separate library? |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2026
Device: none
|
never mind - I was simply overthinking this.
Since the GUI has seen both libraries, when you start the calibre-server without specifying a library, calibre-server presents both libraries (Bob's Library and Jane's Library) as choices. Each of us can pull books from either library. (Not that she is interested in SciFi or I am interested in romance :-) This is exactly what we needed... Done and done |
|
|
|
|
|
#7 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,850
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
[mine] http://192.168.254.12:8082/#library_...anel=book_list [/mine] also specifies the view |
|
|
|
|
![]() |
| Tags |
| calibre-server, content-server, multiple |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sigil running multiple instances | DNSB | Sigil | 65 | 05-02-2025 11:00 AM |
| Multiple content-server instances possible ? | Tuxracer | Server | 15 | 05-28-2022 02:09 PM |
| Calibre on multiple computers while running server on a Synology NAS | irishtexmex | Calibre | 0 | 07-12-2017 10:11 AM |
| 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 |