Page 1 of 2

SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 3rd, 2010, 12:14 am
by Hyper1on
Hello,

I installed version 0.5.6 on my Synology DS110j network device.
As I tried to add a server with ipv6 connection ( reader.ipv6.xsnews.nl ) I got the error NoneType' object is unsubscriptable'.
Adding a ipv4 server works like intended.

I checked my ipv6 connection twice and it said it was running correctly.

Any adwise on this?

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 3rd, 2010, 3:52 am
by shypike
Hard to tell.
Does actual downloading over ipv6 work properly?
The "None Type" error was resolved in a previous version,
at least when tested for ipv4. It only affected the server test itself.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 3rd, 2010, 3:58 am
by Hyper1on
I downloaded over ipv6 with the same server, using the integrated download manager off my DS110j, worked like intended.

Adding ipv4 Server and downloading in SABnzbd+ works also.

I tried to use the ipv6 ip instead of the hostname but I got the same error.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 3rd, 2010, 8:39 am
by shypike
I assumed you got the error when using the server test button (that used to be a problem).
So downloading (not testing) doesn't work either?
ipv6 is supported, provided the Python implementation for your platform supports it properly too.
I'll do an ipv6 test, but it's not done often because it's quite a hassle to test for us.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 3rd, 2010, 10:53 am
by Hyper1on
You are right, as I clicked the testbutton i got the error.

I tried again to add the server without clicking the button and just adding it.

It tells me:

Wrong parameter
The server address reader.ipv6.xsnews.nl is invalid.

And as I wrote earlier, I added exactly that server to the integrated download manager of the device. With that settings I was able to download a file without SABnzbd+.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 3rd, 2010, 3:46 pm
by shypike
What happens if you start the Python program from a terminal and you type in these statements?

import socket
socket.getaddrinfo("reader.ipv6.xsnews.nl", 119, socket.AF_INET6, socket.SOCK_STREAM, socket.IPPROTO_IP, socket.AI_CANONNAME)

You should see something like this:
[(30, 1, 6, 'reader.ipv6.xsnews.nl', ('2001:67c:174:101::3', 119, 0, 0)), (30, 1, 6, 'reader.ipv6.xsnews.nl', ('2001:67c:174:101::4', 119, 0, 0)), (30, 1, 6, 'reader.ipv6.xsnews.nl', ('2001:67c:174:101::5', 119, 0, 0)), (30, 1, 6, 'reader.ipv6.xsnews.nl', ('2001:67c:174:101::2', 119, 0, 0))]

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 3:00 am
by Hyper1on
python
Python 2.5.5 (r255:77872, May 13 2010, 22:27:01)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import socket

>>> socket.getaddrinfo("reader.ipv6.xsnews.nl", 119, socket.AF_INET6, socket.SOCK_STREAM, socket.IPPROTO_IP, socket.AI_CANONNAME)

Traceback (most recent call last):  File "", line 1, in socket.gaierror: (5, 'ai_family not supported.')
>>>

Tried to add some other ipv6 servers and got the same error.
Looks like a ipv6 problem, or am I wrong?

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 5:31 am
by shypike
This means that the Python on your system does not support IPv6.
See if you can find a better one.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 6:35 am
by Hyper1on
I upgraded to Python 3.1.3 and tried again.

Same error als before. Even testing the socket import gives the same error.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 6:46 am
by sander
What's the OS/firmware version you're running on your Synology? You seem to need at least "DSM 3.0-1334 (2010/09/20)"

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 7:36 am
by Hyper1on
The DS is running DSM 3.0-1354 newest release.

I would like to upload a screenshot of my networksettings, but the uploadfolder seems to be full.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 8:10 am
by sander
What's the output of 'ifconfig' on your Synology?

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 8:18 am
by Hyper1on

Code: Select all

 ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:32:07:F4:49
          inet addr:192.168.1.150  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:32ff:fe07:f449/64 Scope:Link
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:39475 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:26379321 (25.1 MiB)  TX bytes:8672138 (8.2 MiB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:1500  Metric:1
          RX packets:1178 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:112292 (109.6 KiB)  TX bytes:112292 (109.6 KiB)

tun       Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                                                                 -00
          inet6 addr: 2001:c08:3700:ffff::1f:b8c0/128 Scope:Global
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1280  Metric:1
          RX packets:419 errors:0 dropped:0 overruns:0 frame:0
          TX packets:413 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:23544 (22.9 KiB)  TX bytes:23128 (22.5 KiB)

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 10:39 am
by sander
Aha.

The good news: there are local IPv6 addresses (fe80:...), so the OS on the Synology does understand IPv6

The bad news: there are only local IPv6 address (fe80:..), so you have no connectivity to the outside IPv6 world and thus no connectivity to newszilla6.xs4all.nl etc

I believe Synology offers a built-in IPv6 tunnel, so useful to get that working first.

Re: SABnzbd+ 0.5.6 mit 'NoneType' object is unsubscriptable in Synology DS110j

Posted: December 4th, 2010, 10:53 am
by Hyper1on
Well, the build in tunnel works!

I connected to gogo6 ipv6 tunnel over the build in tunnel.
With this I was able to download from reader.ipv6.xsnews.nl after I added my reader.ipv6.xsnews.nl logindata to the build in downloadmanager, so i thought SABnzbd would work.