0.5.4 Synology IPv6 servers add error

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.
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

0.5.4 Synology IPv6 servers add error

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.5.4 Synology IPv6 servers add error

Post by shypike »

Likely some problem in the Python runtime library for your box.
Have you tried the ipv6 numerical IP address?
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post by eyerule »

Hi yeah I also tried adding the IPv6 address in sab.ini and also via webgui..
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post by eyerule »

Anyone any idea?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.5.4 Synology IPv6 servers add error

Post by shypike »

It works OK on Ubuntu with an AICCU ipv6 tunnel (sixxs).
That's all I can test.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: 0.5.4 Synology IPv6 servers add error

Post 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.
Last edited by sander on September 28th, 2010, 12:01 pm, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post 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..
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: 0.5.4 Synology IPv6 servers add error

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post 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..
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: 0.5.4 Synology IPv6 servers add error

Post by sander »

Can you successfully 'telnet' and/or 'ssh' (with putty) to teh Synology?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post 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..
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: 0.5.4 Synology IPv6 servers add error

Post by sander »

Go to the directory ("cd ...") that contains the python executable, and type "./python". Does that start python?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post 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.
>>>
eyerule
Newbie
Newbie
Posts: 11
Joined: September 24th, 2010, 7:58 am

Re: 0.5.4 Synology IPv6 servers add error

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: 0.5.4 Synology IPv6 servers add error

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply