Couldn't import episode /mnt/Media/Download-complete/Family.Guy.S18E04.1080p.WEB.x264-TBS[rarbg]/family.guy.s18e04.1080p.web.x264-tbs.mkv: Access to the path is denied.
My research suggests this is because the Samba share has been assigned write permissions only for the user that mounted it (dietpi) because this is how Linux handles user access to external NTFS storage. So I'm thinking the answer is just to have Sonarr run as the dietpi user. But how do I do this?
It's notable that Transmission has no trouble writing to the drive. It doesn't seem to have a dedicated user so I'm assuming it launches as the dietpi user.
Having same issue on my raspberry pi 3b+ on dietpi.
I can see Sonarr and Radarr start copy process but it just says PARTIAL file and when it reaches the right file size then it just deletes the file and starts over.
My permissions are set to everyone and every group can read/write.
I'm about to go purchase a new raspberry pi 4 to take advantage of the USB3.0 but i think ill go with raspbian minimal install and just install all apps using another tool.
Please post if you can figure an answer for this issue.
@Flipbug
When you mounted the NTFS drive via dietpi-drive_manager, it emulates UNIX permissions via ntfs-3g service, so no need to set a fixed user+group for that mount, but assure that the dir+files is owned by dietpi group with 775/664 permissions (so the whole group has write permissions, not just the dietpi user).
If you mounted it manually, assure that the fstab entry contains the "permissions" option, respectively mount command with "-o permissions".
@beachbum0727
Please also go through the above hits. Which file system does your external drive have?
I'm wondering if the issue is being caused by Transmission locking the file. I've seen similar behaviour on Windows with torrent clients. How can I get Transmission to release the file after downloading and seeding for a duration? Or should i just use a different torrent client?
Switched to Qbittorrent. Same issue. It must be a permissions problem, but as far as I can tell, the permissions are fine... The torrent clients can freely write to this drive and move files around, it's just Sonarr that can't.
install sonarr <- I can't find the command for this. I tried installing via the Dietpi-software installer but it overwrote my mono changes and installed the new version.
Last edited by Flipbug on Fri Nov 08, 2019 5:25 am, edited 5 times in total.
For NTFS you can work around the issue by adding the "permissions" mount option (default when using dietpi-drive_manager), which emulates permissions, so chown and chmod can be used and Mono succeeds series import. For FAT variants there seem to be no way besides degrading to Mono 5, e.g. by removing the Mono APT repository, purge the package and reinstall from Raspbian/Debian repository.
But generally I recommend to use file systems which are natively supported by Linux, like ext4, btrfs and such, which do not have the high CPU usage and R/W access. If you need access from Windows, a network drive is the more comfortable solution anyway, so no physical unplug/plug required?
For NTFS you can work around the issue by adding the "permissions" mount option (default when using dietpi-drive_manager), which emulates permissions, so chown and chmod can be used and Mono succeeds series import. For FAT variants there seem to be no way besides degrading to Mono 5, e.g. by removing the Mono APT repository, purge the package and reinstall from Raspbian/Debian repository.
But generally I recommend to use file systems which are natively supported by Linux, like ext4, btrfs and such, which do not have the high CPU usage and R/W access. If you need access from Windows, a network drive is the more comfortable solution anyway, so no physical unplug/plug required?
Makes sense! When I get my new drive I'll use ext4 It makes sense to keep the performance cost down for the Raspberry Pi as much as possible.
In the meantime if my Mono downgrade doesn't work I'll probably just stick with manual transfers until then.