HELP! - Connection Failed to SABnzbd & App Updates After Malware Clean-up

Hey Guys -

Yesterday, I noticed some of my shows hadn’t been updated. I opened Sonarr and found out it couldn’t talk to SABnzbd. CouchPotato and Headphones connected with same settings & API key just fine. After trying to connect to it for 20 minutes and trying every option possible, I restarted the service and eventually restart the computer.

After a bit more troubleshooting, I tried checking for an update from tasks but it failed.- strange. Finally, I decided to back everything up, uninstall Sonarr (NZBDrone), delete Program Files folder plus ProgramData folder, and remove registry keys (via Revo.) I did this, verified it was gone, then reinstalled with the newest download. After isntallation, I connected to the new instance via browser, went to Settings, changed release to Develop (what I was using before), saved, then went to have it check for updates again. This, too, failed.

I know what you’re thinking - that I have a firewall or something which is blocking the executable / app / port from communicating. Maybe so - but how can CouchPotato & Headphones connect? I did just have a malware issue which I removed but thought maybe website scanning was still on. It wasn’t, but I still uninstalled malwarebytes & spybot plus scanned task manager and applications for any app which could cause that. Nothing found. I’ve also been using my hostname to connect to SABnzbd, but also tried IP. Checked hosts file anyways and it’s clean.

Finally, I restarted and still have similar status. The current state is that I can successfully add and test indexers - but - cannot add and test SABnzbd and seemingly not check for app updates. I changed the logging level to Info, tried to add SABnzbd not using SSL (usually do use it) and below is what the log stated:

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:58054
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   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:\BuildAgent\work\6c3239faf2b92630\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:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 69
   at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.GetConfig(SabnzbdSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 92
   at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.TestAuthentication() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:line 377
   at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.Test(List`1 failures) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:line 341
   at NzbDrone.Core.Download.DownloadClientBase`1.Test() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\DownloadClientBase.cs:line 83

15-1-14 16:48:14.4|Warn|NzbDroneErrorPipeline|Invalid request Validation failed: 
 -- Unable to connect to SABnzbd
 -- Test was aborted due to an error: Unable to connect to SABnzbd, please check your settings

Note:In the listed addresses above is the code “6c3239faf2b92630.” I don’t know what it’s supposed to be, but it’s not any of my API keys. Didn’t know if that made a difference,

Any thoughts or ideas? Thanks!

UPDATE
I just tried an app update check task and copied the logging while I had it set to Info. Below is what it reported:

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:58054
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 86
   at NzbDrone.Common.Http.HttpClient.Get[T](HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 161
   at NzbDrone.Core.Update.UpdatePackageProvider.GetLatestUpdate(String branch, Version currentVersion) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\UpdatePackageProvider.cs:line 33
   at NzbDrone.Core.Update.CheckUpdateService.AvailableUpdate() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\UpdateCheckService.cs:line 38
   at NzbDrone.Core.Update.InstallUpdateService.Execute(ApplicationUpdateCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 159
   at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](Command command) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 137
   at NzbDrone.Core.Messaging.Commands.CommandExecutor.<>c__DisplayClass9`1.<PublishCommandAsync>b__5() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 86
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

As for the ports its mentioning,58054; I don’t know if that’s where it’s supposed to look, but I have the console set to use the defaults of 8080 for non-SSL and 9090 for SSL. Both are currently accessable as I have my own purchased SSL cert installed.

Thanks

Its trying to connect via a proxy server, check your proxy server settings, (in IE) there are also a couple other posts on this same subject, with some more details on how to verify one isn’t set.

They don’t use the same pipeline within Windows to make network connections because Sonarr uses .net to handle connections for it.

Thanks - After clearing the malware, I did notice that proxy settings had been changed to “localhost”, but I cleared it and set it to not use proxy in IE settings. Just checked it again and it’s still set that way. Perhaps it’s configured elsewhere?

Looks like there are a few ways on Windows 8: http://support.microsoft.com/kb/2777643

Personally I recommend wiping and starting from scratch after removing malware, you never know what could have been missed (seeing some evidence of that here).

Yeah, I prefer that method too. I do it every 3-4 months, but this system hosts so many things that it takes a full day - of which I don’t currently have :(. I’ll check out the link when home. Thanks

Yeah, I know what you mean.

Not a ton of info there, but I think one of them must be set for this to be happening.

Also this: https://trello.com/c/OiYzczcS/915-bypass-proxy-if-connection-fails would be helpful in this case.