View Single Post
Old 07-01-2017, 06:51 PM   #1
josh.p.23
Member
josh.p.23 began at the beginning.
 
josh.p.23's Avatar
 
Posts: 18
Karma: 12
Join Date: Aug 2013
Device: android kindle app, FB Reader, several tablets
Cool 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
I load calibre-server with a systemd service file that contains this
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
This seems to work well with the browser, but when I attempt to load the opds catalog at http://example.com/opds/ in fbreader or moon + in android I get the error:
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
josh.p.23 is offline   Reply With Quote