Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

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
zenmechanic
Newbie
Newbie
Posts: 1
Joined: December 27th, 2010, 1:10 pm

Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by zenmechanic »

Version: (Ex: 0.5.6 Final)
OS: (Win 7 x64)
Install-type:  Windows Installer
Skin (if applicable): NA
Firewall Software: Win 7 Firewall
Are you using IPV6? N
Is the issue reproducible? Y

Contents of logfile:

Traceback (most recent call last):
  File "SABnzbd.py", line 1257, in
  File "SABnzbd.py", line 882, in main
  File "cherrypy\process\servers.pyo", line 228, in check_port
socket.gaierror: (11004, 'getaddrinfo failed')

Cause:

DNS Client service disabled.

Reason:

Service not needed unless on a Windows domain network.

Resolution: enable DNS client service.

Notes:

This is a temporary solution to get sab working, there is no reason that it should be dependant on the DNS client service. No other windows software is (save Windows Local DNS resultion if using a local windows DNS server).

I disable the DNS client service because I use a custom hosts file for added security see here for details http://www.mvps.org/winhelp2002/hosts.htm .. With a hosts file this large the DNS client service should be disabled otherwise you will have large memory usage for the DNS client service.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by shypike »

Likely a problem in the Python runtime libraries.
There are more issues with that and it will be looked at for a future release.
Thanks for the tip!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by shypike »

There is a side-effect to disabling the DNS Client service:
the system no longer registers its own DNS name.
I suspect the the Python DNS code fails on that aspect.
Which IP or hostname do you set for SABnzbd's web server?
Ash77
Newbie
Newbie
Posts: 3
Joined: February 2nd, 2011, 6:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by Ash77 »

I encounter the same error despite the DNS Client Service being enabled. Restarting the service still results in the same error.

Same SABnzbd+, windows versions.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by shypike »

There can be many more DNS problems.
Always check first whether nslookup actually resolves the address.
Ash77
Newbie
Newbie
Posts: 3
Joined: February 2nd, 2011, 6:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by Ash77 »

shypike wrote: There can be many more DNS problems.
Always check first whether nslookup actually resolves the address.
Which address would I check for, I receive this error immediately after installation.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by shypike »

Is this before the web browser is started to show you the Wizard?
If so, your system has problems resolving the address "localhost".
This means there's something seriously wrong with it.
You can try to start SABnzbd like this:
WindowsKey-R and then type:
"c:\program files\SABnzbd\SABnzbd.exe" --server 127.0.0.1:8080
Press Enter.
Ash77
Newbie
Newbie
Posts: 3
Joined: February 2nd, 2011, 6:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by Ash77 »

shypike wrote: Is this before the web browser is started to show you the Wizard?
If so, your system has problems resolving the address "localhost".
It was prior to the web browser opening.  Checked resolution to localhost and it failed.  Corrupt LMHOSTS file.  Now resolved, thank you.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Crash on opening: socket.gaierror: (11004, 'getaddrinfo failed')

Post by shypike »

Good that it's solved.
Even so, I'll check if it's possible to improve reporting of such issues.
Post Reply