0.7.0 fails to start (Win7 x64 sp1)

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
mas91180
Newbie
Newbie
Posts: 5
Joined: June 18th, 2012, 8:18 am

0.7.0 fails to start (Win7 x64 sp1)

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post by sander »

What have you filled out as SABnzbd Host in Config - > General ?

Your log says "::1", so I'm wondering ...
mas91180
Newbie
Newbie
Posts: 5
Joined: June 18th, 2012, 8:18 am

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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?
mas91180
Newbie
Newbie
Posts: 5
Joined: June 18th, 2012, 8:18 am

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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?
mas91180
Newbie
Newbie
Posts: 5
Joined: June 18th, 2012, 8:18 am

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post by sander »

I think Shypike should have a look at this thread. I'll inform him.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post 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.
mas91180
Newbie
Newbie
Posts: 5
Joined: June 18th, 2012, 8:18 am

Re: 0.7.0 fails to start (Win7 x64 sp1)

Post by mas91180 »

1 minute after SABnzb shut down, netstat shows just an empty line and exits
Post Reply