plesk / centos2alma

CentOS 7 to AlmaLinux 8 conversion tool
Apache License 2.0
38 stars 8 forks source link

centos2alma process has failed. Error: Failed: update modern mariadb. #313

Open osprinzl opened 1 month ago

osprinzl commented 1 month ago

Describe the bug I tried to upgrade a CentOS 7 system to Alma Linux 8. This system has a custom MariaDB installation (10.4). As far as I understand this will be reinstalled with CentOS/AlmaLinux 8 MariaDB packages. Here is a problem in the update/reinstall routine, it generates a yum error and breaks further install:

2024-07-24 02:49:52,497 - INFO - Running: ['/usr/bin/yum', 'install', '--repo', 'alma-alma-mariadb', '-y', 'MariaDB-client', 'MariaDB-server']. Output:
2024-07-24 02:49:52,662 - INFO - Loaded plugins: fastestmirror
2024-07-24 02:49:52,666 - INFO - Command line error: no such option: --repo
2024-07-24 02:49:52,666 - INFO - Usage: yum [options] COMMAND
...
2024-07-24 02:49:52,679 - ERROR - Command ['/usr/bin/yum', 'install', '--repo', 'alma-alma-mariadb', '-y', 'MariaDB-client', 'MariaDB-server'] failed with return code 1
2024-07-24 02:49:52,679 - ERROR - Failed: update modern mariadb. The reason: Command '['/usr/bin/yum', 'install', '--repo', 'alma-alma-mariadb', '-y', 'MariaDB-client', 'MariaDB-server']' returned non-zero exit status 1.

Could this be fixed?

The upgrade routine removes the following RPM packages: MariaDB-server MariaDB-common MariaDB-compat MariaDB-client But it needs to remove galera-4-26.4.18-1.el7.centos.x86_64 as well!

Kernel: 3.10.0-1160.119.1.el7.x86_64

Feedback archive centos2alma_feedback.zip

osprinzl commented 1 month ago

The option --repo is not known in yum. This should be --enablerepo=

SandakovMM commented 1 month ago

The option --repo is not known in yum. This should be --enablerepo=

The --repo option is meant for AlmaLinux 8, where yum is an alias of the dnf utility, which supports the --repo argument. It appears that, for some reason, centos2alma resume was initiated inside CentOS 7, which is unexpected.

It seems that CentOS 7 was not converted to AlmaLinux 8 in the temporary container created by leapp. To determine exactly what happened, the processes inside the container need to be checked via console. Can you access these logs?