05-23-2011, 09:56 PM | #1 |
Groupie
Posts: 156
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini, iPad 2, Kindle 3
|
Content Server problems
I am running 8.2 on XP, trying to start the content server for the first time (I've never used it before), and getting the "Port xxxx not free on 0.0.0.0." I've gone through all the threads I can find on this topic, as well as the user manual, and I've tried every suggestion I've seen: disabled all AV, tried port numbers ranging from 8787 to 45000, rebooted and then started Calibre first thing with nothing else running, run netstat to see if anything is using the ports I'm trying (nothing is) - but I'm getting this error on every port I try, and I've tried many, many ports, many many times.
Does anyone have any other suggestions? |
05-23-2011, 11:39 PM | #2 |
creator of calibre
Posts: 44,754
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Go to preferences->tweaks and try changing what ip address the server listens on to the ip address of your network interface.
|
Advert | |
|
05-24-2011, 09:38 AM | #3 |
Groupie
Posts: 156
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini, iPad 2, Kindle 3
|
I'm not quite sure what the ip address of my network interface is - is that what I get as the ip address when I do an ipconfig /all? If so, changing the tweak to that value isn't solving the problem.
I'm reluctant to accept that I'm just not going to be able to use the content server, but I've run out of ideas and am not knowledgeable enough about this area to know what else to try. Could it be a router setting (I don't think I have anything unusual...)? Anyone have any other thoughts/ideas? |
05-24-2011, 11:07 AM | #4 | |
Well trained by Cats
Posts: 30,571
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
What happens when you click the 'test' button on the Content server configuration page? (my XP SP3 Firefox starts and asks for the username/password assigned to the CS) |
|
05-24-2011, 12:45 PM | #5 | |
I devour books!
Posts: 789
Karma: 1285226
Join Date: Mar 2009
Device: iPad Air, Kindle 3/Kobo Aura HD, iPhone 6
|
Quote:
1. Increased the timeout to 300 seconds 2. Change the port a couple of times, finally did cmd prompt and 8080 is listening and not used by any other application. 3. Turned off Airport mode on iPhone thinking it could be interferring with wifi. I am running Win 7, latest version of Calibre and Stanza 3.1. This works fine at home, Stanza sees my catalog with no problem. Once I leave the house, that's when the problems start. Any thoughts would be greatly appreciated. |
|
Advert | |
|
05-24-2011, 12:59 PM | #6 |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
CHilday1 Am I correct in inpreting what you are saying to mean that you are OK using the Content Server when you are at home and able to access it via your local WiFi network, but what you want to do is also access it when away from home? If so this is completely different problem that revolves around how to set up your router to allow access from the public internet.
|
05-24-2011, 01:04 PM | #7 | |
Groupie
Posts: 156
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini, iPad 2, Kindle 3
|
Quote:
(And if it matters, I have only a single router for both wifi and my wired lan.) wrt Chilady's post - I don't see the field for the timeout setting? And I'm not sure what you mean by you "did cmd prompt." Did these things eventually result in success? I'm a little unclear from your post. |
|
05-24-2011, 01:11 PM | #8 |
Groupie
Posts: 156
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini, iPad 2, Kindle 3
|
And in case it matters, or means anything to anyone, the error messages I'm getting in the log are:
[23/May/2011:20:00:15] ENGINE Shutting down due to error in start listener: Traceback (most recent call last): File "site-packages\cherrypy\process\wspbus.py", line 184, in start File "site-packages\cherrypy\process\wspbus.py", line 147, in publish File "site-packages\cherrypy\_cpserver.py", line 90, in start File "site-packages\cherrypy\process\servers.py", line 53, in start File "site-packages\cherrypy\process\servers.py", line 251, in wait_for_free_port IOError: Port 8080 not free on '0.0.0.0' And sometimes something like (similar except I thought the "trying to bind" might be relevant): [23/May/2011:20:55:50] ENGINE Bus STOPPING [23/May/2011:20:55:50] ENGINE Bus STOPPING [23/May/2011:20:55:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 18080)) already shut down [23/May/2011:20:55:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 18080)) already shut down [23/May/2011:20:55:50] ENGINE Stopped thread '_TimeoutMonitor'. [23/May/2011:20:55:50] ENGINE Stopped thread '_TimeoutMonitor'. [23/May/2011:20:55:50] ENGINE Bus STOPPED [23/May/2011:20:55:50] ENGINE Bus STOPPED [23/May/2011:20:55:50] ENGINE Bus EXITING [23/May/2011:20:55:50] ENGINE Bus EXITING [23/May/2011:20:55:50] ENGINE Bus EXITED [23/May/2011:20:55:50] ENGINE Bus EXITED [23/May/2011:20:55:50] Trying to bind to single interface: 10.0.0.4 [23/May/2011:20:55:50] Trying to bind to single interface: 10.0.0.4 [23/May/2011:20:55:50] ENGINE Bus STARTING [23/May/2011:20:55:50] ENGINE Bus STARTING [23/May/2011:20:55:50] ENGINE Started monitor thread '_TimeoutMonitor'. [23/May/2011:20:55:50] ENGINE Started monitor thread '_TimeoutMonitor'. [23/May/2011:20:55:55] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x034BEB50>> Traceback (most recent call last): File "site-packages\cherrypy\process\wspbus.py", line 147, in publish File "site-packages\cherrypy\_cpserver.py", line 90, in start File "site-packages\cherrypy\process\servers.py", line 53, in start File "site-packages\cherrypy\process\servers.py", line 251, in wait_for_free_port IOError: Port 8080 not free on '0.0.0.0' |
05-24-2011, 01:16 PM | #9 |
Grand Sorcerer
Posts: 12,168
Karma: 7908995
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@jesscat: are you running a network firewall that blocks network connections? Many "security suites" do this, as do dedicated firewalls like ZoneAlarm. If the program doesn't know about calibre, it might refuse to permit the calibre server to listen for connections from network (to act as a server). Calibre would see this as a failure to open a port.
The fix is to tell the security program that calibre is permitted to act as a server. How you do that depends on the security program. Somewhere in its configuration you should see 'firewall rules' or 'network access permissions' or some such. More than that I can't say. |
05-24-2011, 01:33 PM | #10 | |
Well trained by Cats
Posts: 30,571
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You need to set your FW program to 'Allow' (I think this is the one) calibre-server.exe |
|
05-24-2011, 01:43 PM | #11 |
Groupie
Posts: 156
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini, iPad 2, Kindle 3
|
The only FW I have running is Windows, and I have calibre-server.exe in the list of exceptions already. I have no other "security suite." I run Nod32 AV, but I already tried disabling it entirely, and that made no difference. I have a spyware program, but I disabled that as well. I simply cannot think of any other application that could be blocking it.
|
05-24-2011, 01:45 PM | #12 | |
I devour books!
Posts: 789
Karma: 1285226
Join Date: Mar 2009
Device: iPad Air, Kindle 3/Kobo Aura HD, iPhone 6
|
Quote:
The issue based on former conversations with Dropbox vs. Sugarsync not working for the Calbre2opds functionality is that now, I am trying to generate my catalog via Calibre server. When I leave the house, I cannot access the catalog and I thought I had set my network up to allow access to Calibre. Help? |
|
05-24-2011, 02:48 PM | #13 |
Member
Posts: 23
Karma: 10
Join Date: Jul 2010
Device: prs-505
|
I don't know about the op, but my test button is grayed out, because the server can't start. I'm a little closer to the problem, since now it tells me port on 192.168.1.101 is not free, instead of 0.0.0.0. I've tried several different ports, same message.
|
05-24-2011, 03:23 PM | #14 | |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
This is all possible (it is how I have my own home network set up), but is not for the faint-hearted |
|
05-24-2011, 03:29 PM | #15 |
creator of calibre
Posts: 44,754
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IOError: Port 8080 not free on '0.0.0.0'
is raised only if an attempt to connect to that port on localhost succeeds. Run this code: Code:
calibre-debug -c "import socket; s = socket.socket(socket.AF_INET); s.settimeout(10.0); s.connect(('127.0.0.1', 8080)); s.close(); print 'Something is listening on 127.0.0.1:8080'" EDIT: Changed the command to print out a message when something accepts the connection Last edited by kovidgoyal; 05-24-2011 at 03:57 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 08:26 AM |
Need help - content server | Sydney's Mom | Calibre | 0 | 08-28-2010 05:07 PM |
Problems with server of content | marcostt | Calibre | 2 | 08-25-2009 10:38 AM |
Content Server | thibaulthalpern | Calibre | 5 | 04-28-2009 01:56 PM |
Content Server problems in 102 | RoninTech | Calibre | 7 | 11-06-2008 06:21 PM |