Quantcast
Channel: MobileRead Forums - Reading and Management
Viewing all articles
Browse latest Browse all 24022

V3.0 commandlline calibre-server userdb

$
0
0
I am trying to run the commandline calibre content server on linux mint 18.1. I can't figure out how to correctly use auth.

Can I use the userdb of the content server built into the gui or do i need to create seperate userdb file?
If I need to create a userdb file what does that file need to contain and what format should it be in?

Here is the commandline I am trying to use:

Code:

$ /usr/bin/calibre-server --port 8080 --url-prefix=/cops --enable-auth  --auth-mode=basic --userdb=/opt/calibre/resources/content-server '/home/matt/mounts/ServerFolders/Books/Calibre Library Oden/'
Which give this error when I try to log in to the server (I assume because it can't find a userdb):

Code:

Unhandled exception in state: State: _job_done Client: 192.168.1.142:50409 Request: GET /interface-data/books-init?library_id=Calibre_Library_Oden&sort=timestamp.desc&1497761553701 HTTP/1.1
Traceback (most recent call last):
  File "site-packages/calibre/srv/loop.py", line 518, in tick
  File "site-packages/calibre/srv/loop.py", line 278, in _job_done
  File "site-packages/calibre/srv/pool.py", line 35, in run
  File "site-packages/calibre/srv/http_response.py", line 439, in run_request_handler
  File "site-packages/calibre/srv/routes.py", line 300, in dispatch
  File "site-packages/calibre/srv/auth.py", line 215, in __call__
  File "site-packages/calibre/srv/auth.py", line 250, in do_http_auth
  File "site-packages/calibre/srv/auth.py", line 209, in check
  File "site-packages/calibre/srv/users.py", line 128, in get
  File "site-packages/calibre/srv/users.py", line 77, in conn
CantOpenError: CantOpenError: unable to open database file

If I drop all the auth options from the commandline above the server works, but I really do need some sort of auth on it.

Viewing all articles
Browse latest Browse all 24022

Trending Articles