Re-install plugins using pkg method

Status
Not open for further replies.

carleycr

Patron
Joined
May 2, 2014
Messages
233
Thanks again for confirming and your help.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
Ok, so I have reset everything back to default 9.3 and have been setting up FreeNAS from scratch. Decided this would be better than troubleshooting why stuff wasn't working properly.

How do I change the permissions of the newly created /mnt/media storage location in the new jail so I have write permissions to it? I have a NFS share setup to access it and I need to copy my existing data to that location.

I noticed my media data is not in a dataset. It's in the jail. Is this normal based on your guide?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, so I have reset everything back to default 9.3 and have been setting up FreeNAS from scratch. Decided this would be better than troubleshooting why stuff wasn't working properly.

How do I change the permissions of the newly created /mnt/media storage location in the new jail so I have write permissions to it? I have a NFS share setup to access it and I need to copy my existing data to that location.

I noticed my media data is not in a dataset. It's in the jail. Is this normal based on your guide?
by my guide do you mean my blog or my thread on permissions? I recommend your media be on a dataset mounted into your jail, this way you can snapshot/change permissions on this dataset without messing up your plugins.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
Sorry, I'm referring to your blog. So I think I'm confused on this a little. When I downloaded Sab and it created it's own jail, isn't that a dataset? Then within that dataset I created folders under /mnt/media. So the full path is /mnt/Vol1/jails_2/sabnzbd_1/mnt/media.

If they are datasets I now have two datasets that I need to move data from one to the other. Below is the permissions if that helps at all.

Screen Shot 2015-02-07 at 10.06.56 PM.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry, I'm referring to your blog. So I think I'm confused on this a little. When I downloaded Sab and it created it's own jail, isn't that a dataset? Then within that dataset I created folders under /mnt/media. So the full path is /mnt/Vol1/jails_2/sabnzbd_1/mnt/media.

If they are datasets I now have two datasets that I need to move data from one to the other. Below is the permissions if that helps at all.

View attachment 6605
Yes, the sabnzbd jail is a dataset, but you also want another dataset for your media so even if you delete or have problems with your jail your data is separate. It also makes changing permissions easier without screwing up your plugin/jail.

Sounds like you missed some steps in my blog post. You should have created a media dataset and mounted into the sabnzbd jail. You would also have changed ownership during the 'chown' step.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
Well I have the media dataset created and added in the jail as storage (screen shot below). Also below are the permissions to that dataset. I've ran the chown command again, restarted nfs service and remounted the share locations with no luck of being able to copy to it. I am also unable to download files with transmission. It gives me "Unable to save. Permission denied. Permissions in transmission are 777. My media user is and groups is 816.

Screen Shot 2015-02-08 at 11.24.41 AM.png
Screen Shot 2015-02-08 at 11.35.20 AM.png
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Well I have the media dataset created and added in the jail as storage (screen shot below). Also below are the permissions to that dataset. I've ran the chown command again, restarted nfs service and remounted the share locations with no luck of being able to copy to it. I am also unable to download files with transmission. It gives me "Unable to save. Permission denied. Permissions in transmission are 777. My media user is and groups is 816.

View attachment 6606 View attachment 6608
NFS
Your media dataset is not writable by anyone but the 816 user/group. Either loosen these permissions to allow other writing or make sure users that access through NFS are UID 816 or mapped to 816. I personally recommend you set mapall User=816 for your NFS share.

transmission
setting the transmission permission setting only change permissions for written files. This does not change transmission's ability to write anything. On my blog I set transmission's user to media. This should allow it to write to your dataset.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
Ok, I finally got the NFS share to be able to write to it. THANK YOU VERY MUCH! Before you responded I actually started copying my media from my old jail location to the media dataset via command line using "rsync -Pva" command. It's only about half way through my movies right now. Would this for some reason cause me to not be able to stop my plugins? I'm unable to stop transmission via command line or GUI so I can update permissions.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, I finally got the NFS share to be able to write to it. THANK YOU VERY MUCH! Before you responded I actually started copying my media from my old jail location to the media dataset via command line using "rsync -Pva" command. It's only about half way through my movies right now. Would this for some reason cause me to not be able to stop my plugins? I'm unable to stop transmission via command line or GUI so I can update permissions.
your free to stop/start the jails, it wont mess up the transfer as long as you pointed directly to the actual dataset location not the one in the jail.

transmission cant stop/start? maybe you changing the user while it was running was the cause? I believe restarting the jail should fix that though.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
I think this might be a bug. I updated 9.3 using the GUI yesterday and ever since then I have not been able to see available plugins...again. I still can't see them, but now I can't start any plugins using command line or GUI. I've restered the jail multiple times. Here's the error I'm getting. Do you think I should either update again using the downloaded file or just go back to original install? If I go back to original install I'll have to re-setup everything again won't I? If I backup the config and re-upload that I'll just have the same issue.

Screen Shot 2015-02-08 at 4.03.35 PM.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think this might be a bug. I updated 9.3 using the GUI yesterday and ever since then I have not been able to see available plugins...again. I still can't see them, but now I can't start any plugins using command line or GUI. I've restered the jail multiple times. Here's the error I'm getting. Do you think I should either update again using the downloaded file or just go back to original install? If I go back to original install I'll have to re-setup everything again won't I? If I backup the config and re-upload that I'll just have the same issue.

View attachment 6614
That's not a bug with the plugin system. Looks like the permissions of your jail got screwed up somehow.

Did you happen to change ownership/permissions of your jail/plugins dataset?
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
Honestly, who knows! I most likely did. What should they/it be based on your blog?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Honestly, who knows! I most likely did. What should they/it be based on your blog?
you should never change the ownership/permissions of the jail/plugins datasets. These are operating system + application files that need specific ownership/permissions to run.

If you follow by blog exactly you change the ownership of the media dataset (which is mounted into the jail) to user "media" (UID=816). It's the 'chown' step.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
I assume theres no way to fix this? I ran that chown command exactly like it is in your blog. The plugins were working earlier today/last night. So I'm not quite sure why all of a sudden they're not. Just might have to start from scratch once more it sounds like.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I assume theres no way to fix this? I ran that chown command exactly like it is in your blog. The plugins were working earlier today/last night. So I'm not quite sure why all of a sudden they're not. Just might have to start from scratch once more it sounds like.
that shouldn't have happened then. Never happened to me but usually when I see it happen it's because a user changed permissions for their jail/plugins dataset, (either through the chmod/chown command or on the Storage tab).

You might be able to fix it if you have a snapshot of your broken jail(s). But what I recommend is setting up a new jail+plugins and copy over your data-directories from the broken jail. Then once you start your plugins theyll be identically setup.
 

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
Hey Joshua,

Just curious, but when are you thinking you will have the ownCloud 8 plugin to use? Can't wait to try it out after seeing the video with the new features, seems they streamlined it nicely.
 

Joshua Parker Ruehlig

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

Just curious, but when are you thinking you will have the ownCloud 8 plugin to use? Can't wait to try it out after seeing the video with the new features, seems they streamlined it nicely.
im not sure how long it'll take me. there's quite a bit I need to change. I'd wager from 2weeks to a month, but hopefully less.

if you're up to the challenge you can setup an owncloud jail according to the tutorials in the How-To section. you could just modify a few things to install OC8 instead.
 

ResentedPoet

Dabbler
Joined
Jan 14, 2015
Messages
12
im not sure how long it'll take me. there's quite a bit I need to change. I'd wager from 2weeks to a month, but hopefully less.

if you're up to the challenge you can setup an owncloud jail according to the tutorials in the How-To section. you could just modify a few things to install OC8 instead.
Cool. Then it wouldjust be as simple asbacking up the config, do the install of the plugin when it arrives.

May just do that, thanks.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Cool. Then it wouldjust be as simple asbacking up the config, do the install of the plugin when it arrives.

May just do that, thanks.
you mean would it be that simple to move from an OC jail to a plugin install? you'd also need to backup and restore your database so it's not super simple.
 

carleycr

Patron
Joined
May 2, 2014
Messages
233
Joshua, I have successfully have a new 9.3 stable version running the plugins and seems to be working as far as grabbing media. However, I just tried to access Sickrage and I'm getting an error which I've attached. I did restart the service via ssh and it was able to stop and start with no errors. Any ideas? Once I get that figured out, I need to see why it's not automatically creating season folders for tv shows as well.
 
Status
Not open for further replies.
Top