RHEL 8.8 to Rocky Linux 8.8 Migration

We are migrating from RHEL 8.8 to Rocky Linux 8.8 and are receiving the following message in our logs.

It seems to hit version 8.2 instead of going to 8.8.

We have also changed the following in the migrate2rocky.sh script

SUPPORTED_MAJOR=“8.8”
SUPPORTED_PLATFORM=“platform:el8”

instead of

SUPPORTED_MAJOR=“8”
SUPPORTED_PLATFORM=“platform:el$SUPPORTED_MAJOR”

As it kept picking up the Rocky Linux 8.2 RPMs.

Please assist. See below for error.

Thanks

Updating Subscription Management repositories.
Rocky Linux 8.2 - AppStream 24 kB/s | 20 kB 00:00
Errors during downloading metadata for repository ‘appstream’:

Can’t enable modules container-tools:rhel8 javapackages-runtime:201801 maven:3.5 perl-IO-Socket-SSL:2.066 perl-libwww-perl:6.34 perl:5.26 python36:3.6 satellite-5-client:1.0 scala:2.10 virt:rhel

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

A log of this installation can be found at /var/log/migrate2rocky.log

You will need to check your dnf configuration as it appears releasever is being set to 8.2. This is overriding the $releasever variable.

There is nothing on dnf.conf or yum.conf other than the below.

cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
http_caching=packages
http_caching=packages
exclude= java* jenkins*

It doesn’t have to be strictly there. You should also check all your repo configuration and /etc/dnf/*.

Looks like it was here

/etc/yum/vars/releasever

Changed from 8.2 to 8.8 ran script and all works now.

Only issue we experienced at the end was a maven library was unable to install. But we saw these packages already installed.

Failed:
maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.noarch
maven-lib-1:3.5.4-5.module+el8+2452+b359bfcd.noarch Error: Transaction failed

Error during distro-sync.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

A log of this installation can be found at /var/log/migrate2rocky.log

We did a reboot and all works.

Rocky Linux release 8.8 (Green Obsidian)
NAME=“Rocky Linux”
VERSION=“8.8 (Green Obsidian)”
ID=“rocky”
ID_LIKE=“rhel centos fedora”
VERSION_ID=“8.8”
PLATFORM_ID=“platform:el8”
PRETTY_NAME=“Rocky Linux 8.8 (Green Obsidian)”
ANSI_COLOR=“0;32”
LOGO=“fedora-logo-icon”
CPE_NAME=“cpe:/o:rocky:rocky:8:GA”
HOME_URL=“https://rockylinux.org/
BUG_REPORT_URL=“https://bugs.rockylinux.org/
SUPPORT_END=“2029-05-31”
ROCKY_SUPPORT_PRODUCT=“Rocky-Linux-8”
ROCKY_SUPPORT_PRODUCT_VERSION=“8.8”
REDHAT_SUPPORT_PRODUCT=“Rocky Linux”
REDHAT_SUPPORT_PRODUCT_VERSION=“8.8”
Rocky Linux release 8.8 (Green Obsidian)
Rocky Linux release 8.8 (Green Obsidian)
Derived from Red Hat Enterprise Linux 8.8
Rocky Linux release 8.8 (Green Obsidian)
cpe:/o:rocky:rocky:8:GA

Thanks

1 Like

The system is working as Rocky 8.8 but with the below errors in the migration log.

[5:07 p.m.] Petridis, John

Downgrading : sisu-inject-1:0.3.3-6.module+el8.6.0+843+5a13d 918/2046

Downgrading : sisu-plexus-1:0.3.3-6.module+el8.6.0+843+5a13d 919/2046

Downgrading : maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db 920/2046Error unpacking rpm package maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.noarch

Downgrading : maven-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.no 921/2046

error: unpacking of archive failed on file /usr/share/maven/conf/logging: cpio: File from package already exists as a directory in system

error: maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.noarch: install failed

Running scriptlet: maven-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.no 921/2046

Reinstalling : gtk3-3.22.30-11.el8.x86_64 922/2046

Reinstalling : python3-rpmfluff-0.5.7.1-2.el8.noarch 923/2046

[5:08 p.m.] Petridis, John

Downgrading : sisu-inject-1:0.3.3-6.module+el8.6.0+843+5a13d 918/2046

Downgrading : sisu-plexus-1:0.3.3-6.module+el8.6.0+843+5a13d 919/2046

Downgrading : maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db 920/2046Error unpacking rpm package maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.noarch

Downgrading : maven-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.no 921/2046

error: unpacking of archive failed on file /usr/share/maven/conf/logging: cpio: File from package already exists as a directory in system

error: maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.noarch: install failed

Running scriptlet: maven-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.no 921/2046

Reinstalling : gtk3-3.22.30-11.el8.x86_64 922/2046

Reinstalling : python3-rpmfluff-0.5.7.1-2.el8.noarch 923/2046
Failed:
maven-lib-1:3.5.4-5.module+el8.6.0+975+c0ed2db8.noarch
maven-lib-1:3.5.4-5.module+el8+2452+b359bfcd.noarch Error: Transaction failed

Error during distro-sync.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.