View Single Post
Old 11-24-2020, 03:29 PM   #1
rodvp
Junior Member
rodvp began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2013
Device: nexus 4
Login failure with userdb with content server

I'm using a headless content server on a Raspberry Pi, and want to segregate two virtual libraries (basically so my kid can see just his books). In the past, with calibre version 2, I had 2 content servers operating on different ports, each attached to a different virtual library. But as of version 3 of calibre, this is no longer possible.

So now I've created 2 users, set their passwords, and associated them with a library via the --manage-users option. One of the users has username/password "me/me". Then started the content server with:

Code:
/usr/bin/calibre-server --port=58083 --pidfile=/data/calibre/calibrePID_x --userdb=/data/calibre/users.sqlite --access-log=/data/calibre/log --enable-auth --auth-mode=basic /data/ebook
When I try to connect, either via browser or calibre-companion, it asks for a username/password, but when I supply "me/me", I get the error message:

Code:
Failed to communicate with "/interface-data/init?1606249107278", with status: [403] Forbidden

The user me is not allowed to access any libraries on this server
I see the same message in the access log

Running calibre-server --manage-users shows:

Code:
What do you want to do? [1-4]: 2
Existing user names:
him, me
Enter the username: me

me has read-write access
1) Show password for me
2) Change password for me
3) Change read/write permission for me
4) Change the libraries me is allowed to access
5) Cancel

What do you want to do? [1-5]: 1

Current password for me is: me

me has read-write access
I am using calibre version 3.39.1, as this is all that's available for raspbian buster.

Any assistance is appreciated.
rodvp is offline   Reply With Quote