Permissions issues when importing new episodes

Sonarr version (exact version): 2.0.0.5338
Mono version (if Sonarr is not running on Windows): 6.0.0
OS: Arch
Debug logs: https://pastebin.com/0Y6DjStg (sonarr.debug.txt)
Description of issue: Hi, Sonarr throws a Access to the path is denied. ---> System.IO.IOException: Operation not permitted exception when importing new episodes and I can’t figure out why.

  1. SABnzbd downloads the episode to /media/remote/downloads/[directory]/[filename].mkv.
  2. The episode is copied to /media/remote/series/[series name]/Season [season]/[episode].mkv.partial~
  3. Once the copy operation is complete (i.e. the .partial~ file has the same size as the original file, it keeps the .partial~ ending), Sonarr throws the exception

When running a shell as user sonarr (the user running Sonarr), I can read / write every file in /media/remote/downloads as well as /media/remote/series and I could read / rename the .partial~ file manually as sonarr. So what path does Sonarr not have access to?

Permissions in both directories:

[sonarr@nuc /]$ ls -la /media/remote/downloads/Rick.and.Morty.S03E02.Rickmancing.the.Stone.1080p.BluRay.REMUX.AVC.TrueHD.5.1-EPSiLON/
total 1854468
drwxrwxrwx 1 taytm taytm       4096 Nov 10 10:16 .
drwxrwxrwx 1 taytm taytm       4096 Nov 10 09:50 ..
-rwxrwxrwx 1 taytm taytm         61 Nov 10 09:50 07611171.txt
-rwxrwxrwx 1 taytm taytm 1898961058 Nov 10 09:50 imZ3pfG1gyHDSB.mkv
[sonarr@nuc /]$ ls -la /media/remote/series/Rick\ and\ Morty/Season\ 3/
total 1854464
drwxrwxrwx 1 taytm taytm       4096 Nov 10 10:16 .
drwxrwxrwx 1 taytm taytm       4096 Nov 10 09:50 ..
-rwxrwxrwx 1 taytm taytm 1898961058 Nov 10 10:16 Rick.and.Morty.S03E02.Rickmancing.the.Stone.1080p.BluRay.REMUX.AVC.TrueHD.5.1-EPSiLON.mkv.partial~

Thanks

Still no idea why it says that it couldn’t access some directory, but it works when I mount the fuse file system with the Sonarr user.

Does the same issue occur with mono 5.20? Mono 6.0 may be the issue here (there is some internal weirdness with it that causes things to fail when they should have succeeded).

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.