Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-28-2012, 07:49 AM   #1
vil_coyotte
Junior Member
vil_coyotte began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2012
Device: Ipad
Another error with the calibre content server

Hello,
I have another error with the calibre server content.
I don't understand exactly how to make a good configuration to run calibre content server on linux.

I follow this help file:
http://manual.calibre-ebook.com/server.html

I will run the server in process.
So, i create a WSGI adapter as describe on the help page.
I restart apache2, anything OK, no errors or warning.

But when i try to access to the website, i have a 500 Internal error.
In the Apachae2 error log, the following:

" [Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] mod_wsgi (pid=11232): Target WSGI script '/var/www/cgi-bin/calibre-wsgi-adapter.py' cannot be loaded as Python module.
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] mod_wsgi (pid=11232): Exception occurred processing WSGI script '/var/www/cgi-bin/calibre-wsgi-adapter.py'.
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] Traceback (most recent call last):
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] File "/var/www/cgi-bin/calibre-wsgi-adapter.py", line 29, in <module>
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] from calibre.library.server.main import create_wsgi_app
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] ImportError: No module named calibre.library.server.main "

I create a virtualhost ass describe below:

<VirtualHost _Default_:80>

ServerName calibre.XXX.XXX.XXX.fr
WSGIScriptAlias /calibre /var/www/cgi-bin/calibre-wsgi-adapter.py

</VirtualHost>

But i get no result :-(

Can anyone help me please ?
vil_coyotte is offline   Reply With Quote
Old 11-28-2012, 07:53 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: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
mod_python does not have access to calibre. Read the note at the start of the In process section. It's a lot easier to use a reverse proxy, to get the inprocess server working you need to understand how python works.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-28-2012, 08:24 AM   #3
vil_coyotte
Junior Member
vil_coyotte began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2012
Device: Ipad
Hello,
thanks for your answer.
Reverse proxy is certainly a better solution, but it doesn't work with my config:
I have several servers (personnal, with 5 max users..) on my linux server.

I have an apache2 server running.
I have 6 servers on the 80 port, and one on the 443 port.
5 of the 6 servers works correctly (reverse proxy based on the name of the server), on the 80 port.
But, the calibre server do not work.
I don't understand (probably) how to configure !
The calibre server port is 8080.
How to configure the reverse proxy to works ?

Excuse the question, it is probably basic, but i am searching for long time but i can't found the solution.
vil_coyotte is offline   Reply With Quote
Old 11-28-2012, 09:31 AM   #4
vil_coyotte
Junior Member
vil_coyotte began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2012
Device: Ipad
Hello,
finally, i found the solution with using Proxypass directive in my virtualhost config.

It is in the help page, in notice of reverse proxying calibre, but i have not seen before.

Excuse me, and very thanks for this extraordinary job.

Best regards.

vil_coyotte
vil_coyotte is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Content Server and Windows Home Server 2011 HughMcC Calibre 8 10-01-2014 07:26 AM
Calibre content server on linux error vil_coyotte Calibre 2 11-02-2012 08:56 AM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM
Calibre 0.8.28 content server error Caleb666 Calibre 1 11-29-2011 03:14 AM
Calibre Content Server error in Ubuntu 10.10 Bodman456 Calibre 1 07-07-2010 03:26 PM


All times are GMT -4. The time now is 06:13 AM.


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