February 10, 20251 yr I had an issue where my arrs were not deleting files/folders from my download path when importing. This issue I "solved" by running the chmod setting in arrs as qBittorrent downloads files with only rw permissions. This works well enough for me as I can't find another solution but a new issue has left me stumped; If I manually start a download in qBittorrent, for example a pack which is not supported in arrs search download, then I have to manually move the folder into the permanent media folder then manually import inside sonarr/radarr. When I do this, it leaves the old folder and I think the reason is that even though qBittorrent is creating the folder under user NOBODY, when I invoke a move via the webui the owner changes to root. When I execute the move through SMB, it changes the owner to USERNAMEHERE. Can anyone recommend a more elegant solution to this? Would I need to FTP/SMB in as root to do the moves? Is this likely not even my actual issue? Issues in order of inconvenience; 1) *arrs doesn't delete original folder when importing content I manually moved, I think because the owner is root or SMB user when I move it 2)qBittorrent setting only RW permissions on downloads Moving through terminal isn't ideal for me as I do alot of my server management from an Android phone. Also, qbit and *arrs have uid=99, gid=100 and umask=000
February 10, 20251 yr Community Expert Your question is not completely clear as to what is happening. 4 hours ago, Jahagafut said: then I have to manually move the folder into the permanent media folder then manually import inside sonarr/radarr. When I do this, it leaves the old folder and I think the reason is that even though qBittorrent is creating the folder under user NOBODY, when I invoke a move via Exactly what (and how) are you using to move this folder??? Many of the Linux file managers run as 'root' with root permissions... 4 hours ago, Jahagafut said: When I execute the move through SMB, it changes the owner to USERNAMEHERE. This has the appearance of being a 'setting' in a Docker Container. You are suppose to 'Edit' that variable to be a valid SMB user. 'nobody' should work... You appear to be a new Unraid user here so let me point you to this menu for any Docker container. Just left-click on the container's icon and you will see this menu: Edited February 10, 20251 yr by Frank1940
February 10, 20251 yr Author 1 hour ago, Frank1940 said: Your question is not completely clear as to what is happening. Exactly what (and how) are you using to move this folder??? Many of the Linux file managers run as 'root' with root permissions... This has the appearance of being a 'setting' in a Docker Container. You are suppose to 'Edit' that variable to be a valid SMB user. 'nobody' should work... You appear to be a new Unraid user here so let me point you to this menu for any Docker container. Just left-click on the container's icon and you will see this menu: I've been setting each docker, as I use docker images which contain these variables, to use uid 99 and gid 100, thus giving them nobody:users permissions. I've been setting unmask to 000 which to my knowledge will not add any restrictions to files created by the dockers. There are three issues, one of which I'm starting to think is actually by design and working as intended by the developer (this one will be number three) The first issue is that my download client, which uses the docker container "binhex-qbittorrentvpn", downloads files with proper permissions, nobody:users, and the directories it creates has drwxrwxrwx permissions, but the files within the directories are being created with -rw-rw-r-- permissions. When my media management applications, Sonarr and Radarr, detect that the download is complete they hardlink the download folder into my permanent media folder. Where the issue arises is when my seeding goal is reached these applications are supposed to move the folder from downloads to the permanent spot but due to the permissions they are not able to move/delete the download folder. This is remedied by telling these applications to run chmod -R 777 on the download folder, but I'd love to know how to actually have qBittorrent create new files with full permissions though I think this is a limitation of qBittorrent The second "issue" is that if I manually add a torrent, and Sonarr/Radarr are unaware of it, I manually move it upon completion to the permanent media folder. There's two ways I do this, either through the unRAID webui, but this sets the owner of the moved folder to root. If I do it through SMB/FTP as MYUSERNAME, then likewise the owner becomes MYUSERNAME. I'm curious if there's a way for me to move a folder and have it retain it's original owner (nobody). The final issue which has prompted me to look into a solution for number two as well as the reason I'm troubleshooting in the first place although it may be by design is that once I have moved the media folder and imported it into Sonarr/Radarr, I then run a function to rename the folder using a naming scheme, then I have it rename the files in the same way. When I do this I end up with the files being renamed properly and placed inside a new folder that is properly named as per the scheme but the original, now empty, folder is not being deleted. In summary I'm just looking at the possibility that the original folders aren't being deleted after everything is named and removed because Sonarr/Radarr runs as user nobody, but because I moved the folders there manually, they're now owned by either root or MYUSERNAME. Though it may be that Radarr/Sonarr do not attempt to delete old folders
February 10, 20251 yr Author I've signed into ftp as nobody, that was easier than I thought I apologize for not attempting that
February 10, 20251 yr Community Expert By the way, Unraid ver 7.0.0+ has a built-in file manager (Formerly, Dynamix File Manager plugin) that is designed to work with files on the Unraid array. The manual for using it can be found here: https://forums.unraid.net/topic/120982-dynamix-file-manager/#findComment-1105296
February 10, 20251 yr Author 4 minutes ago, Frank1940 said: By the way, Unraid ver 7.0.0+ has a built-in file manager (Formerly, Dynamix File Manager plugin) that is designed to work with files on the Unraid array. The manual for using it can be found here: https://forums.unraid.net/topic/120982-dynamix-file-manager/#findComment-1105296 Yes this is what I've been using, for the time being it looks like smb as nobody will work though
February 10, 20251 yr Community Expert 45 minutes ago, Jahagafut said: 50 minutes ago, Frank1940 said: By the way, Unraid ver 7.0.0+ has a built-in file manager (Formerly, Dynamix File Manager plugin) that is designed to work with files on the Unraid array. The manual for using it can be found here: https://forums.unraid.net/topic/120982-dynamix-file-manager/#findComment-1105296 Yes this is what I've been using, for the time being it looks like smb as nobody will work though @bonienl, Any comments...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.