Page 1 of 1

move storage not working

Posted: Tue Mar 02, 2021 2:39 pm
by DannyB
Hello,

I have been trying to use the "move storage" features for a fews days without success :/
I thought it was a permissions problem but even by putting my whole disk in 777 (i know it is bad ^^ ) it still doesn't work.
I ony succeed when moving the files in my download folder to a subfolder (like download/music ) but not when i try to move them in the same disk but in a parent folder

Is there anything i missed?

Thanks a lot for your help and work

Re: move storage not working

Posted: Tue Mar 02, 2021 3:19 pm
by ashmandias
Are you using selinux, apparmor, or anything similar?

Re: move storage not working

Posted: Tue Mar 02, 2021 3:29 pm
by DannyB
I am using OpenMediaVault

Re: move storage not working

Posted: Tue Mar 02, 2021 3:46 pm
by ashmandias
Ok, does openmediavault use selinux, apparmor, or anything similar? If so, that is likely the issue.

Re: move storage not working

Posted: Tue Mar 02, 2021 3:52 pm
by DannyB
No it doesn't :/

Re: move storage not working

Posted: Wed Mar 03, 2021 9:50 am
by shamael
Define a specific folder and check the permission of this folder: can you output the permission for the user/group used by Deluge?

Re: move storage not working

Posted: Wed Mar 03, 2021 1:12 pm
by ashmandias
use the command 'namei -l' to validate the permissions on the location (use the full path to the location, not a relative one) that fails, and contrast that to one that works.

Re: move storage not working

Posted: Wed Mar 03, 2021 10:16 pm
by DannyB
The folder i am using to download, and that works :
/srv/dev-disk-by-uuid-bd903e25-65c9-420a-9af8-51c87b194ac1/Download/

i get following rights for it usin namei command (thanks for this tips) :
drwxrwxr-x root root /
drwxr-xr-x root root srv
drwxrwxrwx root root dev-disk-by-uuid-bd903e25-65c9-420a-9af8-51c87b194ac1
drwxrwsrwx root users Download

The foltre where i try for move some of my torrent is
/srv/dev-disk-by-uuid-bd903e25-65c9-420a-9af8-51c87b194ac1/Series/
with basically same rights :
drwxrwxr-x root root /
drwxr-xr-x root root srv
drwxrwxrwx root root dev-disk-by-uuid-bd903e25-65c9-420a-9af8-51c87b194ac1
drwxrwsrwx root users Series

@shamael : i assumed that the user used by Deluge is deluge, and i already added him to users group


Is there any way/where to read why a torrent files aren't moved?

Re: move storage not working

Posted: Thu Mar 04, 2021 9:19 am
by shamael
It depends how your launch deluge and which tutorial you followed (by hand, cron, systemD unit).
If you followed the tutorial on this site the user and group should be deluge indeed
You can simply check with

Code: Select all

ps aux|grep deluged
We can see your folder is owned by root:root, and deluge is certainly not part of the root group. From your output that's the catch.
Change the owner of your destination folder (and all subfolders) to deluge:deluge will solve your issue, below command should do it (confirm first the user and group are well good ones)

Code: Select all

sudo chown -R deluge:deluge /srv/dev-disk-by-uuid-bd903e25-65c9-420a-9af8-51c87b194ac1

Re: move storage not working

Posted: Thu Mar 04, 2021 8:12 pm
by DannyB
Hey!
It dit it indeed :)
Thanks a lot!!!

I didn't know the parent folder had to belong (or at leaset to the group) to the user