Page 1 of 1

0.3.0 IPv6 on Vista

Posted: January 26th, 2008, 12:30 am
by Yarbles
Version:  0.3.0 Final
OS: Vista Business
Install-type:  Windows Installer
Firewall Software: Vista firewall
Are you using IPV6? Trying  :)
Is the issue reproducible? yes

I wanted to try that free IPv6 news server posted in the free usenet thread, so I got everything setup on my Vista system. Because I'm behind a NAT I had to install a tunnel client  (from go6) which went very smoothly. While I'm able to ping newszilla6.xs4all.nl fine, SAB isn't working. The log says:

2008-01-25 06:41:42,513::INFO::[downloader] 1@newszilla6.xs4all.nl :119: Initiating connection
2008-01-25 06:41:42,516::ERROR::[downloader] Failed to initialize 1@newszilla6.xs4all.nl :119
Traceback (most recent call last):
  File "sabnzbd\downloader.pyo", line 211, in run
  File "sabnzbd\newswrapper.pyo", line 91, in init_connect
  File "sabnzbd\newswrapper.pyo", line 44, in __init__
gaierror: (11001, 'getaddrinfo failed')
2008-01-25 06:41:42,519::WARNING::[downloader] Thread 1@newszilla6.xs4all.nl :119: failed to initialize

To further check I installed BNR2, which supports IPv6, and it worked fine with xs4all.

Re: 0.3.0 IPv6 on Vista

Posted: January 26th, 2008, 3:01 am
by sander
Yarbles, I was trying to going to help, but it looks like I'm going to give more confusion:

That line 44 is this:

        res = socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM)

So I tried some things from the Python CLI (not SAB itself) on Ubuntu Linux (see below). My goal was to fingerpoint the difference between python on Linux and python on Windows. But the strange thing is that I get the same error now for newszilla6.xs4all.nl. Apparantly the root cause is somewhere else in the SAB code, and not just this line.

Sorry. The SAB authors are needed.
sander@fujitsu:~$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import socket

>>> socket.getaddrinfo('news.xs4all.nl', 119, 0, socket.SOCK_STREAM)
[(2, 1, 6, '', ('194.109.133.133', 119))]

>>> socket.getaddrinfo('newszilla6.xs4all.nl', 119, 0, socket.SOCK_STREAM)
Traceback (most recent call last):
  File "", line 1, in
socket.gaierror: (-2, 'Name or service not known')

>>> socket.getaddrinfo('newszilla6.xs4all.nl', None, socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_IP, socket.AI_CANONNAME)
[(10, 2, 17, 'newszilla6.xs4all.nl', ('2001:888::119', 0, 0, 0))]
>>>
sander@fujitsu:~$

Re: 0.3.0 IPv6 on Vista

Posted: January 27th, 2008, 9:49 am
by shypike
The IPV6 modifications to newswrapper.py were made by an outside contributer, who claims that this works on his (Windows) system.
Alas, nobody in the team has an IPV6 connection available.

I have applied for an account on SixXS.net, so that I can debug this myself.
You need to have some patience.

Re: 0.3.0 IPv6 on Vista

Posted: January 27th, 2008, 6:14 pm
by sander
shypike wrote: The IPV6 modifications to newswrapper.py were made by an outside contributer, who claims that this works on his (Windows) system.
If it's based on the patch on http://sourceforge.net/tracker/index.ph ... tid=773611, it does say it's not tested on Windows:
Patch on newswrapper.py to add IPv6 support. I've
tested it on my Linux server to connect to the IPv6
public newsserver newszilla6.xs4all.nl:119. It works
fine. Don't know if it's works on Windows.
But maybe there's another IPv6 patch?
Alas, nobody in the team has an IPV6 connection available.

I have applied for an account on SixXS.net, so that I can debug this myself.
You need to have some patience.
Good; sixxs' aiccu setup is easy and good.

Re: 0.3.0 IPv6 on Vista

Posted: January 28th, 2008, 4:16 am
by Yarbles
I used http://go6.net/ as a tunnel broker. Their registration system doesn't require human approval, so I was up and running in 10 minutes.

Re: 0.3.0 IPv6 on Vista

Posted: January 28th, 2008, 6:59 pm
by mekong75
sander wrote: Yarbles, I was trying to going to help, but it looks like I'm going to give more confusion:

That line 44 is this:

        res = socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM)

So I tried some things from the Python CLI (not SAB itself) on Ubuntu Linux (see below). My goal was to fingerpoint the difference between python on Linux and python on Windows. But the strange thing is that I get the same error now for newszilla6.xs4all.nl. Apparantly the root cause is somewhere else in the SAB code, and not just this line.

Sorry. The SAB authors are needed.
sander@fujitsu:~$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import socket

>>> socket.getaddrinfo('news.xs4all.nl', 119, 0, socket.SOCK_STREAM)
[(2, 1, 6, '', ('194.109.133.133', 119))]

>>> socket.getaddrinfo('newszilla6.xs4all.nl', 119, 0, socket.SOCK_STREAM)
Traceback (most recent call last):
  File "", line 1, in
socket.gaierror: (-2, 'Name or service not known')

>>> socket.getaddrinfo('newszilla6.xs4all.nl', None, socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_IP, socket.AI_CANONNAME)
[(10, 2, 17, 'newszilla6.xs4all.nl', ('2001:888::119', 0, 0, 0))]
>>>
sander@fujitsu:~$

Sander, it seems UDP is working but your IPv6 TCP is disfunc? Router problem? If your router is NAT'ed and you setup an IPv6 tunnel
through NAT, your router should support protocol 41 or else it won't work. Try: telnet -6 2001:888::119 119 to test TCP connection.

The IPv6 patch on sabnzbd sourceforge didn't have anything IPv6 specific it just remove any hardcoded IPv4 part.
It choose IPv4 or IPv6 socket depend on DNS resolved result.

Re: 0.3.0 IPv6 on Vista

Posted: January 29th, 2008, 1:19 am
by sander
@mekong75: My IPv6 and SAB over IPv6 is fully functional; my SAB does all downloads over IPv6.
I think your reply is meant for Yarbles.

HTH

Re: 0.3.0 IPv6 on Vista

Posted: January 29th, 2008, 5:42 am
by Yarbles
That telnet command works fine (minus the -6, which isn't a switch for Vista's telnet):
201 dreader10.news.xs4all.nl NNRP Service Ready - newsmaster@xs4all.nl (no posti
ng).
As I said in the OP, it also works in BNR2. It was able to connect to the IPv6 sever, download a group list, and headers for a group.

Re: 0.3.0 IPv6 on Vista

Posted: January 29th, 2008, 6:09 pm
by mekong75
From your error log, it seems sab can't resolve the servername. Can you try to use the server ipv6 address instead of the servername: 2001:888::119 instead of newszilla6.xs4all.nl? If it didn't work, another possibility is the Windows python version which the maintainer of sabplus use to create the Windows binary doesn't support ipv6.

Re: 0.3.0 IPv6 on Vista

Posted: January 30th, 2008, 11:29 am
by shypike
We're working on testing this problem.
Fact is that no one in the team has real IPV6 access.
I have applied for an SiXXS account to solve this dilemma.

Re: 0.3.0 IPv6 on Vista

Posted: February 4th, 2008, 3:18 pm
by sander
ShyPike,

If sixxs takes too long, you can try www.go6.net ; registration + confirmation will only take a minute.

Groet,

Sander

Re: 0.3.0 IPv6 on Vista

Posted: February 8th, 2008, 11:56 am
by shypike
It took a long time, but I got some test results.

On Windows XP with Microsoft IPV6 and AICCU installed, I can access newszilla6.xs4all.nl fine. No problems.

Testing on Vista is officially not possible this way. The SiXXS website says there is no support for AICCU on Vista.

How do you guys test IPV6 with Vista?

BTW: the error you get from socket.getaddrinfo just means that the address does not resolve properly.
I'll put a clear error message in 0.3.1.

Re: 0.3.0 IPv6 on Vista

Posted: February 8th, 2008, 5:11 pm
by sander
Shypike, have you tried www.go6.net; it does *not* use AICCU, so it's worth a try on Vista.

Re: 0.3.0 IPv6 on Vista

Posted: February 8th, 2008, 8:00 pm
by Yarbles
I used go6.net and installed the Gateway6 v5.1 32-bit client.  I don't recall having to take any additional steps (like disabling Vista's built in IPv6 support),  it just worked.