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

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2015, 09:30 AM   #1
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
Connect calibre-server to internet via Apache

I have installed an internet server with Apache protected by htaccess on a raspberry pi 2. I use COPS but I would like to use calibre-server most friendly.

I have installed Calibre-server on the the raspberry. It works.
How to connect an internet URL <Internet IP>/calibre for example to <local-IP>:8080 ?
I want to use Apache to keep htAccess and several user logins.
aurigod is offline   Reply With Quote
Old 10-28-2015, 09:35 AM   #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: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://manual.calibre-ebook.com/server.html
kovidgoyal is online now   Reply With Quote
Advert
Old 10-28-2015, 09:50 AM   #3
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
Thanks, I tried, but my installation of calibre is problably wrong because I get the Error Message with http://localhost:8080/calibre

Quote:
404 Not Found
The path '/calibre' was not found.
Powered by CherryPy 3.2.2
aurigod is offline   Reply With Quote
Old 10-28-2015, 09:58 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Did you start calibre with the parameter
Code:
--url-prefix /calibre
Otherwise simply use http://localhost:8080
Normally calibre doesn't use any path at all for the landing page.



You NEED to use the --url-prefix in order to keep calibre on the same VirtualHost as other services.

Last edited by eschwartz; 10-28-2015 at 10:02 AM.
eschwartz is offline   Reply With Quote
Old 10-29-2015, 05:54 AM   #5
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
I think the Rewrite doesn't work.
I am going to fix first this problem.
Thanks
aurigod is offline   Reply With Quote
Advert
Old 11-01-2015, 10:47 AM   #6
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
I have fixed the problem using virtual host and mod_proxy apache

Install mod_proxy mod_proxyhttp
Create a virtual host reached by 'http://bibli.<domain>
edit the site

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName bibli.<domain>
ProxyPass / http://192.168.1.xxx:8080/
ProxyPassReverse / http://192.168.1.xxx:8080/
ProxyPreserveHost On
</VirtualHost>

Last edited by aurigod; 11-12-2015 at 12:07 PM.
aurigod is offline   Reply With Quote
Old 11-28-2015, 11:43 AM   #7
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
I put my calibre-server to ArchLinux from Raspian
(problem calibre verion too older) .
All works on Archlinux at the moment except "AuthUserFile" however my virtual host with restricted access worked on Raspian.

Here is the error message :

Code:
404 Not Found
The path '/error/HTTP_UNAUTHORIZED.html.var' was not found.
Powered by CherryPy 3.8.0
I want to know how accessing to the error log of the CherryPi to try to fix that
Thanks
aurigod is offline   Reply With Quote
Old 11-28-2015, 09:59 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can find the calibre-server logs in your calibre configuration directory (which on linux is "~/.config/calibre/").
See:
server_access_log.txt
server_error_log.txt

...


But that appears to be the standard apache error page for 401 UNAUTHORIZED (missing authorization, try again)

Last edited by eschwartz; 11-28-2015 at 10:15 PM.
eschwartz is offline   Reply With Quote
Old 11-29-2015, 05:31 AM   #9
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
Unhappy Error with passwords in calibre-server

Thanks, it is an Apache problem, but I got another one, sorry :-(
with native password in Calibre-Server / CherryPy / Python with passwords :
Code:
TypeError: n must be a native str (got unicode)
I saw the error was knowed but I did not find the solution.
I tried all this arguments :
password toto
password=toto
password "toto"
password="toto"

aurigod is offline   Reply With Quote
Old 11-29-2015, 09:37 AM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You will have to install my calibre-git package from the AUR for that.
Code:
yaourt -S calibre-git
There is a couple of outstanding five-year-old bugs in cherrypy that are fixed in calibre's bundled copy of cherrypy.
But most distros only see the "bundled code copy !!!!" part, freak out, and remove it in favor of a system copy of cherrypy.

For interest, here is the ArchLinux bug report for this issue: https://bugs.archlinux.org/task/43382
Debian does the same thing (though I have never bothered filing a bug report with them), which affects derivatives including raspbian and Ubuntu, so I can't really blame Arch specifically...

my calibre-git package in the AUR does the right (practical) thing and depends on calibre's own patched copy of cherrypy.


Since you are using an apache reverse proxy, it *shouldn't* matter, because you should be able to use apache's auth methods, and the upstream cherrypy bug only affects calibre-server's builtin password handling.
Maybe try to figure out what your apache problem is?
eschwartz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
calibre: cannot connect to X server cptnemo Calibre 1 09-02-2013 11:32 PM
How can i use the calibre server to show my book lists to someone in the internet? GustavoB Library Management 3 03-23-2012 12:07 PM
difficulties getting calibre-server to work with apache/wsgi adamaymas Calibre 4 09-23-2011 08:51 PM
calibre, apache, mod_python content server rupa Calibre 0 12-26-2010 10:29 AM


All times are GMT -4. The time now is 11:36 AM.


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