Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2013, 07:17 PM   #1
cdaller
Junior Member
cdaller began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2013
Location: Graz, Austria
Device: ipad
Calibre-Server: no pages found (404) in OSX

Hi!

I have difficulties getting the calibre-server to run: nearly all requests return a "404 Not Found" error.

My configuration is the following (standard config - no changes):
server port: 8080
username: calibre
password: (not set)
...
url prefix: calibre

when I browse to http://localhost:8080/ I get a calibre page that has no images, no css and every link on it results in "404 Not Found". In fact, every link that goes to http://localhost:8080/calibre/... results in "404 Not Found".
The "404 Not Found" page is created by "Powered by CherryPy 3.2.2", so I am talking to the calibre server, but it does not serves content-pages to me.

It does not make a difference
* if I use localhost/127.0.0.1/my ip address
* if I use my calibre library (around 400 books in it), an empty or a library with one book in it.
* if I browse with Safari, Chrome or firefox
* if I browse from the same computer or from another connected device (ipad)
* if I start from command line (calibre-server) or from GUI
* if I use port 8080 or 8765

I am some kind of clueless. Some weeks ago, the server was happily running, but right now I cannot find a clue what is going wrong.

My debug output:
Darwin-12.3.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '12.3.0', 'Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64')
Python 2.7.3
OSX: ('10.8.3', ('', '', ''), 'x86_64')

My calibre version is 0.9.24 and this behavior also showed in 0.9.22 and 0.9.23. not sure what was the last version that worked (not even sure that it is due to an update).

Here is a screenshot of what I get in the browser:


The server log does not show anything interesting:
[27/Mar/2013:00:01:36] ENGINE Bus STARTING
[27/Mar/2013:00:01:36] ENGINE Started monitor thread '_TimeoutMonitor'.
[27/Mar/2013:00:01:37] ENGINE Serving on 0.0.0.0:8080
[27/Mar/2013:00:01:38] ENGINE Bus STARTED

The access log neither:
127.0.0.1 - - [27/Mar/2013:00:12:11] "GET /calibre/browse/icon/tags.png HTTP/1.1" 404 742 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"
127.0.0.1 - - [27/Mar/2013:00:12:11] "GET /calibre/browse/icon/rating.png HTTP/1.1" 404 744 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"
127.0.0.1 - - [27/Mar/2013:00:12:11] "GET /calibre/browse/icon/search.png HTTP/1.1" 404 744 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"

Help would be appreciated!
christof

Last edited by cdaller; 03-26-2013 at 07:20 PM.
cdaller is offline   Reply With Quote
Old 03-26-2013, 08:18 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,782
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
127.0.0.1 will only work on the machine calibre is installed on, hence the name LOCALhost

For other systems to access you will need to know the LAN IP (ie 192.168.0.11)

That interface could be the Mobile version, but 404 is not expected.
theducks is online now   Reply With Quote
Advert
Old 03-27-2013, 07:52 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
My guess is that calibre-server is not seeing your library but is instead seeing a default empty one. If so, then you need to use the --with-library argument to point calibre-server to the correct folder.
chaley is offline   Reply With Quote
Old 03-27-2013, 06:04 PM   #4
cdaller
Junior Member
cdaller began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2013
Location: Graz, Austria
Device: ipad
Thanks for your answers, but unfortunately the problem still is the same:

* I started the server with "calibre-server --with-library=Calibre\ Library" (from my home directory) - same result
* same result with localhost/127.0.0.1/<hostname>/<other ip address>

Strange thing is, that with http://xxx:8080/calibre always a 404 is returned while with http://xxx:8080 I get the page like the screenshot in my other posting. Should there be a web-interface on http://xxx:8080 at all? Or only on http://xxx:8080/calibre ?

Can I give you more information (log file, directory content, ...) so anybody is able to help?

regards
christof
cdaller is offline   Reply With Quote
Old 03-27-2013, 06:09 PM   #5
cdaller
Junior Member
cdaller began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2013
Location: Graz, Austria
Device: ipad
Hi!

thanks for your answers, but unfortunately none of the suggestions worked:
* no difference if using my ip, my internal hostname, localhost or 127.0.0.1
* no difference when starting the server with a specific library "calibre-server --with-library=Calibre\ Library " from my home directory (and "Calibre Library" contains all my ebooks)

Should there be a web-interface on http://xxx:8080 or should there be only one at http://xxx:8080/calibre?

Can I add some information to help find the the problem?

regards
christof
cdaller is offline   Reply With Quote
Advert
Old 03-27-2013, 07:14 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,782
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You may have 2 things going on:

The image you see is similar to When I set Firefox to View:Page Style: No Style. Change the setting (while viewing) to Basic Page Style


BTW as you can see: the URL in the address bar works, you may have some other settings in your browser blocking things. Try disabling some of the Browser plugins
Attached Thumbnails
Click image for larger version

Name:	Server-no-style.jpg
Views:	409
Size:	40.4 KB
ID:	103571  
theducks is online now   Reply With Quote
Old 03-27-2013, 11:44 PM   #7
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those URLs look like they have a prefix. If you've removed the prefix setting the you need to use bare urls http://localhost:8000/ *not* http://localhost:8000/calibre
kovidgoyal is offline   Reply With Quote
Old 04-06-2013, 03:40 PM   #8
cdaller
Junior Member
cdaller began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2013
Location: Graz, Austria
Device: ipad
Hi!

thanks for your help. I tried to start the calibre server on my other mac today and it worked! Then I copied all settings, restarted calibre and now it works on my laptop as well! The prefix was the thing that broke the server!

I can reproduce it: set a prefix "calibre" and browse to http://localhost:8080/ gives the result described in my first posting. http://localhost:8080/calibre only returns a 404.

My problem probably was, that I changed the settings and restarted the server but did not save the settings before restarting.

Anyway, it seems that the prefix-feature is broken. Not a big issue for me - I am happy to use the server without prefix as well!

Thanks for all your support - as a software developer myself, I really appreciate that!
christof
cdaller is offline   Reply With Quote
Reply

Tags
calibre-server, osx


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Kobo/Adobe not working--error 404 when I try to get the pubs--Server down? tea2 Kobo Reader 4 07-02-2012 09:02 AM
Calibre-Server - Error: No Books Found Pinkeyes Calibre 6 09-28-2011 10:46 AM
Calibre server not found catscradle Devices 1 02-12-2011 05:17 PM
Found super fast tools to divide A4 to 2 A5 pages jimmyzou Sony Reader 3 04-23-2007 02:48 PM


All times are GMT -4. The time now is 03:36 PM.


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