I noticed that my SABnazbdplus running on my QNAP 410 (qpkg - sabnzbd shows version 0.7.20) has stopped connecting to most of my news servers.
When trying Test Server or trying to save after making changes, I get a message stating "Invalid server address"
This has happened all of my news servers but one - Shaw (news.shawcable.net), newsdemon, cubenet all give the error, but xsusenet still works fine. (which I haven't noticed in a while, most of my downloads were completing via xsusenet, but it's a free account so retention sucks) These all have been working fine previously.
If I ping the server name and replace the address in SABnzbd with the ip address I get from the ping, it works again - temporarily. Eventually I will need to re-enter the new ip since the address changes.
Any idea what I can do? QNAP is using google servers for DNS - 8.8.8.8 and 8.8.8.4, which I verified in the resolv.conf file
"server invalid" error for everything but xsusenet
Forum rules
Help us help you:
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.
Re: "server invalid" error for everything but xsusenet
Hypothesis: IPv6 related?
Config -> Special: check the box of "No_IPv6". Restart and check if it works
EDIT: the no_ipv6 only seems to be for "Do not listen on IPv6 address [::1]", which will not solve your problem.
On your NAS, what is the output of "ifconfig"?
With SAB's Logging setting to +Debug, what are the first 10 lines of sabnzb.log after a start? Especially the lines with "IPv6" in them.
EDIT 2: See Shypike's advice.
FWIW: In SABnzbd 0.8.0 Beta2 this is solved in a very nice way.
xsusenet.com without IPv6:
Config -> Special: check the box of "No_IPv6". Restart and check if it works
EDIT: the no_ipv6 only seems to be for "Do not listen on IPv6 address [::1]", which will not solve your problem.
On your NAS, what is the output of "ifconfig"?
With SAB's Logging setting to +Debug, what are the first 10 lines of sabnzb.log after a start? Especially the lines with "IPv6" in them.
EDIT 2: See Shypike's advice.
FWIW: In SABnzbd 0.8.0 Beta2 this is solved in a very nice way.
Code: Select all
sander@superstreamer:~$ host news.thecubenet.com
news.thecubenet.com is an alias for newsfarm.iad.highwinds-media.com.
newsfarm.iad.highwinds-media.com has address 69.16.179.20
newsfarm.iad.highwinds-media.com has address 69.16.179.21
newsfarm.iad.highwinds-media.com has IPv6 address 2001:4de0:2101:119e::20
newsfarm.iad.highwinds-media.com has IPv6 address 2001:4de0:2101:119e::21
sander@superstreamer:~$
sander@superstreamer:~$ host news.shawcable.net
news.shawcable.net is an alias for newsfarm.iad.highwinds-media.com.
newsfarm.iad.highwinds-media.com has address 69.16.179.20
newsfarm.iad.highwinds-media.com has address 69.16.179.21
newsfarm.iad.highwinds-media.com has IPv6 address 2001:4de0:2101:119e::21
newsfarm.iad.highwinds-media.com has IPv6 address 2001:4de0:2101:119e::20Code: Select all
sander@superstreamer:~$ host free.xsusenet.com
free.xsusenet.com has address 81.171.92.189Re: "server invalid" error for everything but xsusenet
Config->Special set ipv6_servers to 0
Re: "server invalid" error for everything but xsusenet
Ok, I have set ipv6_servers to 0, but I still get the invalid server address.
Here's the first lines of the log with debug enabled when starting up:
Here's the first lines of the log with debug enabled when starting up:
Code: Select all
2015-10-19 09:39:35,321::INFO::[SABnzbd:1277] Arguments = SABnzbd.py -f /share/MD0_DATA/.qpkg/SABnzbdplus/Config/sabnzbd.ini --daemon --pid /tmp
2015-10-19 09:39:35,384::DEBUG::[SABnzbd:1283] My IPv4 address = 192.168.1.5
2015-10-19 09:39:35,393::DEBUG::[SABnzbd:1295] Could not determine my IPv6 address
2015-10-19 09:39:35,876::DEBUG::[SABnzbd:1306] CPU Pystone available performance is 3333
2015-10-19 09:39:35,879::INFO::[SABnzbd:1327] Read INI file /share/MD0_DATA/.qpkg/SABnzbdplus/Config/sabnzbd.ini
2015-10-19 09:39:35,903::INFO::[__init__:943] Loading data for bookmarks.sab from /share/MD0_DATA/.qpkg/SABnzbdplus/Config/admin/bookmarks.sab
2015-10-19 09:39:35,907::INFO::[__init__:943] Loading data for rss_data.sab from /share/MD0_DATA/.qpkg/SABnzbdplus/Config/admin/rss_data.sab
2015-10-19 09:39:35,911::INFO::[__init__:943] Loading data for totals9.sab from /share/MD0_DATA/.qpkg/SABnzbdplus/Config/admin/totals9.sab
2015-10-19 09:39:35,917::DEBUG::[bpsmeter:171] Read quota q=1.073741824e+11 l=70689798175.0 reset=1446361200.0
2015-10-19 09:39:35,921::INFO::[postproc:91] Loading postproc queue
2015-10-19 09:39:35,924::INFO::[__init__:943] Loading data for postproc1.sab from /share/MD0_DATA/.qpkg/SABnzbdplus/Config/admin/postproc1.sab
2015-10-19 09:39:35,931::INFO::[__init__:943] Loading data for queue9.sab from /share/MD0_DATA/.qpkg/SABnzbdplus/Config/admin/queue9.sab
2015-10-19 09:39:35,935::DEBUG::[downloader:127] Initializing downloader/decoderRe: "server invalid" error for everything but xsusenet
So Config->Special set ipv6_servers to 0 does not work? Strange. Did you restart SABnzbd / reboot your NAS?
You could try this: Config -> Special: check randomize_server_ip, and the number of connections to 10 per server. Then restart SABnzbd and check again.
I'm quite sure the problem is solved in 0.8.0, but I don't know how to get that running on your NAS. Unless you know how to install git on your NAS ...
Back to your original quote:
TestServer says that in case of a TypeError
and a type error can be raised by a server ip address mismatch:
This seems also to be solved in 0.8.0.
You could try this: Config -> Special: check randomize_server_ip, and the number of connections to 10 per server. Then restart SABnzbd and check again.
I'm quite sure the problem is solved in 0.8.0, but I don't know how to get that running on your NAS. Unless you know how to install git on your NAS ...
Back to your original quote:
I checked the code, and that might be a bug in the TestServer not taking into account IPv6When trying Test Server or trying to save after making changes, I get a message stating "Invalid server address"
TestServer says that in case of a TypeError
Code: Select all
except TypeError, e:
return False, xml_name(T('Invalid server address.'))Code: Select all
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect('ipv6.google.com', 80)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
TypeError: connect() takes exactly one argument (2 given)Re: "server invalid" error for everything but xsusenet
ok, tried setting Config -> Special: check randomize_server_ip to on - still get the Invalid Server Address message.
If it's fixed in 0.8.0, I suppose I can always just wait for it to be released. SABnzbd is functional-ish with xsusenet and ip addresses for other servers, so it's not a huge issue for now. As long as I won't have to keep changing those ips forever, I can probably wait for 0.8.0 to hit release status in git. The NAS has a self-updating qpkg - restarting it triggers an update to latest release version from github. I don't think there's a way to get it to use non-release channels though (as far as I'm aware)
If it's fixed in 0.8.0, I suppose I can always just wait for it to be released. SABnzbd is functional-ish with xsusenet and ip addresses for other servers, so it's not a huge issue for now. As long as I won't have to keep changing those ips forever, I can probably wait for 0.8.0 to hit release status in git. The NAS has a self-updating qpkg - restarting it triggers an update to latest release version from github. I don't think there's a way to get it to use non-release channels though (as far as I'm aware)
Re: "server invalid" error for everything but xsusenet
That's a message from Test Server? If so: ignore it for now.Davmaster wrote:ok, tried setting Config -> Special: check randomize_server_ip to on - still get the Invalid Server Address message.
Restart SABnzbd and let it download ... I really expect that it should get IPv4 addresses and start downloading from all servers.
Re: "server invalid" error for everything but xsusenet
And? What is the result of my advice to "randomize"?
FWIW: this is how it works in 0.8.0: the quickest IP address will be found and used:
With only IPv4 working:
With both IPv6 and IPv4 working:
FWIW: this is how it works in 0.8.0: the quickest IP address will be found and used:
With only IPv4 working:
Code: Select all
2015-10-20 22:46:08,056::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 69.16.179.21
2015-10-20 22:46:08,265::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 69.16.179.20
2015-10-20 22:46:08,472::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 69.16.179.21
2015-10-20 22:46:08,688::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 69.16.179.21Code: Select all
2015-10-20 22:47:00,866::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 69.16.179.20
2015-10-20 22:47:01,044::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 2001:4de0:2101:119e::21
2015-10-20 22:47:01,256::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 69.16.179.20
2015-10-20 22:47:01,454::INFO::[happyeyeballs:111] Quickest IP address for news.shawcable.net (port 119, ssl 0, preferipv6 True) is 2001:4de0:2101:119e::20
