Rutorrent can't access to my folder Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
miloose
Posts: 4
Joined: Fri Mar 20, 2020 9:10 pm

Rutorrent can't access to my folder

Post by miloose »

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
trendy
Posts: 117
Joined: Tue Feb 25, 2020 2:54 pm

Re: Rutorrent can't access to my folder

Post by trendy »

Check the file permissions that they allow the torrent client user to read and write inside the download folder.
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rutorrent can't access to my folder

Post by Joulinar »

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

Code: Select all

ls -la /mnt/data1/dietpi_userdata/
ls -la /mnt/data1/dietpi_userdata/downloads/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
miloose
Posts: 4
Joined: Fri Mar 20, 2020 9:10 pm

Re: Rutorrent can't access to my folder

Post by miloose »

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
trendy
Posts: 117
Joined: Tue Feb 25, 2020 2:54 pm

Re: Rutorrent can't access to my folder

Post by trendy »

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

Code: Select all

sudo chown dietpi:dietpi DIR_NAME
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rutorrent can't access to my folder

Post by Joulinar »

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

Code: Select all

groups rtorrent
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
miloose
Posts: 4
Joined: Fri Mar 20, 2020 9:10 pm

Re: Rutorrent can't access to my folder

Post by miloose »

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.
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rutorrent can't access to my folder

Post by Joulinar »

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

therefore do the following

Code: Select all

chown -R rtorrent:dietpi <DIR_NAME>
pls replace <DIR_NAME> with the folder name you like to see on Rutorrent
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
miloose
Posts: 4
Joined: Fri Mar 20, 2020 9:10 pm

Re: Rutorrent can't access to my folder

Post by miloose »

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

Have a nice day everybody.
Post Reply