Plex Iocage jail disappeared after upgrade

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
I have tried top upgrade twice from 11.3-U5 to 12.0 both times the plex iocage jail disappeared. After reverting back to 11.3 good old plex is still in one piece. I've been through the forums and don't find anything specific.
Truenas Jails.PNG
 

G8One2

Patron
Joined
Jan 2, 2017
Messages
248
11.3 RELEASE versions of PLEX are not compatible with current RELEASE version 12. You need to upgrade your plex jail to the latest version, 11.3 RELEASE is end of life
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
Thanks for the info but I tried that. I presume the only/best method is to create a new one. Great!
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
OK I tried to update, once again, to 12,0 and got the same reaction no JID for the iocage jail. Tried both of the following entries over two days

Code:
iocage upgrade plex -r 12.1-RELEASE
iocage upgrade -r 12.1-RELEASE plex


The entries appeared to work as they both downloaded 12.1 for plex. I was asked many times if the information was correct and finally was advised that plex had been upgraded but lots of entries would be deleted before the upgrade was finished. Nothing further happened. 24 hours later still no upgrade was achieved for either entry. I rebooted. Tried to restart the jail, tried to update the jail, No change, still on 11.3 U5 no JID. So once again reverted to 11.3 U5 and everything works perfectly. I'm lost! I really do not want to create a new jail from scratch as I have a large music and movie library.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You cannot run a 12.1 jail on 11.3 if that is what you tried. What is the output of iocage list and iocage start?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
There won't be a JID unless the jail is running. If you just want to get plex running and up to date you could upgrade the jail to 11.4 and wait to upgrade FreeNAS at a later date. iocage upgrade plex -r 11.4-RELEASE
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
Thanks for responding Guys, I was in 12 and tried to upgrade the jail to 12.1 went through the whole process and it wouldn't upgrade. I'm now back in 11.3 and tried to upgrade to 11.4. Impossible tried it 3 times now. Jail still works though, for now. Suggestions?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Any way you could copy and paste the error here in code tags? Kinda hard to diagnose without the actual error message.
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
I tried again for 11.4
Code:
root@freenas[~]# iocage upgrade plex -r 11.4-RELEASE
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 11.3-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
src/src world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y

Fetching metadata signature for 11.4-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

Fetching files from 11.3-RELEASE for merging... done.
Preparing to download files... done.
Attempting to automatically merge changes in files... done.

The following changes, which occurred between FreeBSD 11.3-RELEASE and
FreeBSD 11.4-RELEASE have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.3/etc/group 294896 2016-01-27 06:28:56Z araujo $
+# $FreeBSD: releng/11.4/etc/group 359448 2020-03-30 17:11:21Z brooks $
#
wheel:*:0:root
daemon:*:1:
kmem:*:2:
sys:*:3:
@@ -29,8 +29,9 @@
network:*:69:
audit:*:77:
www:*:80:
_ypldap:*:160:
hast:*:845:
+tests:*:977:
nogroup:*:65533:
nobody:*:65534:
plex:*:972:
Does this look reasonable (y/n)? Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 11.3-RELEASE and
FreeBSD 11.4-RELEASE have been merged into /etc/master.passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.3/etc/master.passwd 299365 2016-05-10 12:47:36Z bcr $
+# $FreeBSD: releng/11.4/etc/master.passwd 359448 2020-03-30 17:11:21Z brooks $
#
root::0:0::0:0:Charlie &:/root:/bin/csh
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
@@ -22,7 +22,8 @@
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
auditdistd:*:78:77::0:0:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin
www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
_ypldap:*:160:160::0:0:YP LDAP unprivileged user:/var/empty:/usr/sbin/nologin
hast:*:845:845::0:0:HAST unprivileged user:/var/empty:/usr/sbin/nologin
+tests:*:977:977::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
plex:*:972:972::0:0:Plex Media Server:/nonexistent:/usr/sbin/nologin
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 11.3-RELEASE and
FreeBSD 11.4-RELEASE have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.3/etc/master.passwd 299365 2016-05-10 12:47:36Z bcr $
+# $FreeBSD: releng/11.4/etc/master.passwd 359448 2020-03-30 17:11:21Z brooks $
#
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5:System &:/:/usr/sbin/nologin
@@ -22,7 +22,8 @@
pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin
auditdistd:*:78:77:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
_ypldap:*:160:160:YP LDAP unprivileged user:/var/empty:/usr/sbin/nologin
hast:*:845:845:HAST unprivileged user:/var/empty:/usr/sbin/nologin
+tests:*:977:977:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
plex:*:972:972:Plex Media Server:/nonexistent:/usr/sbin/nologin
Does this look reasonable (y/n)? y
The following files will be removed as part of updating to
11.4-RELEASE-p5:
/sbin/ipftest
/sbin/ipresend
/usr/include/c++/v1/experimental/any
/usr/include/c++/v1/experimental/chrono
/usr/include/c++/v1/experimental/numeric
/usr/include/c++/v1/experimental/optional
/usr/include/c++/v1/experimental/ratio
/usr/include/c++/v1/experimental/string_view
/usr/include/c++/v1/experimental/system_error
/usr/include/c++/v1/experimental/tuple
/usr/include/ssp
/usr/include/ssp/ssp.h
/usr/include/ssp/stdio.h
/usr/include/ssp/string.h
/usr/include/ssp/unistd.h
/usr/lib/clang/8.0.0
/usr/lib/clang/8.0.0/include
/usr/lib/clang/8.0.0/include/__clang_cuda_builtin_vars.h
/usr/lib/clang/8.0.0/include/__clang_cuda_cmath.h
/usr/lib/clang/8.0.0/include/__clang_cuda_complex_builtins.h
/usr/lib/clang/8.0.0/include/__clang_cuda_device_functions.h
--More--(byte 830)


I wait 10 minutes, FreeNAS reboots and we're back to 11.3
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
At the "more" prompt you are supposed to read through the list by hitting the "space" key repeatedly or "q" to exit altogether.

As for the reboot - no clue, sorry.
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
With respect Patrick, there are over 150000 entries There must be a way to delete all
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
"q"

Edit: I already mentioned that above, but the main point is that your update will not proceed until you quit the pager.
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You don't need to reboot when upgrading a jail. Let the upgrade finish, it can take a bit.
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
Patrick your Q suggestion did come up with the following
Code:
To install the downloaded upgrades, run "/usr/sbin/freebsd-update install

root@plex:~ # freebsd-update install

Updates cannot be installed when the system secure level is greater than zero
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
Patrick FYI I don't reboot FreeNAS reboots automatically.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
iocage upgrade uses freebsd-update inside the jail. So it is partly expected and then again it is not, because it should continue instead of aborting with that error.

Erm .. you are logged in in the jail? I see a "root@plex" prompt.

You are supposed to just run iocage upgrade on the FreeNAS host, nothing in the jail ...
 

Martin Jones

Dabbler
Joined
Feb 9, 2016
Messages
48
I tried one more time and used Q a couple of times and got this response:
Code:
please reboot and run /tmp/tmpahvh3oe4 install
I didn't reboot thankfully and the update started to install. A couple more repeat requests but finally I'm at 11.4-p5. Patrick, I will take your advise and not upgrade to 12 just yet. Thanks for your help.
 
Top