Page 1 of 1
"invalid server address" after upgrading
Posted: February 14th, 2012, 3:12 am
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 - newsmaster@proxad.net (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)
Re: "invalid server address" after upgrading
Posted: February 20th, 2012, 3:27 am
by fzeihfioez
any idea why ? this could get annoying
thanks
Re: "invalid server address" after upgrading
Posted: February 20th, 2012, 4:59 am
by sander
What happens when you add and test "news.kpn.nl" as a server?
Re: "invalid server address" after upgrading
Posted: February 20th, 2012, 6:33 am
by fzeihfioez
doesn't work either
don't know what to think, since the host is resolved from the command line...
Re: "invalid server address" after upgrading
Posted: February 20th, 2012, 6:50 am
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'
>>>
Re: "invalid server address" after upgrading
Posted: February 20th, 2012, 6:24 pm
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
Re: "invalid server address" after upgrading
Posted: February 21st, 2012, 1:47 am
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.
Re: "invalid server address" after upgrading
Posted: March 4th, 2012, 8:03 am
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
Re: "invalid server address" after upgrading
Posted: March 4th, 2012, 8:51 am
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.