Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2026, 04:19 PM   #1
Ajaxx1
Junior Member
Ajaxx1 began at the beginning.
 
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
Ajaxx1 is offline   Reply With Quote
Old 06-28-2026, 04:54 PM   #2
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: 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"
theducks is offline   Reply With Quote
Advert
Old 06-28-2026, 04:57 PM   #3
Ajaxx1
Junior Member
Ajaxx1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2026
Device: none
Sorry - running version 9.10, not 4.9.5... my bad
Ajaxx1 is offline   Reply With Quote
Old 06-28-2026, 05:05 PM   #4
Ajaxx1
Junior Member
Ajaxx1 began at the beginning.
 
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. (?)
Ajaxx1 is offline   Reply With Quote
Old 06-28-2026, 05:09 PM   #5
Ajaxx1
Junior Member
Ajaxx1 began at the beginning.
 
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?
Ajaxx1 is offline   Reply With Quote
Advert
Old 06-28-2026, 05:31 PM   #6
Ajaxx1
Junior Member
Ajaxx1 began at the beginning.
 
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
Ajaxx1 is offline   Reply With Quote
Old 06-28-2026, 07:00 PM   #7
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: 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:
Originally Posted by Ajaxx1 View Post
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
Her saved shortcut can point to her library in the future
[mine]
http://192.168.254.12:8082/#library_...anel=book_list [/mine]
also specifies the view
theducks is offline   Reply With Quote
Reply

Tags
calibre-server, content-server, multiple


Forum Jump

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


All times are GMT -4. The time now is 12:03 AM.


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