rtorrent/rutorrent change default downloads folder

I use the internal rtorrent (software #107). I wish to know how to change the default download directory successfully. I can’t for the life of me make it work when changing the directory in the /mnt/dietpi_userdata/rtorrent/.rtorrent.rc. I make all the ownership and permissions the same as the original “downloads” folder but the service will never run after that. Would be really nice to add the instructions also in: https://dietpi.com/docs/software/bittorrent/#rtorrent

did you checked log files why service is not starting?

Thanks for the reply. This is what you mean?

root@DietPi:~# dietpi-services status rtorrent

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: status rtorrent

[FAILED] DietPi-Services | ● rtorrent.service - rTorrent (DietPi)
   Loaded: loaded (/etc/systemd/system/rtorrent.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2022-01-26 12:41:33 GMT; 22s ago
  Process: 14091 ExecStop=/usr/bin/screen -S rtorrent -X quit (code=exited, status=1/FAILURE)
  Process: 14073 ExecStart=/usr/bin/screen -fa -dmS rtorrent /usr/bin/rtorrent (code=exited, status=0/SUCCESS)
 Main PID: 14074 (code=exited, status=0/SUCCESS)
      CPU: 110ms

Jan 26 12:41:32 DietPi systemd[1]: Stopped rTorrent (DietPi).
Jan 26 12:41:32 DietPi systemd[1]: Starting rTorrent (DietPi)...
Jan 26 12:41:32 DietPi systemd[1]: Started rTorrent (DietPi).
Jan 26 12:41:33 DietPi screen[14091]: No screen session found.
Jan 26 12:41:33 DietPi systemd[1]: rtorrent.service: Control process exited, code=exited status=1
Jan 26 12:41:33 DietPi systemd[1]: rtorrent.service: Unit entered failed state.
Jan 26 12:41:33 DietPi systemd[1]: rtorrent.service: Failed with result 'exit-code'.
Jan 26 12:41:33 DietPi systemd[1]: rtorrent.service: Failed with result 'exit-code'.

Would it be possible to share changes done on configuration as well pls?

This is the default:

# Default download dir
directory.default.set = /mnt/dietpi_userdata/downloads
# Session dir
session.path.set = /mnt/dietpi_userdata/downloads/.session

I am just changing the path to another mount point (an external hdd).

# Default download dir
directory.default.set = /mnt/usbdisk/downloads
# Session dir
session.path.set = /mnt/usbdisk/downloads/.session

can you share following as well pls

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
root@DietPi:~# lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME        FSTYPE LABEL    SIZE RO TYPE MOUNTPOINT    PARTUUID                             UUID
sda                         1.9G  0 disk
└─sda1      ext4            1.9G  0 part /mnt/stick2gb 00c792ff-01                          208a89d0-b4ec-40fc-bee5-16a918c03a39
sdb                       186.3G  0 disk
└─sdb1      ext4          186.3G  0 part /mnt/usbdisk  130682f5-01                          0f71371b-3400-4a4c-aff5-2957e6a1d2a7
mmcblk0                    14.9G  0 disk
├─mmcblk0p1 vfat   boot    43.9M  0 part /boot         b8ef7a27-01                          9304-D9FD
└─mmcblk0p2 ext4   rootfs  14.8G  0 part /             b8ef7a27-02                          29075e46-f0d4-44e2-a9e7-55ac02d6e6cc

I use the “stick2gb” as my userdata partition but i want to have the downloaded torrents on the “usbdisk” partition. Thanks!!

did you copied the entire /mnt/dietpi_userdata/downloads to /mnt/usbdisk/downloads? Including permissions?

Btw: there are more options to change on configuration files

root@DietPi4:~# cat /var/www/rutorrent/conf/config.php | grep usb
        $scgi_host = "unix:///mnt/usbdisk/downloads/.session/rpc.socket";
root@DietPi4:~#



root@DietPi4:~# cat /mnt/dietpi_userdata/rtorrent/.rtorrent.rc | grep usb
directory.default.set = /mnt/usbdisk/downloads
session.path.set = /mnt/usbdisk/downloads/.session
network.scgi.open_local = /mnt/usbdisk/downloads/.session/rpc.socket
execute.nothrow = chmod,666,/mnt/usbdisk/downloads/.session/rpc.socket
root@DietPi4:~#

I did a quick test and for me it is working without issues on RPi4B 64bit

Thanks it’s working. Was all the extra config you posted. Don’t you think it’s too complicated to have to do all those stuff in order just to change the downloads folder?.. Also, it would be nice to update to a newer version of rtorrent at last.

rtorrent and rutorrent are 2 different applications. Each have its own configuration files.

latest rutorrent version is from 2020 https://github.com/Novik/ruTorrent
latest rtorrent version is from 2019 https://github.com/rakshasa/rtorrent/

Pls can you let me know which version you expect?

Well I think after all it’s now fine, after the correct configuration (had weird behavior with the torrents pause/seed state in the past, aside from the downloads folder).

Currently on dietpi, rtorrent is 0.9.6/0.13.6 and rutorrent v3.9, which is fine, so never mind. I will report if I notice something weird.

Thanks for the support.