01-21-2024, 02:15 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2024
Device: none
|
configuring the content server...
hi there. long time user here, but only recently decided to deep dive into all the features.
got the content server setup on my server so i can access my books from any browser to read and whatnot. still working on the configuration (like adding my favourite plugins from desktop), but one question that has been bugging me is: can we put the config options for the content server in a config file somewhere? because this is a really long line to put in a systemd file Code:
calibre-server \ --enable-auth \ --auth-mode=auto \ --enable-local-write \ --trusted-ips=0.0.0.0/0 \ --userdb=users.db \ --log=server.log \ --access-log=access.log \ --port=8080 \ --daemonize \ CalibreLibrary |
01-21-2024, 07:21 PM | #2 |
creator of calibre
Posts: 44,353
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, content-server doesnt read configuration from a file only via comman line options.
|
Advert | |
|
01-22-2024, 04:02 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2024
Device: none
|
thought so ... thanks!
|
02-24-2024, 05:10 PM | #4 |
Member
Posts: 21
Karma: 10
Join Date: Jan 2018
Device: kindle basic
|
Whats the best way to pass those in the calibre-server.service file?
When I edited the line "ExecStart=/opt/calibre/calibre-server --userdb /srv/calibre/users.sqlite --enable-auth" I'm getting an error. Error: Unhandled error Uncaught TypeError: Cannot read properties of undefined (reading 'is_local') Error at http://192.168.0.221:8080/:10878:141 Traceback (most recent call last): at XMLHttpRequest.ρσ_anonfunc (http://192.168.0.221:8080/:5951:21) at complete_callback (http://192.168.0.221:8080/:5919:17) at on_data_loaded (http://192.168.0.221:8080/:11515:24) at UserSessionData.set_library_option (http://192.168.0.221:8080/:10897:25) at UserSessionData.set (http://192.168.0.221:8080/:10878:141) TypeError: Cannot read properties of undefined (reading 'is_local') But it works when I launch calibre-server directly from the command line. I created three users and removed write access from them. (I didn't specify a library because I have 3 different libraries, all of which were working before adding users). |
02-24-2024, 11:31 PM | #5 | |
Bibliophagist
Posts: 39,488
Karma: 154108302
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Content server error... and Calibre server error after updating to 7.5.1 which mention the same error and which will be corrected in the next calibre release. |
|
Advert | |
|
02-25-2024, 08:20 AM | #6 |
Member
Posts: 21
Karma: 10
Join Date: Jan 2018
Device: kindle basic
|
Yes, I read those. I was curious if there was something unique to the fact that I was only experiencing the error when launching from the calibre-server.service file rather than the command line directly. They also both mentioned Windows and I'm running Ubuntu.
Looking forward to the update. |
02-25-2024, 01:02 PM | #7 |
Member
Posts: 21
Karma: 10
Join Date: Jan 2018
Device: kindle basic
|
I thought, perhaps, it was a different cause because I was only experiencing the issue when running from the calibre-server.service file and not having any problem when launching by the command line.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ERROR: Failed to start Content server: Could not start the Content server. | Ramzay | Server | 4 | 08-04-2023 10:50 AM |
Trouble configuring SSL for Calibre server on Windows | hollowpoint | Server | 3 | 06-20-2021 03:13 AM |
Configuring SSL in Content Server gives Error 13 | Pachuqismo | Server | 8 | 06-11-2021 04:46 PM |
calibredb does not work with content server running (content server is using --enable | Irvin | Server | 3 | 01-08-2019 02:47 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |