SOLVED upgrading jails

Joined
Mar 5, 2022
Messages
224
I am running TrueNAS (version TrueNAS-13.0-U6.1) on FreeBSD OS 13.1-RELEASE-p9. I want to install MySQL in a jail that is running 12.3-RELEASE-p6. I ran the following:
Code:
sudo portsnap fetch
sudo portsnap extract
cd /usr/ports/databases/mysql81-server
make


But I am getting this error:
Code:
make: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (13.1-RELEASE-p9) and OSVERSION (1203000) do not agree on major version number.
[jordan@webServer /usr/ports/databases/mysql81-server]$ make -C /usr/ports -V OSVERSION
make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (13.1-RELEASE-p9) and OSVERSION (1203000) do not agree on major version number.
make: "/usr/ports/Mk/bsd.port.subdir.mk" line 121: warning: "make -V _JAVA_VERSION_LIST_REGEXP USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status
make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (13.1-RELEASE-p9) and OSVERSION (1203000) do not agree on major version number.
make: "/usr/ports/Mk/bsd.port.subdir.mk" line 126: warning: "make -V _JAVA_VENDOR_LIST_REGEXP USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status
make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (13.1-RELEASE-p9) and OSVERSION (1203000) do not agree on major version number.
make: "/usr/ports/Mk/bsd.port.subdir.mk" line 131: warning: "make -V _JAVA_OS_LIST_REGEXP USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status
make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (13.1-RELEASE-p9) and OSVERSION (1203000) do not agree on major version number.
make: "/usr/ports/Mk/bsd.port.subdir.mk" line 136: warning: "make -V _JAVA_PORTS_INSTALLED USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status


For grins, I tried upgrading the jail. I shut down the jail and ran this from the host:
sudo iocage upgrade webServer -r 13.1-RELEASE-p9
It returned this error:
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.3-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
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 13.1-RELEASE-p9 from update1.freebsd.org... failed.
Fetching metadata signature for 13.1-RELEASE-p9 from update2.freebsd.org... failed.
Fetching metadata signature for 13.1-RELEASE-p9 from dualstack.aws.update.freebsd.org... failed.
No mirrors remaining, giving up.

This may be because upgrading from this platform (amd64)
or release (13.1-RELEASE-p9) is unsupported by tmprnerkt9q. Only
platforms with Tier 1 support can be upgraded by tmprnerkt9q.
See https://www.freebsd.org/platforms/ for more info.

If unsupported, FreeBSD must be upgraded by source.
Command: /tmp/tmprnerkt9q -b /mnt/pool/iocage/jails/webServer/root -d /mnt/pool/iocage/jails/webServer/root/var/db/freebsd-update/ -f /mnt/pool/iocage/jails/webServer/root/etc/freebsd-update.conf --not-running-from-cron --currently-running 12.3-RELEASE -r 13.1-RELEASE-p9 upgrade failed![/CODE]

Any suggestions?
 
Joined
Jan 7, 2015
Messages
1,155
I think you want to be on 13.2-RELEASE-p9. See if that helps
 
Joined
Mar 5, 2022
Messages
224

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Last edited:
Joined
Mar 5, 2022
Messages
224
13.1 is EOL. Upgrade the jail to 13.2 and leave off the patch level. It should look like:

iocage upgrade webServer -r 13.1-RELEASE

If you ever get stuck using iocage read the documentation.

https://iocage.readthedocs.io/en/latest/advanced-use.html#upgrading-jails
I actually did read this but was confused about "RELEASE".

Thanks for the help, it is upgrading now. I think I am going to move my jails to vm's as I am going to be moving to SCALE at some point anyway and I am much more familiar with Debian than FreeBSD (although I do love how lightweight jails are.)
 
Top