Page 1 of 1

[SOLVED] Valid Provider Login Times Out [IPv6/DNS]

Posted: July 18th, 2015, 10:23 pm
by DngrMs
Hi I've had a strange problem manifest a few days ago, I can no longer log in to my block account, SAB times out.
2015-07-19 15:09:40,207::INFO::[newswrapper:233] Failed to connect: (10060, "(10060, 'Operation timed out')") 1@block.cheapnews.eu:563
My primary account with another provider works fine.

I played around a bit, couldn't resolve so raised a ticket with my block provider and they've responded saying no problem at their end. I downloaded Grabit and that can log in to my block account using the same credentials as in SAB. I've recreated the server in SAB and no result. The 'Test Server' button returns the error above (which is also logged). No additional information is logged even if I add -l2 to the startup switches.

I made no config changes to SAB or my network between this server working and not. I've been using this same block account for over 12 months, it has plenty of credit and is still activated. I get the same result on all ports, SSL or otherwise. I can IPv4 ping the provider but not IPv6 but I don't know if that means anything. Disabling my firewall does nothing. I've restarted SAB, my computer and my router many times to no avail. No recent Windows updates, they're all pending.

SAB v0.7.20 on Win 8.1 x64

Any ideas? This is killing me at the moment with incompletes... :(

Re: Valid Provider Login Times Out

Posted: July 19th, 2015, 9:04 am
by shypike
You're using port 563. Did you also check the box for SSL?

Re: Valid Provider Login Times Out

Posted: July 19th, 2015, 6:02 pm
by DngrMs
shypike wrote:You're using port 563. Did you also check the box for SSL?
Yes, I've tried 119 & 583 (non-SSL) and 563 and 443 (SSL) with the same result. Nothing in my SAB config has (knowingly) changed since it was working a few days ago.

Edit: and yes, I checked the box when using the SSL ports.

Re: Valid Provider Login Times Out

Posted: July 20th, 2015, 1:45 am
by DngrMs
I did some digging and it's DNS/IPv6 related... If I use the IPv4 address in the server field I can log on.

Now I've disabled 'IPv6 Servers' in SAB under Config | Special | Values, it was previously set to the default of '1' (which was working fine last week). I've reverted back to using the domain name in the server field with this change and all is fine.

So it would seem as if:

1. I've got an IPv6 problem to resolve (must be downstream because no changes at my end).
2. Setting '1' is "available and reachable" but that wasn't the case for me so SAB should have defaulted to IPv4?
3. The host was unreachable rather than timing out so if possible a more explicit error would be helpful.

I'm glad I got it (mostly) sorted, the thought of using alternatives to SAB made me weep.

Keep up the good work.

Re: [SOLVED] Valid Provider Login Times Out [IPv6/DNS]

Posted: July 20th, 2015, 2:47 am
by shypike
We're a bit struggling with IPv6 as none of the team has a true IPv6-capable ISP.
That makes testing awkward.

Re: [SOLVED] Valid Provider Login Times Out [IPv6/DNS]

Posted: July 20th, 2015, 5:11 am
by sander
Sabnzbd should be made Happy Eyeballs / rfc6555 compliant.

I'll make some PoC code.

Re: [SOLVED] Valid Provider Login Times Out [IPv6/DNS]

Posted: July 24th, 2015, 2:30 pm
by sander
Some notes:

Code: Select all

$ host block.cheapnews.eu
block.cheapnews.eu has address 78.152.55.165
block.cheapnews.eu has IPv6 address 2a02:d28:10:1b:0:431:ff02:165
The Wizard and Test Connection say "OK".

However, SAB - trying to download with a not working IPv6 connection - says:

Code: Select all

ERROR:	Cannot connect to server block.cheapnews.eu:119 [501 Invalid syntax.]
and SAB downloads nothing.

With a working IPv6 connection, but no login SAB says:

Code: Select all

2015-07-24 21:34:16,696::INFO::[downloader:381] 1@block.cheapnews.eu:119: Initiating connection
2015-07-24 21:34:17,698::INFO::[downloader:577] Connecting 1@block.cheapnews.eu:119 finished
2015-07-24 21:34:17,707::DEBUG::[downloader:510] Server login problem: 501, 501 Invalid syntax.
2015-07-24 21:34:17,708::ERROR::[downloader:554] Cannot connect to server block.cheapnews.eu:119 [501 Invalid syntax.]
A manual NNTP connection over IPv6:

Code: Select all

$ telnet block.cheapnews.eu nntp
Trying 2a02:d28:10:1b:0:431:ff02:165...
Connected to block.cheapnews.eu.
Escape character is '^]'.
200 Welcome to Cheapnews
AUTHINFO user niks
381 Need more.
AUTHINFO pass blabla
482 Username or password incorrect.
quit
205 Bye. 79 bytes written, 0 accounted.
Connection closed by foreign host.
I don't know if the "381 Need more." is understood by SAB. Let's compare with eweka:

Code: Select all

$ telnet newsreader3.eweka.nl nntp
Trying 81.171.92.205...
Connected to newsreader3.eweka.nl.
Escape character is '^]'.
200 Welcome to Eweka (fx16.am4)
AUTHINFO user niks
381 PASS required
AUTHINFO pass blabla
502 Authentication Failed
quit
205 Goodbye
Connection closed by foreign host.
The same 381, so I guess that's OK? But then I don't understand why SAB says "501 Invalid syntax."

Re: [SOLVED] Valid Provider Login Times Out [IPv6/DNS]

Posted: July 24th, 2015, 3:50 pm
by sander
PoC code working:

Code: Select all

$ python nntp-timer.py 
Let's go
No newsserver specified, so using ...  block.cheapnews.eu
Newsserver is block.cheapnews.eu

Address is  2a02:d28:10:1b:0:431:ff02:165
Welcome message took: 3.183 msec

Address is  78.152.55.165
Welcome message took: 0.842 msec
IPv4 is faster than IPv6, so use IPv4

Code: Select all

$ python nntp-timer.py 
Let's go
No newsserver specified, so using ...  block.cheapnews.eu
Newsserver is block.cheapnews.eu

Address is  78.152.55.165
Welcome message took: 4.598 msec

Address is  2a02:d28:10:1b:0:431:ff02:165
Setting up connection went wrong. Exiting.
Only IPv4 is working, so use IPv4.

Code: https://github.com/sanderjo/stuff/blob/ ... p-timer.py