Ok, gotcha. I was confused because the discussion was asking about CLI setup and those paths are not appropriate for that.
Rather than try to troubleshoot your setup, I thought it might be more useful to tell you how I set mine up. These commands have worked perfectly for me, I've repeated them several times, and used them on 11.1-U6 and 11.2 RC1 through 11.2 stable (have not set up on U-1 or U-2 but the jails have continued operating in both).
Note, I didn't use the pkg.json because the jails never set up properly when I did. I also installed Plex from ports.
Now for share permissions. My share is a unix share, owned by user nobody, owned by group media. Plex has user ID 972, /nonexistent home, and is a member of the media group. I did NOT add the media group to my jail.
From the CLI:
Code:
iocage create -n "Plex" -r 11.2-RELEASE ip4_addr="vnet0|IP.OF.YOUR.JAIL" defaultrouter=" IP.OF.YOUR.ROUTER" vnet="on" allow_raw_sockets="1" boot="on"
Note: The template should match your version of FreeNAS.
Code:
iocage fstab -a Plex "/mnt/mynas/media /media/mymedia nullfs rw 0 0"
Note: the SECOND path directory MUST exist in the jail before you start the jail. You can use the CLI or FTP in to make sure they exist.
Code:
iocage fstab -a Plex "/mnt/Primary/appconfigs/Plex /config nullfs rw 0 0"
Note: the FIRST path directory MUST exist in the NAS before you start the jail
Jexec into jail:
Code:
cd /usr/ports/multimedia/plexmediaserver-plexpass/ && make install clean
-OR-
cd /usr/ports/multimedia/plexmediaserver/ && make install clean (if you don't have a plexpass)
Code:
sysrc plexmediaserver_plexpass_enable=YES
Then exit your jail
Code:
iocage exec Plex chown -R plex:plex /config
Code:
iocage exec Plex sysrc plexmediaserver_plexpass_support_path="/config"
Jexec back into the jail
Code:
service plexmediaserver_plexpass start
I hope that helps.