Page 1 of 2

0.5.4 Synology IPv6 servers add error

Posted: September 24th, 2010, 8:04 am
by eyerule
Hi,

I'm using a Synology DS209 with DSM3.0 with SabNZBD 0.5.4. When I try to setup a IPv6 newsserver and fill in the server name etc and then click Test server, I'm getting the following error message:
'NoneType' object is unsubscriptable
When I click on Add then I'm getting a blank page.
The Synology has i IPv6 tunnel and nameresolving is ok with commandline.
Also tried changing my sab.ini and add the servers, but then the servers are in the list, but cannot download from them.
Can anybody help me pls? JUst to try you can use the IPv6 server:
newszilla6.xs4all.nl (no username and password needed)

Thanks for your help.

Bye,
Roel

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 24th, 2010, 8:07 am
by shypike
Likely some problem in the Python runtime library for your box.
Have you tried the ipv6 numerical IP address?

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 24th, 2010, 8:10 am
by eyerule
Hi yeah I also tried adding the IPv6 address in sab.ini and also via webgui..

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 28th, 2010, 2:34 am
by eyerule
Anyone any idea?

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 28th, 2010, 3:00 am
by shypike
It works OK on Ubuntu with an AICCU ipv6 tunnel (sixxs).
That's all I can test.

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 28th, 2010, 11:53 am
by sander
Does the python on the Synology support IPv6? Test like this:

Code: Select all

sander@quirinius:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> print socket.has_ipv6
True
>>> 

If that works, do some more testing:

Code: Select all

>>> print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
[(2, 1, 6, '', ('82.94.164.162', 80)), (10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]
>>> print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)
[(10, 1, 6, '', ('2001:888:0:18::119', 80, 0, 0))]
>>> 
Please post the complete output, so that we see the python version too.

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 2:48 am
by eyerule
sander wrote: Does the python on the Synology support IPv6? Test like this:

Code: Select all

sander@quirinius:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> print socket.has_ipv6
True
>>> 

If that works, do some more testing:

Code: Select all

>>> print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
[(2, 1, 6, '', ('82.94.164.162', 80)), (10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]
>>> print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)
[(10, 1, 6, '', ('2001:888:0:18::119', 80, 0, 0))]
>>> 
Please post the complete output, so that we see the python version too.

I cannot do both. I see in the directories that it is Python 2.5..

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 4:18 am
by sander
So, you mean you can't start python at all on the Synology? If so ... too bad. I can't help you any further then.

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 4:45 am
by eyerule
sander wrote: So, you mean you can't start python at all on the Synology? If so ... too bad. I can't help you any further then.
I don't think so.. It is part of the package. But I must admit that I'm not a Unix pro, so I don't know how to start python on the Synology..
I tried your commands in the directory of Python2.5 but no result..

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 6:56 am
by sander
Can you successfully 'telnet' and/or 'ssh' (with putty) to teh Synology?

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 8:06 am
by eyerule
sander wrote: Can you successfully 'telnet' and/or 'ssh' (with putty) to teh Synology?
Sure. From there I see that the Python directory is in the sabnzbd directory.
I'm not very experience with Unix, but I'm a network professional, so I have some knowledge about Unix etc..

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 9:50 am
by sander
Go to the directory ("cd ...") that contains the python executable, and type "./python". Does that start python?

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 10:40 am
by eyerule
sander wrote: Go to the directory ("cd ...") that contains the python executable, and type "./python". Does that start python?

Yep. That did the trick ;)
EyerulesNAS> ./python
Python 2.5.4 (r254:67916, Jan 31 2010, 16:34:06)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 10:42 am
by eyerule
sander wrote: Does the python on the Synology support IPv6? Test like this:

Code: Select all

sander@quirinius:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> print socket.has_ipv6
True
>>> 

If that works, do some more testing:

Code: Select all

>>> print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
[(2, 1, 6, '', ('82.94.164.162', 80)), (10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]
>>> print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)
[(10, 1, 6, '', ('2001:888:0:18::119', 80, 0, 0))]
>>> 
Please post the complete output, so that we see the python version too.


>>> print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
[(2, 1, 6, '', ('82.94.164.162', 80)), (10, 1, 6, '',Traceback (most recent call
last):
  File "", line 1, in
NameError: name 'socket' is not defined
>>>  ('2001:888:2000:d::a2', 80, 0, 0))]
[(2, 1, 6, '', ('82.94.164.162', 80)), (10, 1, 6, '', ('2001:888:2000:d::a2', 80
, 0, 0))]
>>> print socket

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 29th, 2010, 2:06 pm
by sander
Good that you found & could start python. However, I think you don't yet type the correct commands. So, after starting up python, type (or even better: copy & paste) these commands within python:

Code: Select all


print socket.has_ipv6
import socket
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)

Copy & paste the full output here back in this forum.