Page 1 of 1

0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 8:29 am
by mas91180
Hi and let me thank you for this nice program. Decided to upgrade from 0.6.15, but no luck so far.
Here's the part of log pertinent to the problem:

Code: Select all

Starting web-interface on localhost:8125

::INFO::[_cplogging:55] [17/Jun/2012:09:11:37] ENGINE Bus STARTING

::INFO::[_cplogging:55] [17/Jun/2012:09:11:37] ENGINE Started monitor thread '_TimeoutMonitor'.

::INFO::[_cplogging:55] [17/Jun/2012:09:11:37] ENGINE Serving on ::1:8125

::ERROR::[_cplogging:55] [17/Jun/2012:09:11:47] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x026CBA50>>
Traceback (most recent call last):
  File "cherrypy\process\wspbus.pyo", line 147, in publish
  File "cherrypy\_cpserver.pyo", line 90, in start
  File "cherrypy\process\servers.pyo", line 55, in start
  File "cherrypy\process\servers.pyo", line 260, in wait_for_free_port
IOError: Port 8125 not free on 'localhost'
...and it just shutting down after that. Well, I checked with netstat and this port is definitely free, also I tried different ones - same problem. Tried both installation and zip versions. Rolling back to 0.6.15 (same ini) - everything's fine. Any ideas what could be wrong?
Thanks in advance.

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 10:32 am
by sander
What have you filled out as SABnzbd Host in Config - > General ?

Your log says "::1", so I'm wondering ...

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 10:51 am
by mas91180
sander wrote:What have you filled out as SABnzbd Host in Config - > General ?

Your log says "::1", so I'm wondering ...
localhost

upd: ...and thanks to your question problem solved, changed it to 127.0.0.1 and it started just fine. weird, i believe 'localhost' was there since I don't remember when.

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 10:59 am
by sander
mas91180 wrote:
sander wrote:What have you filled out as SABnzbd Host in Config - > General ?

Your log says "::1", so I'm wondering ...
localhost

upd: ...and thanks to your question problem solved, changed it to 127.0.0.1 and it started just fine. weird, i believe 'localhost' was there since I don't remember when.
Yep: localhost should work.

When you change back to localhost, do you get the same problem?

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 11:12 am
by mas91180
sander wrote:When you change back to localhost, do you get the same problem?
yes, works with 127.0.0.1 only
even if I explicitly write 127.0.0.1 localhost in my hosts file, it doesn't seems to resolve it

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 11:15 am
by sander
Can you do on the CMD command line:

Code: Select all

nslookup localhost
ping localhost (and then CTRL-C after a few pings)
... and post the output here?

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 11:19 am
by mas91180

Code: Select all

>nslookup localhost
Server:  UnKnown
Address:  192.168.0.1

Name:    localhost
Addresses:  ::1
          127.0.0.1

>ping localhost

Pinging mas7-PC [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 11:50 am
by sander
I think Shypike should have a look at this thread. I'll inform him.

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 12:07 pm
by shypike
On "modern" operating systems, localhost means both 127.0.0.1 (IPv4) and ::1 (IPv6).
Release 0.7.0 wants to bind to both of those, because various browsers mess up
(some pick ::1, others 127.0.0.1).
The consequence is that the same port should be available on both ::1 and 127.0.0.1
On your system this is not the case, because some other program/service is using ::1:8125
(either that or some networking anomaly).
The work-around is to use another port or set 127.0.0.1 explicitly, like you did.

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 12:10 pm
by sander
@mas91180

Can you post the output of

Code: Select all

netstat -aon | find "8125"
@shypike:

mas91180 says he also tried other ports, and that didn't work either. So maybe a (system) problem with binding to ::1 ? Let's wait for his netstat output.

Re: 0.7.0 fails to start (Win7 x64 sp1)

Posted: June 18th, 2012, 12:39 pm
by mas91180
1 minute after SABnzb shut down, netstat shows just an empty line and exits