06-18-2017, 01:10 AM | #1 |
Member
Posts: 10
Karma: 10
Join Date: Sep 2009
Location: Washington
Device: Kindle Voyage
|
V3.0 commandlline calibre-server userdb
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/' 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 |
06-18-2017, 05:25 AM | #2 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre-server --manage-users
|
Advert | |
|
06-18-2017, 09:31 AM | #3 |
Member
Posts: 10
Karma: 10
Join Date: Sep 2009
Location: Washington
Device: Kindle Voyage
|
|
06-18-2017, 10:04 AM | #4 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre-server -h | grep USERDB
|
06-18-2017, 11:16 AM | #5 |
Member
Posts: 10
Karma: 10
Join Date: Sep 2009
Location: Washington
Device: Kindle Voyage
|
I guess my question wasn't precise enough (i have read the help file extensively). I should have asked how to tell the calibre-server to use the existing userdb?
This is what I just tried: Code:
$ /usr/bin/calibre-server --port 8080 --url-prefix=/cops --enable-auth --auth-mode=basic --userdb=USERDB '/home/matt/mounts/ServerFolders/Books/Calibre Library Oden/' |
Advert | |
|
06-18-2017, 12:20 PM | #6 | ||
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
Quote:
Code:
/home/username/.config/calibre bernie. |
||
06-18-2017, 01:08 PM | #7 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want it to use the same password database as the GUI, supply no --userdb argument, provided the user account you run the server and the gui under are the same, they will use the same userdb.
If you want it to use a userdb in a particular location, supply the full path to the user database file, and not a directory. So for instance --userdb ~/.config/calibre/server-users.sqlite |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Porting Calibre's built-in web server to a remote server? | perryja | Related Tools | 6 | 05-02-2013 09:05 AM |
calibre-server: Doesn't server up newly added files | kaistian | Calibre | 5 | 03-17-2013 11:54 AM |
calibre-server OPDS catalog - manual move to web server | HaakonME | Related Tools | 5 | 09-21-2012 03:11 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
Calibre-server port not open issue on Fedora server | stueyboy | Devices | 0 | 08-17-2011 04:57 PM |