Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-21-2024, 02:15 PM   #1
fyrfli
Junior Member
fyrfli began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2024
Device: none
Question 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
i mean ... it works but ... just wondering whether that's an option.
fyrfli is offline   Reply With Quote
Old 01-21-2024, 07:21 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,039
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, content-server doesnt read configuration from a file only via comman line options.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-22-2024, 04:02 AM   #3
fyrfli
Junior Member
fyrfli began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2024
Device: none
thought so ... thanks!
fyrfli is offline   Reply With Quote
Old 02-24-2024, 05:10 PM   #4
ckronengold
Member
ckronengold began at the beginning.
 
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).
ckronengold is offline   Reply With Quote
Old 02-24-2024, 11:31 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,049
Karma: 148321038
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ckronengold View Post
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.
Spoiler:

Code:
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).
You may want to check the two message threads currently directly below your thread:
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.
DNSB is offline   Reply With Quote
Advert
Old 02-25-2024, 08:20 AM   #6
ckronengold
Member
ckronengold began at the beginning.
 
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.
ckronengold is offline   Reply With Quote
Old 02-25-2024, 01:02 PM   #7
ckronengold
Member
ckronengold began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2018
Device: kindle basic
Quote:
Originally Posted by DNSB View Post
which mention the same error and which will be corrected in the next calibre release.
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.
ckronengold is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 06:48 AM.


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