rTorrent support

How close are you to getting this accepted into the next build of Sonarr? I’m running Sonarr on my QNAP server, and I’m not familiar enough with the file structure to manually update Sonarr from a Zip file.

There are still a few things to fix in the PR:

Once they are fixed we’ll get it into develop.

Looking foward to this being implemented.

Branch develop now includes support for rTorrent.

I’m running the ruTorrent package on my Synology and can’t seem to get this to connect properly. I’ve tried the URL / basedir for my ruTorrent interface as well as the scgi_port in the .rtorrent.rc file with no luck. What am I missing here to get this to work?

I’m having the same problem as @PnoT.

I just installed rutorrent last night(great timing), and everything else seems to connect fine.

I tried these for baseurl;
rutorrent
rutorrent/plugins/rpc
rutorrent/plugins/httprpc (linking to actions.php in this folder works for Transdroid on android)

The error I’m getting is: “Unknown exception: Response from server does not contain valid XML.”

Is there something I’m missing?

Edit: seeing i may have missed a setting in my install. Looking into it. Edit2: nm, still doesn’t work.

@PnoT
@Sek0n

I have only used this implementation with Nginx as SCGI proxy.

My Sonarr rTorrent configuration:

  • Host: 127.0.0.1
  • Port: 8081
  • Url Base:
  • Use SSL: No
  • Username:
  • Password:

In my nginx.conf configuration:

   server {
      listen       8081;
      location / {
         include scgi_params;
         scgi_pass 127.0.0.1:5000;
      }
   }

In my .rtorrent.rc configuration

scgi_port = localhost:5000

Using ruTorrent as the proxy should also work, by using the RPC plugin. In that case, in Sonarr’s rTorrent configuration the setting “Url Base” should be plugins/rpc/rpc.php.

1 Like

I just found out what my problem was a second ago.

My conf/plugins.ini needed this:

[httprpc]
enabled = no

Thought I had it already, but it was a different variable. :slight_smile:

Edit: rutorrent/plugins/rpc/rpc.php worked also. Thanks!

I’m not sure what’s going on at this point I’ve tried everything in this thread and now I’m getting:

Unknown exception: Error getting response stream (ReadDone2): ReceiveFailure

name: ruTorrent
enable: yes
host: 127.0.0.1
port: 8050
url base: rutorrent/plugins/rpc/rcp.php
use ssl: no

My .rtorrent.rc
scgi_port = localhost:8050

I tried to modify both plugin.conf files:

/volume2/@appstore/rutorrent/share/rutorrent/conf/plugins.ini
/volume2/web/rutorrent/conf/plugins.ini

with

[httprpc]
enabled = no

@PnoT, is your rutorrent webui on port 80? If so, have you tried it? It’s what I have working atm.

Host: localhost
Port: 80
URL Base: rutorrent/plugins/rpc/rpc.php
SSL: no

I re-removed the httprpc no from my file.

With the httprpc option set to no, the default URL Base (RPC2) option worked.

derp da derp

I was thinking the port was the scgi_port entry… 80 does work smacks head

Thanks Sek0n

Np, Glad it helped :slight_smile:

I’ve tested rtorrent using the rpc and the httprpc plugins in ruTorrent and both have worked for me. Sonarr successfully added a torrent and imported it after completion, using each plugin. Note that you should only have one of these plugins installed at a time, never both.

The host and port settings are for your web server that is hosting rutorrent. So if it’s on the same box as Sonarr, this will usually work (depending on your web server setup): localhost and port 80.

The unique part for the plugins is the URL Base. For the RPC and HTTPRPC plugins respectively, use these paths (modified if you set up your rutorrent in a different web path):

/rutorrent/plugins/rpc/rpc.php

/rutorrent/plugins/httprpc/action.php

I’m having trouble getting rTorrent to work on my Sonarr installation on my QNAP NAS. I installed the package from here. I had to install an older version of Qmono to get Qsonarr to update. Currently I’m on Qmono version 3.10 if that makes any difference with this.

In my Sonarr settings I have the following:

host: localhost
port: 6009
url base: /ui/rutorrent/plugins/httprpc/action.php
username: filled
password: filled

The error that I get is “Unknown exception: not found”

If I change the port to the scgi port of 5000 with everything else kept the same, I get this error: “Unknown exception: Error getting response stream (ReadDone2): ReceiveFailure”

Don’t know what’s missing…

In my SickRAGE settings I have the settings like this (it’s just one field):

“rTorrent host:port”: scgi://localhost:5000/rutorrent/plugins/httprpc/action.php

Thanks for the consideration!

The httprpc plugin might not be available on your ruTorrent. Based on your error, it seems you have the correct host and port, but the url base doesn’t match any file. Try using the rpc plugin.

I see. Thanks for the response. Though I had to install the plugin manually to get it to work for the SICKRage installation. I have it enabled and can check it on my rutorrent webgui and it’s the reason why I can get SICKRage and BarMagnet (iOS App) working.

It’s my belief that it’s something else though. Possibly my own user error. I sincerely appreciate your consideration!

This plugin is great, it couldn’t have come at a better time for me. I am wondering if there are any plans on make a setting available to set the destination folder. As of right now the downloads get saved in the root of the download folder specified in rtorrent.

That should be controlled by the category you set in Sonarr.

That’s what I thought but for some reason for Sonarr it’s not working. At least not for me. I am using the default rutorrent that my provider has installed. I think I might try updating rutorrent and see if that has any affect.

Update: I updated rutorrent and now I see how I can get Sonarr’s downloads to go to the right folder by using autotools to move and append torrents label. In the previous version I was using, rutorrent didn’t give the option to append the torrent label with autotools. I still think it would be nice to just have the ability to specify location from sonarr like other popular apps that make use of rtorrent.

I would also like to be able to configure the download directory in the Sonarr settings.