Logs say NzbDrone.Core.Download.Clients.DownloadClientException

Sonarr version (exact version): Sonarr Ver. 2.0.0.4753
Mono version (if Sonarr is not running on Windows): -
OS: Win 10 Pro Build 14393.1198
((Debug logs)):
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)
Description of issue:
Sonarr is not adding anything to SABnzbd (version 2.0.1) queue.
When i try to add a tv show episode Sonarr says it’s searching 2 indexers with [episodesearch] completed. No download though.

Log says: NzbDrone.Core.Download.Clients.DownloadClientException: Unable to connect to SABnzbd, please check your settings
Debug log says: |Warn|HttpClient|HTTP Error - Res: [GET] https://newztown.co.za/api?t=tvsearch&cat=5030,5040&extended=1&apikey=(removed)&offset=0&limit=100&tvdbid=262980&rid=27822&tvmazeid=175&season=5&ep=3: 502.BadGateway
Testing SABnzbd is always successful.
Testing Newztown is always successful.

What to do when the Sonarr test ist succesful?

We need the full log file, not just a snippet.

Like this?
https://pastebin.com/Dgijn5Li

Does this help?

Sonarr can’t connect to SABnzbd, I don’t see how testing would work and that would fail unless a firewall or reverse proxy is causing issues.

Is SAB on the same system as Sonarr?
Is it running on port 8080?
Is SAB running (and can you access it in a browser)?

I just tested again. “Testing SABnzb succedded”.
Both run on thesame system.
SAB is running on port 8080.
I can access it finde and manual downloads are no problem.

Manual search in Sonarr for an episode works and it also sends the file directly to SAB, which starts downloading.
So the connection works fine.

Do you always get that error when Sonarr fetches the history from SAB or only some of the time?

Every Time. What confuses me is that manual search+download work fine and the SAB test says “successful”, but the logfiles claim a connection error.

Another important fact: the installation worked fine the last few months. The only thing I changed is an update of the SAB client.

Still, it should either work all the time or not at all, right?

Yeah, especially with that error stating it failed to connect not a failure on SAB’s side after connecting.

If you use the URL Sonarr logs and put it in a browser (and add the API Key back in) does it fail?

Where do I find this URL? Or which one are you referring to?

From the logs:

17-6-1 20:01:00.1|Debug|SabnzbdProxy|Url: http://localhost:8080/api?mode=history&start=0&limit=30&category=sonarr&apikey=(removed)&output=json

Fails when I don’t run SAB. Firefoy says Connection denied. Couldn’t connect to localhost:8080.
With SAB startet I get
status false
error “API Key Incorrect”

Testing the Indexer still succeeds.

markus101: Thanks for all your support by the way!

One more thing: Though I get the error message, the download DOES start!

If SAB isn’t running that’s expected, is SAB always running? If SAB is offline Sonarr would log the error in your log file…

Yeah, you need to replace the (removed) with the API key.

The error is about fetching the history, which you’re saying always fails (Sonarr checks every minute), if the downloads are queuing, but the history check is failing every time (which means Sonarr would never import anything) I have no idea how that could happen.

SAB is always running before I start Sonarr.

I did replace “(replaced)” with the API key. :smiley: Still got the same error.

Well I guess I go with Manuel Search then. Somehow the results from that get imported into SAB without problems…

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.