SOLVED sickbeard Failed to set permission error

Status
Not open for further replies.

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
The error:
Failed to set permission for /mnt/media/tvshows/General/SHOWNAME/Showname - S12E33.mkv to 664

I'm in the onset of setting everything up with my FreeNAS steup.
I have a single datastore called media. It is set up with windows permissions and owned by htpc:htpc ( rwxrwxr-x+)

Obviously sickbeard plugin is run as media (816), which is a member of htpc group. the tvshows folder is set to media:htpc (drwxrwxr-x+), as are all the subsequent sub directories.

I understand that 664 would be rw-rw-r--, but I don't you need x for media files? or would 664 be sufficient? Also, since sickbeard runs as media (816) which exists on the jail and the FN system, why wouldn't it be able to change the permissions as the owner of the folder?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I read the facts, but I'm feeling a bit dense and don't see the issue.
in what userland is sickbeard in the htpc group? The FreeNAS host or the jail sickbeard is installed to?
 

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
FreeNAS host
htpc group (1001) members:
htpc (1001)
media (816)
johndoe (1002)

Sickbeard Jail
cat /etc/group
htpc:*:1001:media
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
from the information you've given me it should work. but I know nothing about windows permissions so I don't know if that complicates things.
 

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
Thank you. I am glad I'm not imaging an issue. I can't imagine how windows permissions would be a big issue here. I tried as root and I got a permission denied as well.

My NFS share does have Maproot User: set to media, for any odd mapping issue that could have occured
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thank you. I am glad I'm not imaging an issue. I can't imagine how windows permissions would be a big issue here. I tried as root and I got a permission denied as well.

My NFS share does have Maproot User: set to media, for any odd mapping issue that could have occured
if root can't do it, something else is going on here that isn't standard Unix permissions.
 

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
I tried as root from the FreeNAS host, and has the same issue. I can't understand how that's even possible.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The problem is that your dataset is set for Windows permissions, which means it uses Windows ACLs rather than standard Unix permissions. When that is set, you won't be able to use chmod/chown in that dataset. You may be able to resolve this issue by switching the dataset to use Unix permissions instead.
 

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
Will I need to reboot? I did a quick test with not good results. I have to step out for a few, but I'll pick up shortly.
 

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
So I believe the problem has to do with extended attributes

/mnt/xxx/media# lsattr
---------------- ./downloads
---------------- ./movies
---------------- ./tvshows

I'm not the most knowledgeable, but my 2 choices are:
1. Find a way to recursively strip extended attributes
2. delete and re-create the datashare. Long as it is named the same, my remote mount points should all still work.

Any thoughts to removing all the attributes?

Additional information:

It looks like the additional permissions came from creating a CIFS share. I never had extended attributes until I did that. But now, it seems that everything is working as expected... further testing though tomorrow.
 
Last edited:
Status
Not open for further replies.
Top