Messed up my jails permissions. Anyway to reset them?

Status
Not open for further replies.

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
Hi,

First time FreeNAS user (long time linux user) but, I made a major mistake the other day when trying to set up the file permissions between a couple of my shared drives and Transmission/CouchPototo, and in my rush to get it all working messed up all of my different jail's permissions along the way. Now, owncloud,Plex or anything else isn't working correctly.

Is there any way to reset a jail's file permissions (without losing data) or, will I have to start all over again?
 
Joined
Mar 6, 2014
Messages
686
Sure, but we need a little more data. What are your shared folders? What are your jails? How are are the shared dataset folders' permissions set up now (owner users, groups)? How do you WANT to have it?
Trust me, this shouldn't be hard to fix, i am a newbie, faced similar problems and got it working again :)

Also, have a look at this thread, which might give you some pointers.
 

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
Sure, but we need a little more data. What are your shared folders? What are your jails? How are are the shared dataset folders' permissions set up now (owner users, groups)? How do you WANT to have it?
Trust me, this shouldn't be hard to fix, i am a newbie, faced similar problems and got it working again :)

Also, have a look at this thread, which might give you some pointers.
Hey Rilo,

I have a Plex Media server jail, couch potato, owncloud, sickrage and transmission. I have 4 volumes in total, one being a media drive, second cloud storage and third backup (for time machine) an a small 250GB volume for transmission downloads. The problem I seem to be having (on top of all the jailed apps not working due to permission problems) that spurred this is Couch Potato. For some reason after a torrent was finished, it could not copy the file over to the other drive due to it not having permission (according to the log files). So, I placed all my volumes under the user/group nobody/nogroup with read/write permissions for all (and set recursively).

how I would liek to have it set up is securely, so that each drive has file access to the others. I would prefer it be under one owner/group just for simplicity between all my jails/drives/volumes/shares/etc.

Thanks again!
 
Joined
Mar 6, 2014
Messages
686
You should really have a look at the thread I mentioned. Your problem is answered there. I'm busy at work right now, if you are not able to figure it out by tonight, I can give you some step by step instructions if you like. But try to figure things out, you will learn from it. Read a little bit on the subject. Basic idea is to make the app users in the jails member of a group in that jail with the same name and ID as the group owner of the dataset (outside of the jail) . Of course you have to give that dataset group owner read write permissions recursively. I'll check back tonight
 

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
Hello again Rilo,

Between your link and going back over what happened, I think I know where I went wrong, but still wasn't able to bring it back 100% working. Did a factory restore and started over again, got everything working this time with one small exception. Sick rage for some reason after it finishes a download, doesn't auto post process and move the files over. However, if I force a manual post process through the web ui, no problems. Couch potato works flawlessly.
 
Joined
Mar 6, 2014
Messages
686
Hi there,

Great to hear you got it working again, and even better: you know now what went wrong. Now you will probably never make the same mistake again :D. Or at least know how to solve these issues. A factory restore would probably not have been needed...

Strange that SickRage doesn't move the files, but CouchPotato does.... I don't think that the shares' permissions are the issue here. I know that in SickBeard, there is a setting that arranges the file permissions of downloaded/processed files, i would guess SickRage has that too somewhere. My first guess would be to look for these settings. Do you maybe have to set some special permissions or location for the postprocessing script (can't remember i had to do that, so this is just a wild guess).

Perhaps the plugin section of this forum can be of some use? A quick peek gave me these:
SickRage postprocessing issue
SABnzbd/SickRage/CouchPotato/Transmission In One Jail This also has a reference to an external website which you could check

Maybe check the SickRage forum?

If this doesn't help you, just ask your question in the plugins section. More people can help ;)
 

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
Hello again Rilo,

Went through the information you gave me, did some more research and still had nothing working. Went as far as removing the download drive all together and starting from scratch with the same results.

Finally figure it out about 30 minutes ago though. I had to put my directories on my download in another sub folder for them to work. Instead of /media/complete, /media/incomplete and /media/torrents, I went with /media/downloads/complete, etc....

So far now Sickrage has been working flawlessly at transferring and post processing the data beautifully. Love the renaming and the whole automation of it all, was doing manually for the longest time. Now to integrate Couchpotato again and be all set :)

Thanks again! Now if there was only a way to update owncloud and the other plugin apps easily.....
 
Joined
Mar 6, 2014
Messages
686
It works now, great! Glad i could help!

I read on the forums here that updating plugins sometimes is a pain. I have not used any other plugin than BTsync, updated once via the update option and that worked flawlessly. I use Plex, but i installed that in a jail maunally, as per the thread i gave the link to earlier. Updating works flawlessly, and you don't have to rely on the people maintaining the plugin. Many plugins seem not to be maintained that well. Future of the current plugin system is questionable anyway, as pointed out here. Seems that everything is moving towards VMs.

Anyway, cyberjock wrote a script that updates al jails at once. I'm not sure if it works for 9.3, but maybe you can get it to work.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
It should work on 9.3 as it only relies on pkg-ng working (which should be working since it is the predominant package manager on FreeBSD).
 

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
Hi cyberjock,

Thanks for the answer about the script working on Freenas 9.3

I see that the link Rilo linked to is for Logitech Media Server, do you have a script to update the plugin inside the jail that Freenas creates for Plex? That would be awesome to have!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Nope. I don't do plugins because they create too many limitations that I don't like. :)
 
Status
Not open for further replies.
Top