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

Get help with all aspects of 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.
Post Reply
DngrMs
Newbie
Newbie
Posts: 11
Joined: September 29th, 2014, 2:56 am

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

Post 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')") [email protected]: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... :(
Last edited by DngrMs on July 20th, 2015, 1:46 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Valid Provider Login Times Out

Post by shypike »

You're using port 563. Did you also check the box for SSL?
DngrMs
Newbie
Newbie
Posts: 11
Joined: September 29th, 2014, 2:56 am

Re: Valid Provider Login Times Out

Post 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.
DngrMs
Newbie
Newbie
Posts: 11
Joined: September 29th, 2014, 2:56 am

Re: Valid Provider Login Times Out

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

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

Post by shypike »

We're a bit struggling with IPv6 as none of the team has a true IPv6-capable ISP.
That makes testing awkward.
User avatar
sander
Release Testers
Release Testers
Posts: 8827
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander »

Sabnzbd should be made Happy Eyeballs / rfc6555 compliant.

I'll make some PoC code.
User avatar
sander
Release Testers
Release Testers
Posts: 8827
Joined: January 22nd, 2008, 2:22 pm

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

Post 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] [email protected]:119: Initiating connection
2015-07-24 21:34:17,698::INFO::[downloader:577] Connecting [email protected]: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."
User avatar
sander
Release Testers
Release Testers
Posts: 8827
Joined: January 22nd, 2008, 2:22 pm

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

Post 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
Post Reply