Page 1 of 1

Errno 111 - Connection Refused

Posted: September 27th, 2017, 4:00 am
by eb98jdb
I'm suddenly seeing the above error from two different usenet providers? All has been running well previously for a couple of months so not sure why this would suddenly pop up. I did install Deluge yesterday - could this be related somehow?

This is on a VPS running Ubuntu 16.04 - any help would be much appreciated!

Thanks,

INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,852::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,853::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,853::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,854::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,854::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,855::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,856::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,857::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,857::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,858::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,858::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,859::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,866::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,867::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,867::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,868::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:00:27,869::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:00:27,869::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:02:29,008::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:02:29,011::INFO::[newswrapper:283] Failed to connect: (110, '[Errno 111] Connection refused') [email protected]:563
2017-09-26 22:02:29,012::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-26 22:02:29,012::INFO::[downloader:487] [email protected]: Initiating

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 4:24 am
by OneCD
This may not help much, but I've just checked XS News - no problems there - connections are 'making' fine from my end. ;)

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 4:29 am
by safihre
Why does it say "0.0.0.0:563"?
This seems to indicate that maybe something was altered in your hosts file? Or other DNS problems.
Because now reader.xsnews.nl resolves to IP address 0.0.0.0 somehow, which is of course wrong.

Have you tried restarting the box? And then removing and re-adding the servers using only basic (server/username/password) settings?

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 12:05 pm
by sander
If news.newshosting.com resolves to 0.0.0.0, there is something very wrong with your DNS / resolving.

I guess a reboot of your Ubuntu VPS will solve this.

If not:

1) on the CLI, type

Code: Select all

host news.newshosting.com
and post the output here. See my example below.

2) set SABnzbd to debug, and tell what it says about its IP addresses under Status (=wrench symbol)


Code: Select all

$ host news.newshosting.com
news.newshosting.com is an alias for esp.eu.news.geo.newshosting.com.
esp.eu.news.geo.newshosting.com is an alias for news.fr7.newshosting.com.
news.fr7.newshosting.com has address 81.171.118.134
news.fr7.newshosting.com has address 81.171.118.135
news.fr7.newshosting.com has address 81.171.118.136

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 3:41 pm
by eb98jdb
I'm seeing

news.newshosting.com is an alias for deu.eu.news.geo.newshosting.com.
deu.eu.news.geo.newshosting.com is an alias for news.fr7.newshosting.com.
news.fr7.newshosting.com has address 81.171.118.135
news.fr7.newshosting.com has address 81.171.118.134
news.fr7.newshosting.com has address 81.171.118.136

and

Local IPv4 address173.212.blabla
Public IPv4 addressConnection failed!
IPv6 address2a02:blabla
Nameserver / DNS LookupOK

So we're definitely isolating the issue - I've got the feeling it's to do with installing Deluge and I switched on (then off) a plugin called blocklist? Thanks for your help so far

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 4:04 pm
by sander
Public IPv4 address Connection failed!
is bad. It makes me think you cannot make an Internet connection at all. So let's check:

On your Ubuntu, what is the output of:

Code: Select all

python -c "import urllib2; response = urllib2.urlopen('https://ipinfo.io/ip'); print response.read() "
Example:

Code: Select all

$ python -c "import urllib2; response = urllib2.urlopen('https://ipinfo.io/ip'); print response.read() "
80.39.157.222

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 4:13 pm
by sander
WAIT: you did reboot your machine, didn't you?

Re: Errno 111 - Connection Refused

Posted: September 27th, 2017, 4:24 pm
by eb98jdb
Yes, I did reboot.

Output is 173.212.197.231 (which is my IP address)

Re: Errno 111 - Connection Refused

Posted: September 28th, 2017, 1:56 am
by sander
So the python one-liner does work? That is strange.

Can you check sabnzbd.log for lines with "news.newshosting.com" in it? Copy them here.

My logging:

Code: Select all

2017-09-28 08:52:00,740::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-28 08:52:00,931::INFO::[happyeyeballs:138] Quickest IP address for news.newshosting.com (port 563, ssl 1, preferipv6 True) is 81.171.118.134
2017-09-28 08:52:00,936::DEBUG::[downloader:130] news.newshosting.com: Connecting to address 81.171.118.134
2017-09-28 08:52:00,941::INFO::[downloader:487] [email protected]: Initiating connection
2017-09-28 08:52:00,942::DEBUG::[downloader:111] news.newshosting.com: Re-using address 81.171.118.134

2017-09-28 08:52:01,098::INFO::[newswrapper:122] [email protected]: Connected using TLSv1.2 (AES128-SHA)
2017-09-28 08:52:01,106::INFO::[newswrapper:122] [email protected]: Connected using TLSv1.2 (AES128-SHA)

Re: Errno 111 - Connection Refused

Posted: September 28th, 2017, 8:17 am
by eb98jdb
Thanks for your help - I've rolled the VPS back to a previous backup which has solved the problem. Will see if I can replicate.

Re: Errno 111 - Connection Refused

Posted: October 3rd, 2017, 2:46 pm
by eb98jdb
FYI - this happened again when I update Sabnzbd. I've no idea why but in doing the update it changes the addresses of both the usenet servers to 0.0.0.0 - so easy enough to fix when I spotted it.

Re: Errno 111 - Connection Refused

Posted: October 3rd, 2017, 3:11 pm
by sander
eb98jdb wrote: October 3rd, 2017, 2:46 pm FYI - this happened again when I update Sabnzbd. I've no idea why but in doing the update it changes the addresses of both the usenet servers to 0.0.0.0 - so easy enough to fix when I spotted it.
SAB changes the server names to "0.0.0.0"?! Can you post a screenshot of the Server page?
And if you change it back to the server name, does it work?

Re: Errno 111 - Connection Refused

Posted: October 3rd, 2017, 3:13 pm
by eb98jdb
I'm not able to screenshot as have changed them back to the normal settings - SAB works fine now. I updated using AtoMiC-ToolKit. I don't know if that is somehow related.

Re: Errno 111 - Connection Refused

Posted: October 3rd, 2017, 3:25 pm
by sander
eb98jdb wrote: October 3rd, 2017, 3:13 pm I'm not able to screenshot as have changed them back to the normal settings - SAB works fine now. I updated using AtoMiC-ToolKit. I don't know if that is somehow related.
If you can reproduce with AtoMiC-ToolKit, I would report it there: https://github.com/htpcBeginner/AtoMiC-ToolKit/issues