Torrents not getting new user group permissions (chmod/chown) in linux

Sonarr version (exact version): 2.0.0.4146
Mono version (if Sonarr is not running on Windows):
OS: Ubuntu4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
Description of issue:

It appears when retrieving data from a torrent (transmission daemon), the chgrp/chown feature in the permission section is not being applied.

Files are being correctly pulled in, sorted and renamed, except they keep the permissions associated with the transmission user.

Thanks

What do the logs show?

Here is the sanitized logs.

6-6-10 14:38:42.1|Warn|MediaFileAttributeService|Unable to apply permissions to: /file.mp4
[v2.0.0.4146] NzbDrone.Mono.LinuxPermissionsException: Error setting file permissions: EPERM
at NzbDrone.Mono.DiskProvider.SetPermissions (System.String path, System.String mask) [0x0003e] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Mono\DiskProvider.cs:140
at NzbDrone.Mono.DiskProvider.SetPermissions (System.String path, System.String mask, System.String user, System.String group) [0x00000] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Mono\DiskProvider.cs:82
at NzbDrone.Core.MediaFiles.MediaFileAttributeService.SetMonoPermissions (System.String path, System.String permissions) [0x0000f] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaFileAttributeService.cs:88

Its failing to change the permissions. Only root can change the owner (or give files away), at best you’re going to be able to change the group unless you’re running Sonarr as root (which you shouldn’t).

Doesnt Sonarr copy the file, not move it from a torrent? Allowing it to seed and taking a copy for sorting?

I may be off, but i thought when copying, you gain ownership of the files, unless you specifically tell it not to?

Cory or hardlink depending on the same, I’m not sure how permissions apply in those cases, but the error is coming from the OS, so something is preventing it from changing.

You are right. Its an OS level error, which implies Sonarr is trying to change something, but cannot.
I will have to mess around with the group and uname settings for the flies output.

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