Error in leapp preupgrade while upgrading from AlmaLinux 8.9 to AlmaLinux 9

Hi,
While upgrading AlmaLinux from 8.9 to 9 I’m getting the following error.

[root@vmi841042 ~]# leapp preupgrade
==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * vendor_repositories_mapping
        Scan the vendor repository mapping files and provide the data to other actors.
====> * system_facts
        Provides data about many facts from system.
====> * check_enabled_vendor_repos
        Create a list of vendors whose repositories are present on the system and enabled.
====> * vendor_repo_signature_scanner
        Produce VendorSignatures messages for the vendor signature files inside the
====> * get_enabled_modules
        Provides data about which module streams are enabled on the source system.
2024-01-18 21:50:51.287 ERROR    PID: 7515 dnf: Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
Process Process-141:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 573, in load
    ret = self._repo.load()
  File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load
    return _repo.Repo_load(self)
libdnf._error.Error: Failed to download metadata for repo 'cpanel-addons-production-feed': Cannot prepare internal mirrorlist: Status code: 404 for http://httpupdate.cpanel.net/cPAddons-c$cp_centos_major_version-x86_64-mirrorlist (IP: 184.94.196.92)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/etc/leapp/repos.d/system_upgrade/common/actors/getenabledmodules/actor.py", line 18, in process
    modules = [Module(name=m.getName(), stream=m.getStream()) for m in get_enabled_modules()]
  File "/etc/leapp/repos.d/system_upgrade/common/libraries/module.py", line 51, in get_enabled_modules
    base = _create_or_get_dnf_base()
  File "/etc/leapp/repos.d/system_upgrade/common/libraries/module.py", line 25, in _create_or_get_dnf_base
    base.fill_sack()
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 405, in fill_sack
    self._add_repo_to_sack(r)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 140, in _add_repo_to_sack
    repo.load()
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 580, in load
    raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: Failed to download metadata for repo 'cpanel-addons-production-feed': Cannot prepare internal mirrorlist: Status code: 404 for http://httpupdate.cpanel.net/cPAddons-c$cp_centos_major_version-x86_64-mirrorlist (IP: 184.94.196.92)

I’m following these steps:

yum update -y
reboot
curl https://repo.almalinux.org/elevate/testing/elevate-testing.repo -o /etc/yum.repos.d/elevate-testing.repo
rpm --import https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate
yum install -y leapp-upgrade leapp-data-almalinux
leapp preupgrade

I was disabled SELinux and disabled the firewalld ZoneDrifting

Thanks

3rd party repo’s are not supported.

also you don’t need to use elevate-testing anymore, just use the regular guide:

1 Like

Thank you for your reply. Is there any other upgradation process for the servers with cPanel or is it possible to upgrade without repo ‘cpanel-addons-production-feed’? Any Idea?

With the caveat that I am not a cPanel user, I would suggest disabling the third party repos, upgrading, then enable them (targeting EL9), and do a dnf distro-sync, and that should bring your 3rd party stuff up to the EL9 versions.