Rarbg / Torrentapi.org SSL error

Sonarr version (exact version): 2.0.0.4230
Mono version (if Sonarr is not running on Windows): 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)
OS: Ubuntu 16.04.1 Xenial
((Debug logs)):
16-8-21 16:43:12.0|Debug|FallbackHttpDispatcher|https request failed in tls error for torrentapi.org, trying curl fallback.
16-8-21 16:43:12.1|Warn|Rarbg|Unable to connect to indexer

[v2.0.0.4230] System.Net.WebException: Error: SendFailure (Error writing headers) β€”> System.Net.WebException: Error writing headers β€”> System.IO.IOException: The authentication or decryption has failed. β€”> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (IAsyncResult asyncResult) <0x412d9060 + 0x00103> in :0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (IAsyncResult ar, Boolean ignoreEmpty) <0x412d8fa0 + 0x0002b> in :0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (IAsyncResult result) <0x412d66d0 + 0x00223> in :0
β€” End of inner exception stack trace β€”
at System.Net.WebConnection.EndWrite (System.Net.HttpWebRequest request, Boolean throwOnError, IAsyncResult result) <0x41104920 + 0x00207> in :0
at System.Net.WebConnectionStream+c__AnonStorey1.<>m__0 (IAsyncResult r) <0x411041e0 + 0x0014f> in :0
β€” End of inner exception stack trace β€”
β€” End of inner exception stack trace β€”
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x4110c890 + 0x001a7> in :0
at System.Net.HttpWebRequest.GetResponse () <0x4110ac00 + 0x0005a> in :0
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x000ef] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:59

16-8-21 16:43:12.1|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
– Unable to connect to indexer, check the log for more details

Description of issue:

Sonarr instantly fails connection to https://torrentapi.org with the above error… works fine with http:// but is highly insecure. I am able to do curl https://torrentapi.org/pubapi_v2.php?get_token=get_token from console and it connects + loads fine, appears isolated to Sonarr.

Make sure libcurl is installed (might also need libcurl-dev) so Sonarr can fall back to using that since mono doesn’t support the SSL technology that rarbg is using.

Thanks, command sudo apt-get install libcurl3 then restarting Sonarr solved the issue.

1 Like

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