Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2011, 02:49 PM   #16
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by kovidgoyal View Post
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'"
If you dont have anything listening on port 8080 on localhost, that must return a Connection refused error.
I ran this from a command prompt; I assume that's correct, and that I didn't need to be in a particular directory? Does it create a log somewhere? When I run it, nothing happens - or more accurately, I run it and then a new prompt appears immediately, with no error messages or other output. I don't entirely understand your explanation here, so I'm not sure what to make of this result.

Just for the heck of it, I did try turning off the Windows FW completely, as well as entirely disabling my AV and AS (at which point Windows certainly believed I had no FW or AV), but this made no difference.

Last edited by kovidgoyal; 05-24-2011 at 02:56 PM.
jesscat is offline   Reply With Quote
Old 05-24-2011, 02:53 PM   #17
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,374
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If there is no output that means something on your computer accepted a connection on port 8080, which is why the calibre server is not starting, since it thinks something is listening on that port.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-24-2011, 02:56 PM   #18
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: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Grab the Sysinternals (now owned by M$) TCPView.exe

http://technet.microsoft.com/en-us/s...rnals/bb897437

It will show all the 'connections' in use and the endpoints, maybe you will see port 8080 in use


Only For Windows
theducks is online now   Reply With Quote
Old 05-24-2011, 04:07 PM   #19
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by kovidgoyal View Post
If there is no output that means something on your computer accepted a connection on port 8080, which is why the calibre server is not starting, since it thinks something is listening on that port.
This would make more sense if I hadn't tried about 15-20 different port numbers, from 8080 up to 45000. Is something on my computer accepting a connection on all of these?

No, because actually, I just tried the code you gave me with port 45000, and I got the error "No connection could be made because the target machine actively refused it." Did the same with port 8787, and got the same "actively refused it" message. And yet I'm still getting "Port 8787 [or 45000] not free on 0.0.0.0" when I try to start the server on those ports.

So something else must be going on, right?
jesscat is offline   Reply With Quote
Old 05-24-2011, 04:11 PM   #20
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by theducks View Post
Grab the Sysinternals (now owned by M$) TCPView.exe

http://technet.microsoft.com/en-us/s...rnals/bb897437

It will show all the 'connections' in use and the endpoints, maybe you will see port 8080 in use


Only For Windows
Tried this; no sign of 8080, or indeed anything anywhere near 8000-9000, anywhere on the list of connections/ports in use.

I am just beyond baffled. Not that I'm anywhere near an expert in this stuff, but still.
jesscat is offline   Reply With Quote
Advert
Old 05-24-2011, 04:30 PM   #21
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,374
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The code I posted is the exact code that is used by the server to check for a busy port. I'm afraid I'm out of ideas at this point.
kovidgoyal is offline   Reply With Quote
Old 05-24-2011, 04:33 PM   #22
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,374
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually, here's one more thing to do run the following command and post the output:

Code:
calibre-debug -c "import socket; print socket.getaddrinfo('127.0.0.1', 8080, socket.AF_UNSPEC, socket.SOCK_STREAM)"
kovidgoyal is offline   Reply With Quote
Old 05-24-2011, 05:00 PM   #23
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by kovidgoyal View Post
Actually, here's one more thing to do run the following command and post the output:

Code:
calibre-debug -c "import socket; print socket.getaddrinfo('127.0.0.1', 8080, socket.AF_UNSPEC, socket.SOCK_STREAM)"

When I ran with 8080, output was:

[(2, 1, 0, '', ('127.0.0.1'), 8080))]

(I am not sure how to capture from a cmd prompt window, so I'm just retyping it; the '' is two single quotes).

Same result running with 8787, or with any other port number I tried.
jesscat is offline   Reply With Quote
Old 05-24-2011, 05:09 PM   #24
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: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by jesscat View Post
(I am not sure how to capture from a cmd prompt window, so I'm just retyping it; the '' is two single quotes).
Right-click the Dos Logo in the upper left corner.
Mark
Select text
Enter

Your Text is now in the 'clipboard'

BTW You can 'paste' commands with a right-click
theducks is online now   Reply With Quote
Old 05-24-2011, 05:10 PM   #25
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
Originally Posted by theducks View Post
Right-click the Dos Logo in the upper left corner.
Mark
Select text
Enter

Your Text is now in the 'clipboard'

BTW You can 'paste' commands with a right-click
I knew about pasting, but not copying - thanks!
jesscat is offline   Reply With Quote
Old 05-24-2011, 05:11 PM   #26
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,374
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That output is correct, I give up.
kovidgoyal is offline   Reply With Quote
Old 05-24-2011, 05:47 PM   #27
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
I give up too. And after rebooting everything - all computers on network, router, modem - I did manage to get it running fine on one of my laptops, using 8787 (8080 still not working). Not ideal, because I don't usually keep calibre open on that one, and I do keep it open on another machine almost all the time, so metadata.db can't sync regularly between them. But it'll do well enough - I'm just glad to have gotten it working at all!

Thanks for all your help!
jesscat 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
Need help - content server Sydney's Mom Calibre 0 08-28-2010 04:07 PM
Problems with server of content marcostt Calibre 2 08-25-2009 09:38 AM
Content Server thibaulthalpern Calibre 5 04-28-2009 12:56 PM
Content Server problems in 102 RoninTech Calibre 7 11-06-2008 05:21 PM


All times are GMT -4. The time now is 12:07 PM.


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