"invalid server address" after upgrading

Support for the Debian/Ubuntu package, created by JCFP.
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
fzeihfioez
Newbie
Newbie
Posts: 11
Joined: February 12th, 2012, 5:09 pm

"invalid server address" after upgrading

Post by fzeihfioez »

Hi,
This post is related to this one I opened yesterday but in the meantime I found what is going wrong (that is not samba) :
http://forums.sabnzbd.org/viewtopic.php ... 21&p=61207

In the configuration panel > servers :
Host=news.free.fr
Port=119

Then Test ==> invalid server address

But

Code: Select all

$ ping news.free.fr
PING news.free.fr (212.27.60.38) 56(84) bytes of data.
64 bytes from news-2.proxad.net (212.27.60.38): icmp_req=1 ttl=59 time=23.8 ms
64 bytes from news-2.proxad.net (212.27.60.38): icmp_req=2 ttl=59 time=23.8 ms
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
$ telnet news.free.fr 119
Trying 212.27.60.37...
Connected to news.free.fr.
Escape character is '^]'.
200 news-1.free.fr (15-1) NNRP Service Ready - [email protected] (posting ok)
test
500 What?
If I set the host to the IP, it's working fine...

edit:
Version: 0.6.15
OS: Ubuntu 10.04 server
Install-type: ppa
Firewall Software: no
Are you using IPV6? no
Is the issue reproducible? yes (i think)
fzeihfioez
Newbie
Newbie
Posts: 11
Joined: February 12th, 2012, 5:09 pm

Re: "invalid server address" after upgrading

Post by fzeihfioez »

any idea why ? this could get annoying
thanks
User avatar
sander
Release Testers
Release Testers
Posts: 9265
Joined: January 22nd, 2008, 2:22 pm

Re: "invalid server address" after upgrading

Post by sander »

What happens when you add and test "news.kpn.nl" as a server?
fzeihfioez
Newbie
Newbie
Posts: 11
Joined: February 12th, 2012, 5:09 pm

Re: "invalid server address" after upgrading

Post by fzeihfioez »

doesn't work either
don't know what to think, since the host is resolved from the command line...
User avatar
sander
Release Testers
Release Testers
Posts: 9265
Joined: January 22nd, 2008, 2:22 pm

Re: "invalid server address" after upgrading

Post by sander »

Open a terminal, start python, and check your output from the python commands below

Code: Select all

sander@R540:~$ python
Python 2.7.2+ (default, Oct  4 2011, 20:06:09) 
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import socket

>>> socket.getaddrinfo('news.kpn.nl', None)
[(2, 1, 6, '', ('213.75.12.10', 0)), (2, 2, 17, '', ('213.75.12.10', 0)), (2, 3, 0, '', ('213.75.12.10', 0))]

>>> socket.gethostbyname('news.kpn.nl')
'213.75.12.10'

>>> socket.getaddrinfo('newszilla6.xs4all.nl', None)
[(10, 1, 6, '', ('2001:888:0:18::119', 0, 0, 0)), (10, 2, 17, '', ('2001:888:0:18::119', 0, 0, 0)), (10, 3, 0, '', ('2001:888:0:18::119', 0, 0, 0))]

>>> socket.gethostbyname('news.free.fr')
'212.27.60.40'
>>> 
fzeihfioez
Newbie
Newbie
Posts: 11
Joined: February 12th, 2012, 5:09 pm

Re: "invalid server address" after upgrading

Post by fzeihfioez »

Code: Select all

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo('news.kpn.nl', None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -2] Name or service not known
>>> socket.gethostbyname('news.kpn.nl')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -5] No address associated with hostname
User avatar
sander
Release Testers
Release Testers
Posts: 9265
Joined: January 22nd, 2008, 2:22 pm

Re: "invalid server address" after upgrading

Post by sander »

fzeihfioez wrote:

Code: Select all

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo('news.kpn.nl', None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -2] Name or service not known
>>> socket.gethostbyname('news.kpn.nl')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -5] No address associated with hostname
So it's a problem with your python / system, not with SABnzbd. Do you agree?

Do you see the difference with the results on my system? Did you Google the error messages? When I do that, I see a few possible causes. I will not copy-paste those Google-results here.
fzeihfioez
Newbie
Newbie
Posts: 11
Joined: February 12th, 2012, 5:09 pm

Re: "invalid server address" after upgrading

Post by fzeihfioez »

ok, just for the record, you were right, that was a dns problem.
for an unknown reason, the proxy I'm using (set by dhcp) do not forward dns requests anymore...
so i added manually another dns to my resolv.conf
thanks for your help
User avatar
sander
Release Testers
Release Testers
Posts: 9265
Joined: January 22nd, 2008, 2:22 pm

Re: "invalid server address" after upgrading

Post by sander »

fzeihfioez wrote:ok, just for the record, you were right, that was a dns problem.
for an unknown reason, the proxy I'm using (set by dhcp) do not forward dns requests anymore...
so i added manually another dns to my resolv.conf
thanks for your help
OK, good to hear that. FYI: 8.8.8.8 is a very reliable nameserver (owned by Google).

In /etc/dhcp/dhclient.conf put the line:

prepend domain-name-servers 8.8.8.8;


and 8.8.8.8 will always appear as the first nameserver in resolv.conf.
Post Reply