FreeNAS 11.3 - Iocage Upgrade Killed PMS Server Settings

LOL

root@freenas:~ # ls -lah /mnt/FreeNAS/iocage/jails/plexmediaserver-plexpass/root/
total 310
drwxr-xr-x  21 root   wheel     25B Feb 28 14:07 .
drwxrwxr-x   4 root   wheel      8B Mar 20 13:17 ..
-rw-r--r--   2 root   wheel    957B Feb 28 14:08 .cshrc
-rw-r--r--   2 root   wheel    474B Feb 28 14:08 .profile
drwxr-xr-x   2 root   wheel     47B Mar 19 17:37 bin
-rwxrwxr-x   1 root   wheel    6.0K Feb 28 14:08 COPYRIGHT
dr-xr-xr-x  13 root   wheel    512B Mar 20 13:17 dev
drwxr-xr-x  27 root   wheel    108B Mar 20 13:17 etc
drwxr-xr-x   2 root   wheel      2B Feb 28 14:07 iocage_upgrade
drwxr-xr-x   4 root   wheel     59B Feb 28 14:04 lib
drwxr-xr-x   3 root   wheel      5B Jul  4  2019 libexec
drwxrwxrwx  13 Keith  shares    13B Jan 17 11:56 media
drwxr-xr-x   2 root   wheel      2B Jun 21  2018 mnt
drwxr-xr-x   2 root   wheel      2B Jun 21  2018 net
drwxr-xr-x   2 972    972        2B Nov 25 14:03 Plex
drwxr-xr-x  11 972    972       12B Mar 20 19:17 Plex Media Server
dr-xr-xr-x   2 root   wheel      2B Jun 21  2018 proc
drwxr-xr-x   2 root   wheel    149B Feb 28 14:04 rescue
drwxr-xr-x   2 root   wheel      8B Feb 28 14:04 root
drwxr-xr-x   2 root   wheel    138B Feb 28 14:04 sbin
drwxr-xr-x   1 root   wheel     11B Feb 28 14:04 sys -> usr/src/sys
drwxr-xr-x  62 root   wheel     67B Feb 28 14:04 tmp
drwxr-xr-x  14 root   wheel     14B Feb 28 14:04 usr
drwxr-xr-x  25 root   wheel     25B Feb 28 14:04 var

ok so you need to move /mnt/FreeNAS/iocage/jails/plexmediaserver-plexpass/root/Plex\ Media\ Server to the new place but this complicates things

lets do this; go to the new jail and do service plexmediaserver-plexpass start; service plexmediaserver-plexpass stop

This should create the default dir!

Now back to the host and:
mv /mnt/FreeNAS/iocage/jails/plexmediaserver-plexpass/root/Plex\ Media\ Server /mnt/FreeNAS/iocage/jails/plex/root/usr/local/plexdata-plexpass/ (I am assuming the new jail name is plex hre)

Once inside the new jail’s shell I if do service plexmediaserver-plexpass start; service plexmediaserver-plexpass stop and I get the following

plexmediaserver-plexpass does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable
plexmediaserver-plexpass does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable

I thought it was the jail so I deleted the jail, rebooted FreeNAS and tried to recreate the one I had called Plex but it said one with that name already existed even though there is NO dataset. Sigh.

So
I created a new jail called plexpass and started all over but I still get the same "does not exist error above

BE CAREFUL with deleting the jails, if you moved the data to that new jail already you will lose it!

As for the error looks like I either have a typo there but doesn’t seem so! You sure you installed plexmediaserver-plexpass in the jail ?

If you want beta builds in this step you would need pkg install plexmediaserver-plexpass not pkg install plexmediaserver

Maybe that’s the issue?

Sorry if that wasn’t clear in the initial post!

Yah, all of my data lives outside of the jails for this reason. Thank you for the reminder!

I will goof around with this more today. I killed the old jail and rebuilt it all over. I found that the

service plexmediaserver-plexpass start; service plexmediaserver-plexpass stop

Really needed to be
service plexmediaserver_plexpass onestart, and
service plexmediaserver_plexpass onestop based on the errors I was getting.

When I moved the data it put the files in the wrong spot on the destination. I have to sleuth out what it is really supposed to be but I definitely DID NOT get the plexdata-plexpass dir I had to create it.

The other weird thing that has been occuring since my iocage upgrade to 11.3 is that my server randomly reboots when I start/stop/change a jail. For example, I just stopped my new jail to delete it and start over to confirm that I am installing the Plex Pass flavor and it rebooted when I stopped the jail.

OK, Plex is installed in the new jail and it works.

I still have to move but when I try this:

mv /mnt/FreeNAS/iocage/jails/plexmediaserver-plexpass/root/Plex\ Media\ Server /mnt/FreeNAS/iocage/jails/plex/root/usr/local/plexdata-plexpass/

I get this:

mv : rename mv /mnt/FreeNAS/iocage/jails/plexmediaserver-plexpass/root/Plex Media Server to/mnt/FreeNAS/iocage/jails/plex/root/usr/local/plexdata-plexpass/: No such file or directory

I can clearly see the plexdata-plexpass destination directory exists. Could it be the backslashes in the source path?

I’m so close and it only took a week and about 10 tries. :wink:

The error is odd, the path looks ok and you do need "\ " to escape spaces!

Try using autocomplete for the paths (you can use the TAB key for that (i.e start typing /mnt/Free (TAB here) you’ll see what I mean)

Alternatively try:

mv /mnt/FreeNAS/iocage/jails/plexmediaserver-plexpass/root/Plex* /mnt/FreeNAS/iocage/jails/plex/root/usr/local/plexdata-plexpass/

This will move all that starts with “Plex” which is fine

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.