Trying to connect to SABnzbd

Hi there, trying to connect SAB, can’t. Looked through the forums for help. Couldn’t find an answer.

Have CouchPotato, SickBeard and Headphones all running smoothly for years now.

Don’t know what to do :expressionless: Tried attaching my settings, but new users can’t attach images…

Here’s the error I receive in logs:

NzbDrone.Core.Download.Clients.DownloadClientException: Unable to connect to SABnzbd, please check your settings —> System.Net.WebException: The remote name could not be resolved: 'http’
at System.Net.HttpWebRequest.GetResponse()
at RestSharp.Http.GetRawResponse(HttpWebRequest request)
at RestSharp.Http.GetResponse(HttpWebRequest request)
— End of inner exception stack trace —
at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.CheckForError(IRestResponse response) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 149
at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.ProcessRequest(IRestRequest restRequest, String action, SabnzbdSettings settings) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 69
at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.GetVersion(SabnzbdSettings settings) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 77
at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.TestConnection() in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:line 372

In ‘Host’ box I have also tried entering:

'localhost;
‘localhost:8085’
‘localhost:8085/sabnzbd’
‘localhost:8085/sabnzbd/’

and then my router IP with the said extensions as well. I have copied the host from Sickbeard and pasted it, no avail.

Truly lost!!! Please help :scream_cat:

Cheers.

host would just be localhost port 8085 would go in the port field. According to the error http was used.

Example:

Category local path won’t be there unless advanced settings are shown, also make sure the category defined in drone actually exists in SAB (case sensitive).

yeah, that was the first thing I noticed, I tried adding multiple different things in host. Here’s the error without http just using default ‘localhost’

NzbDrone.Core.Download.Clients.DownloadClientException: Unable to connect to SABnzbd, please check your settings —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8085

Don’t understand this one…

Category ‘tv’ was madein SAB for sickbeard many years ago. Everything’s setup on my one computer too.

drone and SAB are on the same machine? I’d expect the get that error if it was on a remote machine and there was a firewall blocking it or nothing is listening on that host + port.

Stupid question, SAB is running on 8085? I only ask because 8080 is the default port.

Yeah drone and sab are on the same machine. Yep. So yeah, confused. Like I mentioned, haven’t had a problem with other internet PVR’s. Bit lost at the moment lol.

Yeah port 8085. Changed it when I first started getting involved with usenet. Can’t remember why. Never changed it back.

So even when using my actual IP instead of localhost, how come i’m receiving an error?

I can’t use just numbers without http either, that errors out too…

Same error when using the IP? What about using 127.0.0.1?

I don’t follow, if you enter anything else in the host field it won’t work, thats expected. Can you take a screenshot of your settings? You can blank out the api key.

Thanks for your persistence Markus. Appreciate the time.

So, yeah same error with 127.0.0.1

I noticed just now that SAB is the only service that has my IP address in the address bar in Chrome. Instead of saying ‘localhost:8085/sabnzbd/’ it has my full IP then ‘:8085/sabnzbd/’.

Like this: Imgur

Would there something wrong with that?


Nevermind.

Here’s a few screens with settings i’ve tried.

Default: Imgur

More in the next post due to restrictions etc…

Sickbeard host copy/paste: Imgur

SAB address bar copy/paste: Imgur

Those fail because thats not what the field is expecting.

Which OS is this on?
Do you get an error if you use 192.168.178.9?

Can you:

  1. enable trace logging: https://github.com/NzbDrone/NzbDrone/wiki/Log-Files
  2. Clear your log files (make sure you clear the files, not the DB)
  3. Use the IP address that you use in SB, the 8085 for the port and your API key then try again
  4. Paste bin the log file

Figured it out!!!


On Windows 8

I did get an error when I used 192.168.178.9

The error said: NzbDrone.Core.Download.Clients.DownloadClientException: Unable to connect to SABnzbd, please check your settings —> System.UriFormatException: Invalid URI: The hostname could not be parsed.

Fix:

I shutdown SABnzbd. Deleted the both the .ini files in C:\Users\username\AppData\Local\sabnzbd

Then ran SABnzbd’s wizard again. Pretty sure it was to do with adding my IP address instead of localhost in initial set up many years ago.

SO, drone would have been doing something there I guess. Totally my fault and a bit annoying!!! It’s funny that Drone is setup to be a simple install and due to my error when I was learning how to use these services many years ago I did one thing wrong. However, other services still allowed access and drone couldn’t. Not sure how it affects, hopefully you can see what happened here and others who may have the same problem can too.

Thanks for your persistence. Hope you understand what I did wrong and where things were going wrong!

Awesome! That’s what I started thinking when you were using the IP instead of localhost. Glad its sorted.

Out of general interest and wanting to understand, why does it error?

What’s the difference between localhost and my physical IP?

It errors out because SAB isn’t handling it, when SAB starts up it checks the configuration and listens only on the IPs defined (0.0.0.0 is everything), so specifying a single IP means only that IP, if you put 127.0.0.1 it would only listen on that one IP.