Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

SOLVED Jail upgrade from 11.4 to 12.2 fails

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,581
Been working for this for a while today now without any success. When running iocage upgrade qbittorrent1 -r 12.2-RELEASE the upgrade process starts but ends up stalling out and doesn't complete. I've checked the iocage github page to see if anyone else has reported a similar issue and I couldn't find anything there. I know other users have reported issues with upgrading their jails but none that I could find have reported the issue I'm having. I also checked the iocage log and there's nothing it regarding this.

Here's the console output and where it ends.

Code:
root@freenas:~ # iocage upgrade qbittorrent1 -r 12.2-RELEASE
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 11.4-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... 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 12.2-RELEASE from update1.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.4-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.4-RELEASE and
FreeBSD 12.2-RELEASE have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.4/etc/group 359448 2020-03-30 17:11:21Z brooks $
+# $FreeBSD: releng/12.2/etc/group 359447 2020-03-30 17:07:05Z brooks $
#
wheel:*:0:root
daemon:*:1:
kmem:*:2:
sys:*:3:
@@ -27,10 +27,11 @@
uucp:*:66:
dialer:*:68:
network:*:69:
audit:*:77:
www:*:80:
+ntpd:*:123:
_ypldap:*:160:
hast:*:845:
tests:*:977:
nogroup:*:65533:
nobody:*:65534:
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 11.4-RELEASE and
FreeBSD 12.2-RELEASE have been merged into /etc/master.passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.4/etc/master.passwd 359448 2020-03-30 17:11:21Z brooks $
+# $FreeBSD: releng/12.2/etc/master.passwd 359447 2020-03-30 17:07:05Z 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
@@ -20,10 +20,11 @@
_dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologin
uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
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
+ntpd:*:123:123::0:0:NTP Daemon:/var/db/ntp:/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
messagebus:*:556:556::0:0:D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 11.4-RELEASE and
FreeBSD 12.2-RELEASE have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.4/etc/master.passwd 359448 2020-03-30 17:11:21Z brooks $
+# $FreeBSD: releng/12.2/etc/master.passwd 359447 2020-03-30 17:07:05Z 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
@@ -20,10 +20,11 @@
_dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
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
+ntpd:*:123:123:NTP Daemon:/var/db/ntp:/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
messagebus:*:556:556:D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
Does this look reasonable (y/n)? y
The following files are affected by updates. No changes have
been downloaded, however, because the files have been modified
locally:
/etc/ssl/certs/cd8c0d63.0
(END)


I let it sit like this for a few hours and it doesn't continue. The console just shows (END) and will do nothing until I abort the process by hitting Ctrl+C. This is very concerning as I have 14 jails running and I REALLY don't want to have to rebuild all my jails from scratch. I can't post at the FreeBSD forums since it's FreeNAS and they'll punt you over to this forum as soon as they know it's not FreeBSD you're working on.

Anybody got any idea what's going on with this?
 
Last edited:

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
658
At the point it "stops" after giving you a list of files just hit "Q" to page to the end of the list.
It will do this more than once as I recall.
If you are in VI then ":Q" will exit
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,581
Ok it's running now I'll report back in a bit on the progress.
 

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
658
After it finishes you have just upgraded the OS.
You then need to run PKG update for the apps you have.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,581
It finally finished, thanks for the tip.
 

pschatz100

Neophyte Sage
Joined
Mar 30, 2014
Messages
1,062
I let it sit like this for a few hours and it doesn't continue. The console just shows (END) and will do nothing until I abort the process by hitting Ctrl+C. This is very concerning as I have 14 jails running and I REALLY don't want to have to rebuild all my jails from scratch. I can't post at the FreeBSD forums since it's FreeNAS and they'll punt you over to this forum as soon as they know it's not FreeBSD you're working on.

Anybody got any idea what's going on with this?
I just had the same problem: after upgrading to TrueNAS 12.0-u2 (which went just fine), I started to upgrade my jails to 12.2-RELEASE and the process froze after a long list of files was displayed - with the console showing (END).

At the point it "stops" after giving you a list of files just hit "Q" to page to the end of the list.
It will do this more than once as I recall.
If you are in VI then ":Q" will exit
This worked for me and the upgrade then completed. Overall, the jail upgrade took longer than the TrueNAS upgrade.
 

Patrick M. Hausen

Dedicated Sage
Joined
Nov 25, 2013
Messages
2,777
iocage likes to deloy an entire FreeBSD source tree inside the jails. Which will get updated when you update the jail.
In most cases you don't need it, so if you are sure about that, just remove /usr/src inside the jail(s).
 
Top