07-01-2017, 06:51 PM | #1 |
Member
Posts: 18
Karma: 12
Join Date: Aug 2013
Device: android kindle app, FB Reader, several tablets
|
SOLVED: opds login broken?
I am using the latest calibre 3.2.1 under apache2 on Ubuntu 16.04 fully updated. I'm serving calibre-server with mod_rewrite, the relevant section of my virtual host looks like this:
Code:
RewriteEngine on RewriteCond %{REQUEST_URI} !/\.well-known/.* RewriteRule ^(.*) http://localhost:8080/$1 [proxy] RewriteCond %{REQUEST_URI} !/\.well-known/.* RewriteRule ^ http://localhost:8080 [proxy] # SetEnv force-proxy-request-1.0 1 # SetEnv proxy-nokeepalive 1 Code:
[Unit] Description=Calibre Service After=network.target [Service] Type=forking PIDFile=/var/run/calibre-server.pid ExecStart=/usr/bin/calibre-server \ --daemonize \ --disable-use-bonjour \ --enable-auth \ --listen-on 127.0.0.1 \ --log=/var/log/calibre-server.log \ --max-request-body-size=65 \ --max-opds-items=30 \ --max-opds-ungrouped-items=100 \ --port=8080 \ --pidfile=/var/run/calibre-server.pid \ --userdb /home/username/lib/users.sqlite \ /home/username/lib/default/ \ /home/username/lib/pdf/ [Install] WantedBy=multi-user.target length=1;index=1 This only happens when I have auth on. If I try to run without auth, the opds feed loads right up, and when I access the auth protected feed in a browser the login prompt appears, and there is no problem. So... help? Last edited by josh.p.23; 07-02-2017 at 12:38 PM. Reason: solved |
07-01-2017, 11:43 PM | #2 |
creator of calibre
Posts: 44,303
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1) If you are using an SSL enabled reverse proxy which you seem to be, then use --auth-mode=basic
2) length=1;index=1 isn't an actual error so unless you can get better error messages, I'm not sure how to help you. OPDS has no separate authentication from the rest of the server. 3) You can try using curl to test the authentication outside a browser. |
Advert | |
|
07-02-2017, 12:36 PM | #3 |
Member
Posts: 18
Karma: 12
Join Date: Aug 2013
Device: android kindle app, FB Reader, several tablets
|
FIXED
Code:
auth-mode=basic I don't know how I missed that, I poured over Code:
$ caliber-server --help Time to go read the docks a bit closer. Thank you. |
Tags |
authentication, fbreader, opds |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OPDS Client? | Kudalufi | Calibre | 9 | 12-21-2012 01:59 AM |
Touch OPDS client ??? | vlad59 | Kobo Reader | 7 | 12-04-2011 09:36 AM |
OPDS | robojerk | Calibre | 2 | 07-08-2011 01:14 PM |
Broken PRS-505; any place to buy chrome bottom piece? Or anyone with broken 505? | erikk | Sony Reader | 1 | 12-09-2009 06:51 PM |
Broken Ipod works Fine! except that its broken | Andybaby | Lounge | 1 | 06-04-2009 02:03 AM |