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

iocage cannot not update jail past current version and cannot upgrade past 12.0

itskando

Member
Joined
Apr 30, 2018
Messages
171
Posted at github iocage forum also:

TrueNAS 12.0.
iocage version 1.2

Background:
There are 2 preexisting jails and 1 new test jail (syncthing — not yet setup).

Issue:
The preexisting jails were unable to iocage update <jail> past their current version.
When they were 11.3-RELEASE, they only updated to 11.3-RELEASE.

The preexisting jails updated via iocage upgrade <jail> -r 12.0-RELEASE to 12.0.
They are now 12.0-RELEASE, but they only update to 12.0-RELEASE.

The preexisting jails are unable to iocage upgrade <jail> -r [12.0|12.1|12.2]-RELEASE past 12.0.
iocage upgrade <jail> -r 12.2-RELEASE, for example, updates to 12.0 (not 12.2).

New jails are able to be made in 12.2 without issue.

Expectation:
I was expecting to be able to update or manual upgrade to the 12.2 release.

Commands and Outputs:
Code:
root@Deetz:~ # iocage list
+-----+-----------+-------+--------------+---------------+
| JID |   NAME    | STATE |   RELEASE    |      IP4      |
+=====+===========+=======+==============+===============+
| 1   | media     | up    | 12.0-RELEASE | 192.168.86.10 |
+-----+-----------+-------+--------------+---------------+
| 2   | openVPN   | up    | 12.0-RELEASE | 192.168.86.8  |
+-----+-----------+-------+--------------+---------------+
| 3   | syncthing | up    | 12.2-RELEASE | DHCP          |
+-----+-----------+-------+--------------+---------------+



.



root@Deetz:~ # iocage update media
Snapshot: Lydia/iocage/jails/media@ioc_update_12.0-RELEASE-p13_2020-11-20_18-34-04 created.
Updating jail...

* Updating media to the latest patch level...
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 12.0-RELEASE-p13.

WARNING: FreeBSD 12.0-RELEASE HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Fri Feb 28 19:00:00 EST 2020
will not have been corrected.
No updates are available to install.
Run '/tmp/tmpq477w54n fetch' first.

release: 12.0-RELEASE-p13 -> 12.0-RELEASE-p13



.



root@Deetz:~ # iocage upgrade media -r 12.2-RELEASE
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update4.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)? n
Command: /tmp/tmpgtqfw_3e -b /mnt/Lydia/iocage/jails/media/root -d /mnt/Lydia/iocage/jails/media/root/var/db/freebsd-update/ -f /mnt/Lydia/iocage/jails/media/root/etc/freebsd-update.conf --not-running-from-cron --currently-running 12.0-RELEASE -r 12.2-RELEASE upgrade failed!
root@Deetz:~ #
 
Last edited:

itskando

Member
Joined
Apr 30, 2018
Messages
171
Reformatted summary : j
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,507
I fail to see what the issue is here. The iocage update command updates the patch level of the jail. If there is no newer patch level available then it doesn't update. Iocage upgrade upgrades the release. You stopped the upgrade by answering "n" and it stopped. Looks like to me it funstioned exactly as it should have.

https://iocage.readthedocs.io/en/latest/advanced-use.html#updating-jails
 

itskando

Member
Joined
Apr 30, 2018
Messages
171
iocage list proves that 12.2 is available.
iocage upgrade only goes to 12.0.
iocage update -r 12.2 only goes to 12.0.

I stopped the later process because it immediately states 12.0 rather than 12.2. it's already won't and there is therefore no need to go further
 

itskando

Member
Joined
Apr 30, 2018
Messages
171
In other words, if I can make a new jail in 12.2 and I can iocage fetch -U to 12.2, why can I not rev an existing jail to 12.2
 

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
624
In other words, if I can make a new jail in 12.2 and I can iocage fetch -U to 12.2, why can I not rev an existing jail to 12.2
You stopped the upgrade process too soon.
You made an assumption that "Fetching metadata signature for 12.0-RELEASE " referred to the target version, whereas it relates to the version to be upgraded from.
The process works fine.
 

itskando

Member
Joined
Apr 30, 2018
Messages
171
Oh.

Thank you.

(Before closing the issue; why doesn't update function? That one does go from 12.0 to 12.0..)
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,507
No updates needed to update system to 12.0-RELEASE-p13.
It states why in the output you posted that I quoted above and stated in my previous post.
The iocage update command updates the patch level of the jail. If there is no newer patch level available then it doesn't update.
 

itskando

Member
Joined
Apr 30, 2018
Messages
171
I just don't understand why if 12.2 is released,
that no newer patch level is available according to upgrade.
upgrade states this even after I performed a manual fetch of 12.2.
 
Top