jails Jail user environment version mismatch with Jail's kernel version and host's userland and kernel version

I am experiencing a "version" mismatch between the jail's kernel and user environment and the host's kernel and user environment, after a jail update (it's an update and not an upgrade between major releases).

In general, updating and upgrading the FreeBSD host, along with the hosted jails (zfs, thick jails) is something I have done many times, without any "problems", always according to the handbook instructions. I am not using any tools for the jail's management and administration (i.e. iocage, ezjail etc.)

I have noticed the above mentioned version "mismatched", while attempting to run a command in the jail ( certbot renew) and I got the following error message:
Code:
ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/lib/libpython3.9.so.1.0 not found

The FreeBSD host system:
Code:
 uname -a
FreeBSD xxx.xxx.xxx 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC amd64

Code:
# uname -UK
1301000 1301000

the jail:
Code:
 uname -UK
1301000 1300139

I have tried to pkg update -f and pkg upgrade -f, but obviously, without any luck.

I have also tried to pkg bootstrap -f, but again, without any results.
Code:
# pkg bootstrap -f
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
[www.xxx.xxx] Installing pkg-1.19.1...
Newer FreeBSD version for package pkg:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1301000
- running kernel: 1300139
Ignore the mismatch and continue? [y/N]:

I think, please correct me if I am wrong, that the jail's kernel version (1300139) is from a 13.0-RELEASE, indicating that the jail's upgrade procedure, when I upgraded the host system, from 13.0-RELEASE to 13.1-RELEASE, has NOT been done, as expected.

I would appreciate any suggestions, pointing me to the right direction in order to resolve this "issue", before I start trying things that might break the system.

Thank you in advance for your time and effort.
 
I am experiencing a "version" mismatch between the jail's kernel and user environment and the host's kernel and user environment
Jails don't have a kernel. Jails run on the host's kernel.

What does freebsd-version -ukr show on the host?
 
I think, please correct me if I am wrong, that the jail's kernel version (1300139) is from a 13.0-RELEASE, indicating that the jail's upgrade procedure, when I upgraded the host system, from 13.0-RELEASE to 13.1-RELEASE, has NOT been done, as expected.
Rich (BB code):
# uname -UK
1301000 1301000

the jail:
# uname -UK
1301000 1300139
You've misinterpreted the version numbers for the kernel; the first entry in the output is the kernel version, regardless of the options order; see uname(1)—fully in accordance with SirDice's remark. The difference in userland is probably where problems arise.
 
on the host system:
Code:
# freebsd-version -kru
13.1-RELEASE-p6
13.1-RELEASE-p6
13.1-RELEASE-p7

in the jail:
Code:
# freebsd-version -ru
13.1-RELEASE-p6
13.1-RELEASE-p7

of course, in the jail, the freebsd-version -k does not output anything, as correctly mentioned by
Jails don't have a kernel. Jails run on the host's kernel.

I have just noticed, viewing my initial post, that when I tried to pkg bootstrap -f in the jail, there was this console output (notice the ...FreeBSD:13:amd64...):
Code:
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest, please wait...
I guess that this should have been 13.1 instead of 13.


Any suggestions?
 
Back
Top