Sonarr version (exact version): 2.0.0.4472 Mono version (if Sonarr is not running on Windows): 4.6.2 (Stable 4.6.2.7/08fd525 Wed Jan 11 15:34:23 CET 2017) OS: DSM 6.0.2-8451 Update 9 ((Debug logs)): https://www.dropbox.com/s/kk7y8z1yx152b9r/sonarr.txt?dl=0 (Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here) Description of issue: Import is failing on every download that contains an mkv file, the error is that access to the path is denied. It’s not failing on any downloads that have mp4. All are going to the same folder /volume1/incoming-tv) and all are being downloaded by Transmission.
Background: Was working great, I got a notice to update Sonarr and did so. After that it couldn’t start, trying to start it would just immediately go back to “stopped”. I uninstalled and then reinstalled the spk and this is the result - working OK with everything but mkv files, the error seems not to be correct - owner is transmission and group is users for all downloads, and permissions 764.
Sonarr runs under the nzbdrone user by default, which is part of the sc-media group by default. The only difference that comes to mind with would be files in folders and files not in folder if there are permission differences on the files in folders vs ones not in folders.
It’s the same for mp4 files that are imported properly:
-rw-rw-r-- 1 transmission users 73773205 Feb 24 20:48 American.Dad.S09E11.HDTV.x264-KILLERS.mp4
It’s really puzzling. They’re all world-readable. I’ve thought maybe something weird with the directory names but there are some that have nothing in common with each other.
OK I figured this out, thanks to another post that came up as a Suggested Topic.
The problem is permissions (of course) on the destination directory. Season subdirectories were drwxr–r-- and owned by rutorrent. It seems to be limited to subdirectories that would have been created by Sonarr in the previous installation. But it just created a new subdirectory for season 8 or Archer with the correct nzbdrone user and imported that episode without a problem. So I’m not sure why that user and permissions are on those subdirectories but I’m going to fix it and keep an eye out for new seasons to see if all goes the way it should.
If Sonarr is trying to hardlink the file it will likely need write access, but that error could also be coming from the destination of the import. ((Debug logs)) will show both the source and the destination, Sonarr will need write access on the destination.