FreeNAS 11.1-U2 Plex Jail issues

Status
Not open for further replies.

finsfree

Dabbler
Joined
Jan 7, 2015
Messages
46
This is the first time I have tried to use Plex as a Jail on FreeNAS 11.1-U2.

Everything was going fine until I got to the part where I started to "Add Folders" in Plex. I am not seeing the root folder (/). Even if I manually type out the path it doesn't see it. By default, when I open "Add Folder" in Plex I'm brought to /var/db/plexdata/Plex Media Server.
upload_2018-3-15_16-57-16.png
 
Last edited:

mjt5282

Contributor
Joined
Mar 19, 2013
Messages
139
have you added the storage mount points in the Jails gui already? Or in the iocage command line?
 

finsfree

Dabbler
Joined
Jan 7, 2015
Messages
46
have you added the storage mount points in the Jails gui already? Or in the iocage command line?

I added the mount point in the jail's GUI.
upload_2018-3-16_8-40-33.png
 

finsfree

Dabbler
Joined
Jan 7, 2015
Messages
46
Here's a screenshot of the source and destination setup.
upload_2018-3-16_8-43-44.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
One note and a suggestion:

I note that your definition inside the jail is in all lower case, while the dir on the host FreeNAS starts with a cap (i.e. Media --> media)

Have you had a look inside the jail at the permissions on that directory?

jls to find the number of the jail, then jexec <number> csh to get a command prompt in the jail, then use ls -l in the jail filesystem to find the permissions and for which user.

If you see numbers instead of usernames, that's a guarantee to show that you haven't got your plex user aligned in the Jail and FreeNAS to have permission over the files.

A really non-secure way to fix it without going into the issues of user setup would be chmod -R 777 /media

Otherwise, there are a few articles you should be able to find describing user and permissions setup in a jail.
 

Zwck

Patron
Joined
Oct 27, 2016
Messages
371
Hi,
delete your plugin jail
Before you start figure out what the UID and GID is that owns your media dataset, then follow these easy steps



#iocage plugin super easy
#open a shell
Code:
Code:
iocage fetch --plugins ip4_addr="igb0|192.168.0.112/24"



#type 13 enter and plex with plexpass will be installed (if you choose not to use the plexpass option hit 12 and delete the _plexpass


Code:
Code:
iocage console plex
service plexmediaserver_plexpass onestop
pw groupmod plex -n plex -g 1000 #1000 is my UID and GID
pw usermod plex -n plex -u 1000 -g 1000
chown -R plex:plex /usr/local/plexdata-plexpass
service plexmediaserver_plexpass onestart



# open a new shell
#add YOUR MOUNTS mounts...
Code:
Code:
iocage fstab -a plex /mnt/volume01/multimedia /multimedia01 nullfs rw 0 0
iocage fstab -a plex /mnt/volume02/multimedia /multimedia02 nullfs rw 0 0
iocage fstab -a plex /mnt/volume01/db/ssl/user-certs /certs nullfs rw 0 0



go to http://192.168.0.112:32400/web

when you are adding your datasets with in plex you then have to type /multimedia01/tvshows or whatever
 
Last edited:
Status
Not open for further replies.
Top