Solved Jails update 11.2 userland vs kernel version

I did OS upgrade from 11.1 to 11.2 . All went fine... almost as jails are showing wrong userland version now and I cannot upgrade software

Code:
root@labs02:~ # uname -UK
1102000 1101001

when I try to reinstall software I am getting error:

Code:
root@labs02:~ # pkg upgrade
Updating myrepo repository catalogue...
pkg: Repository myrepo has a wrong packagesite, need to re-create database
[mysql8] Fetching meta.txz: 100%    260 B   0.3kB/s    00:01
[mysql8] Fetching packagesite.txz: 100%  319 KiB 326.6kB/s    00:01
Processing entries:   0%
Newer FreeBSD version for package graphite2:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1102000
- running kernel: 1101001
Allow missmatch now?[Y/n]:

main host is fine. Had no issues with upgrades for many years.

I did:
Code:
segment022# ezjail-admin update -u
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 11.2-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 11.2-RELEASE-p4.
No updates are available to install.
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 11.2-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 11.2-RELEASE-p4.
No updates are available to install.

Any Idea what should I do ?

Thanks,
 
Code:
     ezjail-admin command arguments... update -U -s 8.0-RELEASE
             Upgrade the base jail to the host system's release using
             freebsd-update(8). This may be used only to upgrade an existing
             installation. Tell freebsd-update which OS version to expect in
             the basejail via the -s option.

             Note: Check uname(1) and especially the UNAME_r environment
             variable to upgrade to different versions.
From ezjail(8)

Handbook: 14.6.4. Updating Jails
 
  • Thanks
Reactions: klu
Yeah I tried that:

Code:
segment022# ezjail-admin update -U -s 11.2-RELEASE-p4
freebsd-update: Cannot upgrade from 11.2-RELEASE to itself
freebsd-update: Cannot upgrade from 11.2-RELEASE to itself
 
You need to supply the current version of your jail, which is 11.1 in your case. It will get upgraded to the current version of the host (which is 11.2).

ezjail-admin update -U -s 11.1-RELEASE
 
You need to supply the current version of your jail, which is 11.1 in your case. It will get upgraded to the current version of the host (which is 11.2).

ezjail-admin update -U -s 11.1-RELEASE

Thanks, my mistake. Correct command get looped. I did stop it manually restarted machine and works - but now I am not sure about integrity.
Code:
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
 
Yeah, I've had that happen a couple of times too, it appears to loop trying to update a kernel. But a jail doesn't have a kernel. So it just loops forever. Didn't seem to have any noticeable negative impact though.
 
Back
Top