![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2020
Device: iOS
|
Viewer problem running behind Apache
I've been running calibre-server 4.20 behind Apache using digest authentication with no problems. But I wanted the sync feature to work so I got rid of digest authentication and setup the calibre user database. Now I'm having trouble with the Viewer webapp. I've cleared the browser cache, credentials, etc but the problem persists.
All catalog browsing functions appear to work and downloading always works, but when a book is selected and "Read" is pressed, I see this error error in the browser: (firefox) Code:
Could not download book Could not open MyBook. Failed to download some book data, click "Show details" for more information Code:
OEBPS/Text/vde31.05.xhtml Failed to communicate with "/book-file/827/EPUB/789472/15944457100/OEBPS/Text%2Fvde31.05.xhtml? library_id=Calibre_Library&1594651600287", with status: [400 (error)] Bad Request From the system log Code:
server calibre-server[1636444]: Authorization URI mismatch: (u'book-file', u'827', u'EPUB', u'789472', u'15944457100', u'OEBPS', u'Text', u'vde31.05.xhtml') != (u'book-file', u'827', u'EPUB', u'789472', u'15944457100', u'OEBPS', u'Text/vde31.05.xhtml') from client: 127.0.0.1 Code:
[Unit] Description=calibre content server After=network.target [Service] Type=simple User=calibre Group=calibre ExecStart=/opt/calibre/calibre-server \ --port 8082 \ --listen-on 127.0.0.1 \ --userdb /etc/httpd/calibre.sqlite \ --enable-auth \ "/share/Calibre Library" [Install] WantedBy=multi-user.target Code:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so <VirtualHost *:80> ServerName calibre.myserver.com AllowEncodedSlashes On ProxyPreserveHost On ProxyPass "/" http://localhost:8082/ </VirtualHost> Thanks for any insights. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,320
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The problem has to do with the slashes in the file names. Its over a decade since I used apache so cant help you with that. You will need to get apache to handle the slashes correctly.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2020
Device: iOS
|
It does appear to be a slash problem. I decided that I prefer to run calibre-server directly because of the user database feature.
Thanks |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New ebook-viewer in Linux - problem running as root | cikasole | Calibre | 4 | 10-21-2019 09:32 AM |
Problem running Calibre under Windows 10 | aceflor | Calibre | 11 | 01-31-2016 10:37 AM |
Running Calibre on apache.. | mnsweeps | Calibre | 3 | 03-28-2011 02:32 AM |
Calibre 0.7.5 problem install and running | jean-paul | Calibre | 3 | 06-28-2010 04:15 PM |
Problem running scripts from ContentLister | Fellball | iRex | 1 | 03-13-2009 08:16 PM |