Sonarr + Seedbox + RuTorrent - Help with Download Client

I’ve loaded Sonarr on my Synology NAS, however I am really struggling with setting up a download client for my remote seedbox running RuTorrent.

The plan is to use Sonarr with BTN.

I’m not sure I understand the Remote Path Mappings.

I’m using NetDrive2 to mount my remote drive locally but I’m not sure what to enter for the ‘Local Path’?

Also when selecting a Download Client, I use Rtorrent (no RuTorrent) but it times out.

I think I don’t have the URL Path setup correctly, I’m not running RPC as a Plug-In on the seedbox (OVH) but I am running HTTPRPC, if that helps.

I guess this is where my lack of linux knowledge is killing me.

Anyhelp or guidance would be appreciated.

Cheers

I assume that you have set up the BTN indexer and you are receiving torrents for downloading, correct?
Now time to set up your rtorrent download client. For HTTPC you will need something like
/rutorrent/plugins/httprpc/action.php or simply /plugins/httprpc/action.php for the Url Path. Test both of them and one will succeed, provided that you have set up the rest of the details correctly. Make sure you have the correct host and port and you authentication details, of course. Try to set ssl both on and off. Mine didn’t work with ssl, but you might be luckier and I would assume it is preferred to be on.

Now you should have a correct RTorrent client set up. Next step to fix that remote mapping issue. Go to a series and make a manual search. You shall see various files. Select one - not that important which one for this time. It shall add it in the rtorrent, with the specified label and start download it. Let it finish. During the download Sonarr shall display a number in the activity button, a blue one if I recall correct. Pressing it you should see the file selected and its download details. This means Sonarr has correct communication with your rTorrent. Let the download finish. Now you should see an orange number over the activity button and when you select it, the file has a yellowish icon infront of it. Put you mouse over it. You shall see a message stating that there is no file in a directory .This is your remote path. Select it and copy it. Go to the settings, download clients, bottom page to add the remote path mapping (RPM). Add one by clicking the + icon and enter as remote path the text you copied and select as local the path where your netdrive maps that remote path. Now you should wait a bit and provided you have completed downloading handling activated, you should see the episode removed from the activity list and in the history, you should see it has been imported in you library. That’s it! Now you can let Sonarr do its magic automatically.

I do not have access to BTN, but if it uses magnet files instead of plain torrents, you might have the same issue I am having with rarbg indexer, which would make rtorrent unable to handle and add them correctly for downloading. Just a heads up so you do not look for other misconfigurations :slight_smile:

Firstly a massive THANKS for the comprehensive reply.

Yes, the BTN Indexer is working and I can see it successfully polling and receiving torrents every 30 minutes.

But I can’t get the RuTorrent download working.

When I go to test the connection the action keeps timing out, it fails straight away if I turn off SSL or get the sign-in details wrong, but using both the paths you suggest to get to the action.php file, times out.

I can see from the RuTorrent client that HTTPRPC is loaded (version 3.6).

If I put the address of the path into a browser http://xx.xxx.xxx.xxx//rutorrent/plugins/httprpc/action.php it returns ‘false’.

If I put http://xx.xxx.xxx.xxx//rutorrent/plugins/ it tells me ‘Forbidden You don’t have permission to access /rutorrent/plugins/httprpc/ on this server’

I’m sure it’s something stupid I have forgotten!

How do you access your rutorrent UI? Using something like http://xx.xxx.xxx.xxx or something like http://xx.xxx.xxx.xxx/rutorrent? If the former use the /plugins/httprpc/action.php, if the later use the /rutorrent/plugins/httprpc/action.php. I also noticed that there is a double // in the two URLs you provided. If it is not a typo, make sure they do not exist … removing / from either the host or the URL path.

Just reread your reply and noticed this. This is the httprpc endpoint you are looking for. Put the needed details in sonar to reconstruct this call. Make sure that host is simply xx.xxx.xxx.xxx - no http:// or trailing /. Port is 80 and Url path is /rutorrent/plugins/httprpc/action.php - starts with a /. This should make it work … If not please open settings and have log level set to debug/trace and post here a pastebin for related errors from sonarr.

Thanks again for helping.

I tried all the suggestions, double checking everything and trying even more variations.

The seedbox has RPC and HTTPRPC running, but no joy in trying any.

I’ve also tried with and without SSL enabled, but without I get an immediate protocol violation error.

I did a bit of Googling (dangerous…that’s how I arrived here to annoy you - sorry) and wondered if it might be something to do with Mono and certificates?

Anyway here is the log, and I really appreciate the time and effort you are putting in…thanks.

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) [0x00053] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:434
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (IAsyncResult ar, Boolean ignoreEmpty) [0x00000] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:285
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (IAsyncResult result) [0x00071] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:447
— End of inner exception stack trace —
at System.Net.WebConnection.EndWrite (System.Net.HttpWebRequest request, Boolean throwOnError, IAsyncResult result) [0x000b3] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/System/System.Net/WebConnection.cs:1085
at System.Net.WebConnectionStream+c__AnonStorey1.<>m__0 (IAsyncResult r) [0x00000] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/System/System.Net/WebConnectionStream.cs:666
— End of inner exception stack trace —
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00065] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/System/System.Net/HttpWebRequest.cs:946
at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /spksrc/native/mono/work-native/mono-4.2.1/mcs/class/System/System.Net/HttpWebRequest.cs:958
at CookComputing.XmlRpc.XmlRpcClientProtocol.GetWebResponse (System.Net.WebRequest request) <0x415b5080 + 0x00032> in :0

If you’re getting that error its SSL related and due to mono not supporting current SSL ciphers as well as TLS 1.2.

Sonarr will use cURL as a fallback in some situations (if available), though it may not when communicating with download clients (I’m not sure one way or another in this case).

Are you able to try without SSL enabled on the ruTorrent side?

Thanks Markus, this is indeed the problem.

I’ll look round to see if there is another method I can connect with, that has decent security.

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