Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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: 10
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
Old 07-01-2017, 11:43 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,395
Karma: 10205094
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-02-2017, 12:36 PM   #3
josh.p.23
Member
josh.p.23 began at the beginning.
 
josh.p.23's Avatar
 
Posts: 18
Karma: 10
Join Date: Aug 2013
Device: android kindle app, FB Reader, several tablets
Thumbs up FIXED

Code:
auth-mode=basic
did the trick.
I don't know how I missed that, I poured over
Code:
$ caliber-server --help
after upgrading to v3.

Time to go read the docks a bit closer.

Thank you.
josh.p.23 is offline   Reply With Quote
Reply

Tags
authentication, fbreader, opds

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 09:49 AM.


MobileRead.com is a privately owned, operated and funded community.