-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ruTorrent (rTorrent)
ruTorrent is a web front-end for the BitTorrent client rTorrent. The SynoCommunity package bundles both rTorrent (the daemon) and ruTorrent (the web UI).
After installation, access the web interface at:
http://<NAS_IP>/rutorrent
| Service | Port | Protocol |
|---|---|---|
| Web UI | 80 | HTTP (via /rutorrent path) |
| rTorrent SCGI | 8050 | TCP |
| BitTorrent | 6881-6999 | TCP/UDP |
For port conflict troubleshooting, see the Frequently Asked Questions.
The rTorrent configuration file is located at:
/var/services/web_packages/rutorrent/conf/rtorrent.rc
To edit the configuration:
- Enable SSH access on your DSM
- Connect via SSH
- Edit with:
sudo vi /var/services/web_packages/rutorrent/conf/rtorrent.rc - Restart the ruTorrent package in DSM Package Center
| File | Path |
|---|---|
| rTorrent config | /var/services/web_packages/rutorrent/conf/rtorrent.rc |
| Session directory | /var/packages/rutorrent/var/.session/ |
| Log file | /var/packages/rutorrent/var/rtorrent.log |
| ruTorrent config | /var/services/web_packages/rutorrent/conf/config.php |
| Plugins config | /var/services/web_packages/rutorrent/conf/plugins.ini |
Symptoms:
- Package crashes and restarts in a loop
- Log shows "Too many open files" errors
- Web UI becomes unresponsive with 500 errors
- High CPU usage from constant restarts
Cause: By default, DSM limits processes to 1024 open file descriptors. When downloading many torrents simultaneously, rTorrent can exhaust this limit causing it to crash.
Solution:
Add the following lines to your rtorrent.rc file:
# Network resource limits (optimized for ulimit of 1024)
# Leave ~74 FDs headroom for rtorrent internals: session, logs, SCGI, etc.
network.http.max_open.set = 50
network.max_open_files.set = 600
network.max_open_sockets.set = 300
# Peer throttling to reduce connection overhead
throttle.min_peers.normal.set = 20
throttle.max_peers.normal.set = 60
throttle.min_peers.seed.set = 30
throttle.max_peers.seed.set = 80
FD budget breakdown:
- 600 (data files) + 300 (sockets) + 50 (HTTP/trackers) = 950
- Leaves ~74 FDs for rtorrent internals
These values are from the official rtorrent CONFIG-Template, specifically documented as "optimized for an ulimit of 1024 (a common default)".
After editing, restart the ruTorrent package:
synopkg restart rutorrentNote: Starting with package version 5.2.10-21, new installations include these settings by default. Existing users upgrading from earlier versions need to add them manually.
If downloads fail with permission errors, ensure the sc-rutorrent user has read/write access to your download folder. See Permission Management for detailed instructions.
ruTorrent includes several plugins by default. To enable/disable plugins, edit:
/var/services/web_packages/rutorrent/conf/plugins.ini
Custom plugins can be added to /var/services/web_packages/rutorrent/plugins/ and will be preserved during upgrades.
Some ruTorrent plugins require external programs. The package is configured to look for common utilities in:
/var/packages/rutorrent/target/bin//usr/local/bin/- Standard system paths
When upgrading ruTorrent:
- Your torrents and configuration are preserved
- The rtorrent.rc file is NOT overwritten
- Plugin settings are preserved
- Session data (.session folder) is preserved
- Custom plugins are preserved
Important: If upgrading from a version before 5.2.10-21, you should manually add the file descriptor limit settings mentioned in the "Too many open files" section above.
- Home
-
Packages
- Adminer
- Aria2
- Beets
- BicBucStriim
- Borgmatic
- cloudflared
- Comskip
- Debian Chroot
- Deluge
- Duplicity
- dnscrypt-proxy
- FFmpeg
- FFsync
- Flexget
- Gstreamer
- Google Authenticator
- Home Assistant Core
- Jellyfin
- Kiwix
- [matrix] Synapse homeserver
- MinIO
- Mono
- Mosh
- Mosquitto
- Node-Exporter
- OpenList
- ownCloud
- PostgreSQL
- Radarr/Sonarr/Lidarr/Jackett
- rclone
- ruTorrent (rTorrent)
- SaltStack
- SickBeard Custom
- SynoCLI-Disk
- SynoCLI-Devel
- SynoCLI-File
- SynoCLI-Kernel
- SynoCLI-Misc.
- SynoCLI-Monitor
- SynoCLI-NET
- Synogear
- Vaultwarden
- Concepts
- Development
- Resources