Transmission not working since today

Sonarr version: 2.0.0.5163 (from Ubuntu package)
Mono: official Ubuntu repo: 5.12.0.226-0xamarin3+ubuntu1404b1
OS: Ubuntu 14.04.5 LTS
Debug logs:
Relevant parts:


16-5-13 07:08:05.8|Trace|EventAggregator|ApplicationStartedEvent -> ReconfigureLogging
16-5-17 16:54:18.7|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-6-5 07:25:39.9|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-6-21 12:16:04.1|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-7-7 07:22:56.6|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-7-25 06:41:12.4|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-8-17 07:00:34.5|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-9-8 06:55:18.2|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
16-9-15 19:06:58.1|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
18-5-20 19:55:16.7|Debug|Api|[PUT] /api/config/host: 202.Accepted (90 ms)
18-5-20 19:55:16.7|Debug|Api|[GET] /api/health: 200.OK (0 ms)
18-5-20 19:55:16.7|Debug|Api|[GET] /api/health: 200.OK (1 ms)
18-5-20 19:55:23.2|Error|Transmission|Unable to connect to Transmission, please check your settings

[v2.0.0.5163] NzbDrone.Core.Download.Clients.DownloadClientUnavailableException: Unable to connect to Transmission, please check your settings ---> System.Net.WebException: Failed to read complete http response ---> System.Net.WebException: Error getting response stream (ReadAsync): ReceiveFailure Value cannot be null.
Parameter name: src ---> System.ArgumentNullException: Value cannot be null.
Parameter name: src
  at System.Net.HttpWebRequest+<RunWithTimeoutWorker>d__244`1[T].MoveNext () [0x000ba] in <fc308f916aec4e4283e0c1d4b761760a>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <71d8ad678db34313b7f718a414dfcb25>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <71d8ad678db34313b7f718a414dfcb25>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <71d8ad678db34313b7f718a414dfcb25>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 
  at System.Net.WebResponseStream+<ReadAsync>d__48.MoveNext () [0x00253] in <fc308f916aec4e4283e0c1d4b761760a>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebConnectionStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00077] in <fc308f916aec4e4283e0c1d4b761760a>:0 
  at NzbDrone.Common.Extensions.StreamExtensions.ToBytes (System.IO.Stream input) [0x0001c] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Extensions\StreamExtensions.cs:13 
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001dd] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:108 
   --- End of inner exception stack trace ---
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001e9] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:112 
  at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x000b5] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\FallbackHttpDispatcher.cs:53 
  at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request) [0x0007e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\HttpClient.cs:119 
  at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\HttpClient.cs:55 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.AuthenticateClient (NzbDrone.Common.Http.HttpRequestBuilder requestBuilder, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings, System.Boolean reauthenticate) [0x0004f] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:212 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.ProcessRequest (System.String action, System.Object arguments, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x0001f] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:249 
   --- End of inner exception stack trace ---
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.ProcessRequest (System.String action, System.Object arguments, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00138] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:301 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetSessionVariables (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:145 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetConfig (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:119 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetClientVersion (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:109 
  at NzbDrone.Core.Download.Clients.Transmission.Transmission.ValidateVersion () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\Transmission.cs:28 
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionBase.TestConnection () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionBase.cs:194 

18-5-20 19:55:23.2|Warn|NzbDroneErrorPipeline|Invalid request Validation failed: 
 -- Unable to connect
18-5-20 19:55:23.2|Debug|Api|[POST] /api/downloadclient/test: 400.BadRequest (26 ms)

Description of issue:

Since today Sonarr doesn’t seem to be able to connect to Transmission. I haven’t updated Transmission, Mono or Sonarr. I seem to have the same issue in Radarr (the same error), but other tools that use the Transmission API do work. Transmission itself doesn’t seem to have any issues as far as I can see, downloads work fine.

Any tips on where to start looking for a cause?

I’m having the same issue, did you find out why?

Nope, nothing’s changed for me.

EDIT: Actually, I suspected that it might have been something in mono 5.12, so I just downgraded to mono 4.2.3 from the sonarr Ubuntu repo. Everything seems to work fine now…

I did notice that mono changed the implementation of Web requests in a recent update, maybe that’s related?

I’m using the linuxserver docker container for Sonarr (and Radarr). I rolled back Sonarr several weeks to 2.0.0.5163 (Mono ver 5.10.1.47) and it works fine (for this version of Mono on both Radarr and Sonarr). It must be something to do with the 5.12 version of Mono… I’ll poke around. If you work it out keep me posted!

Transmission (bare metal on Ubuntu) is Transmission 2.93.

Hi @Adhesiveduck, I also facing the same issue does anyone find out the solution why?

Nope I’m on an older version of Mono where it still seems to be working. What versions are you on?

Hi, I’m having the same issue.
Using linuxserver’s docker image, sonarr stopped working after image version 133.
Same thing with radarr after image version 109.

Regarding mono versions, 5.10 works, whilst 5.12 is the breaking change.

This guy had the same issue: Sonarr Unable to communicate with Transmission

I had the same issue.
For me it was due to my nginx configuration for proxying transmission.
By adding the following setting it solves the issue:
proxy_http_version 1.1;

Here’s my full proxy setting for transmission:
location / {
include /etc/nginx/fastcgi.conf;

            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass_header X-Transmission-Session-Id;
            proxy_http_version 1.1;
            proxy_set_header Connection "";

            proxy_pass http://127.0.0.1:9091;
    }
1 Like

Awesome, this solved the issue for me as well.
Thank you!

Any idea why the HTTP version was an issue?
I don’t even understand, according to my logs I have always been using HTTP 1.1…

I’m not sure 100% as I didn’t go as far as debugging the webrequest in Mono to find what was failing…

Maybe transmission behave differently depending if the proxy is a HTTP 1.0 proxy or a HTTP 1.1 proxy and mono changed the default behavior of its web requests to make use of HTTP 1.1 only feature.

One thing that comes into my mind would be trying to establish a permanent connection (like a websocket) that wouldn’t be passed all the way to transmission if the proxy is HTTP 1.0 but I haven’t checked if that’s the cause of the issue.

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