Rutorrent can't access to my folder

Hi,
I’m new on dietpie. I began this week to work on.
Before, excuse me for my bad english, I didn’t practice for a long time.
I have install dietpie on a raspberry 4 with a 2TO hard drive on USB.
I have migrated Dietpi User Date on my usb hard drive using drive manager.
I have edit the rutorrent config files (files : .rtorrent.rc in /mnt/data1/dietpi_userdata/rtorrent) to add the folder for download (# Default directory to save the downloaded torrents.
directory.default.set = /mnt/data1/dietpi_userdata/downloads). In this folder I have created some sub folder like Movies, Tv SHow, Music, etc.
But when I launch Rutorrent, and try to add a torrent, I can’t access to the sub folder (movies, tv shows, etc.), Rutorrent only see the download folder empty.
I think I have made something wrong, but don’t know what. I don’t find something like that on this forum or antoher one.
Thanks for your help.
Regards

Check the file permissions that they allow the torrent client user to read and write inside the download folder.

indeed file system permission would be my guess as well. pls can you post

ls -la /mnt/data1/dietpi_userdata/
ls -la /mnt/data1/dietpi_userdata/downloads/

Hi,
Thank you for your answers.
Here’s the info :
For : “ls -la /mnt/data1/dietpi_userdata/”

total 24
drwxr-xr-x 1 root root 4096 mars 20 21:41 .
drwxr-xr-x 1 root root 4096 mars 19 22:08 …
drwxr-xr-x 1 dietpi dietpi 4096 mars 19 16:14 Abatts
drwxr-xr-x 1 root root 0 mars 19 21:49 comics
drwxrwxr-x 1 dietpi dietpi 4096 mars 20 21:07 downloads
drwxr-xr-x 1 root root 0 mars 19 21:49 ebooks
drwxrwxr-x 1 dietpi dietpi 0 mars 19 22:53 Music
drwxrwxr-x 1 dietpi dietpi 0 mars 19 22:53 Pictures
drwx------ 1 rtorrent rtorrent 0 mars 19 22:53 rtorrent
drwxr-xr-x 1 root root 4096 mars 20 21:07 Torrent
drwxr-xr-x 1 ubooquity dietpi 4096 mars 19 21:53 ubooquity
drwxrwxr-x 1 dietpi dietpi 0 mars 19 22:53 Video

For : ls -la /mnt/data1/dietpi_userdata/downloads/

total 6870636
drwxrwxr-x 1 dietpi dietpi 4096 mars 20 21:07 .
drwxr-xr-x 1 root root 4096 mars 20 21:41 …
drwxr-xr-x 1 root root 4096 mars 16 09:44 App
drwxr-xr-x 1 root root 0 mars 11 21:17 Cloud
drwxr-xr-x 1 root root 8192 mars 12 23:05 Concerts
drwxr-xr-x 1 root root 4096 mars 13 05:22 DA
drwxr-xr-x 1 root root 4096 mars 13 06:47 Docs
drwxr-xr-x 1 root root 4096 mars 13 07:31 Ebooks
drwxr-xr-x 1 root root 45056 mars 16 10:00 Films
drwxr-xr-x 1 root root 8192 mars 15 19:09 Jeux
-rw-rw-r-- 1 rtorrent dietpi 1787083296 mars 19 23:06 Marvels.Runaways.S03E01 .MULTi.1080p.HDTV.H264-SH0W.mkv
-rw-rw-r-- 1 rtorrent dietpi 1476349474 mars 19 23:07 Marvels.Runaways.S03E02 .MULTi.1080p.HDTV.H264-SH0W.mkv
-rw-rw-r-- 1 rtorrent dietpi 1850393284 mars 19 23:04 Marvels.Runaways.S03E03 .MULTi.1080p.HDTV.H264-SH0W.mkv
-rw-rw-r-- 1 rtorrent dietpi 1921558493 mars 19 23:03 Marvels.Runaways.S03E04 .MULTi.1080p.HDTV.H264-SH0W.mkv
drwxr-xr-x 1 dietpi dietpi 0 mars 17 20:41 Music
drwxr-xr-x 1 root root 4096 mars 14 23:34 Podcast
drwxr-xr-x 1 root root 45056 mars 14 15:15 Series
drwxr-xr-x 1 rtorrent rtorrent 4096 mars 20 21:13 .session

Thank you for your help.
Regars

Problem 1, dietpi_userdata is owned by root.
Problem 2, in downloads all directories but Music are owned by root.
Fix these for a start with

sudo chown dietpi:dietpi DIR_NAME

I guess it would be needed to change all directories to user rtorrent. let’s check how the user looks like. pls can you post following to display all groups of the user

groups rtorrent

Hi,
Last night I answered you Trendy, but I think I didn’t click on the send button.

So I try with this command :
sudo chown dietpi:dietpi /mnt/data1/dietpi_userdata/downloads/

And nothing happened in SSH, and I go tu Rutorrent but nothing as changed.
So you say that all diectory are owned by root, but I use root for login in Rutorrent. Maybe I do the wrong things for using Rutorrent ?

to Joulinar :
SSH answer me : rtorrent : rtorrent dietpi

Thank you so mutch.

as already indicated yesterday, you would need to change all directories you like to see, to user rtorrent

therefore do the following

chown -R rtorrent:dietpi <DIR_NAME>

pls replace <DIR_NAME> with the folder name you like to see on Rutorrent

Hi,
Thank you very much, it’s work.

Have a nice day everybody.

I may have same issue with new install of rtorrent where I am trying to set the configuration to external USB drive.

/mnt/wd (is where drive is mounted.

  1. How do you properly re-configure the rtorrent.rc config to move all operations to the new drive?
  2. RPI stop working after changing the rtorrent.rc config to point to the external HDD.
  3. File permissions on external drive were update to reflect rtorrent:dietpi , but I do not believe that help in any way.

How do you get a fresh install to work?

Mount /mnt/wd to /mnt/dietpi_userdata/

embossbj
What do you mean by the RPI stopped working. Is the whole device not accessible or just Rutorrent?

Can you share some more details on your system

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Mount point | ls -la /mnt/wd
  • disks overview | lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

Disregard my comment on RPI stopped working.
Basically, rutorrent web UI does not work or allow any torrents to be run/downloaded


dietpi@DietPi:~$ cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=8
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
G_LIVE_PATCH_STATUS[1]='applied'
G_LIVE_PATCH_STATUS[2]='applied'

DISTRO VERSION: BULLSEYE

dietpi@DietPi:~$ uname -a
Linux DietPi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux

RPi 2 Model B (armv7l)



dietpi@DietPi:/mnt$ ls -la wd4tb
total 1156
drwxrwxrwx 1 root     root     4096 Nov 30 03:29  .
drwxr-xr-x 7 root     root     4096 Nov 30 03:20  ..
-rwxrwxrwx 2 root     root   506255 Dec 10  2020 'Install Western Digital Software for Mac.dmg'
-rwxrwxrwx 2 root     root   664376 Dec 14  2020 'Install Western Digital Software for Windows.exe'
drwxr-xr-x 1 rtorrent dietpi    152 Nov 30 03:30  dietpi_userdata



dietpi@DietPi:/mnt$ lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME FSTYPE LABEL  SIZE RO TYPE MOUNTPOINT PARTUUID                             UUID
sda                3.6T  0 disk
└─sda1
     ntfs   My Passport
                   3.6T  0 part /mnt/wd4tb c23f7f6a-446b-438b-ad4f-65f34c22b429 288E6DFB8E6DC244
mmcblk0
│                 14.5G  0 disk
├─mmcblk0p1
│    vfat          128M  0 part /boot      80ee19d2-01                          1836-E7EF
└─mmcblk0p2
     ext4         14.4G  0 part /          80ee19d2-02                          5e0cf1c9-85c3-4f89-b7f7-4a06e01a4e83

This is the error I have on the rutorrent Web UI

[04.12.2021 08:59:24] No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

Not familiar with setup of this application, so do not know where to look within file system for these config parameters.

what exactly was the change you have done? Did you changes any files ore moved something? Where did you have done the changes?

Just update the /mnt of the external USB drive to be /mnt/dietpi_userdata

Pls describe what you have done exactly. How did you do that.

unmount the drive, and re-mounted the drive to the dietpi_downloads mount point.
uninstall the rtorrent/rutorrent software from dietpi system, and re-installed the software after update the mount points.

something doesn’t fit on your information. Your drive is mounted to /mnt/wd4tb and not to /mnt/dietpi_userdata. Can you share again following

ls -la /mnt
ls -la /mnt/dietpi_userdata
df -h