Upgrading from RHEL 7.9 to RHEL 8.x failed
Hello,
I'm trying to upgrade one of our test systems from RHEL 7.9 to 8.x version using Leapp. I have successfully resolved Leapp preupgrade errors but when I execute "leapp upgrade" command fails with the following errors:
STDERR:
Warning: Packages marked by Leapp for install not found in repositories metadata: python3-nss ldns-utils rpcgen python3-pyxattr gdk-pixbuf2-xlib ivy-local python3-javapackages libnsl2-devel rpcsvc-proto-devel
Warning: Packages marked by Leapp for upgrade not found in repositories metadata: gpg-pubkey
RPM: warning: Generating 6 missing index(es), please wait...
Error: Transaction test error:
file /usr/lib/python2.7/site-packages/ipaddress.py from install of python2-ipaddress-1.0.18-6.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-ipaddress-1.0.16-2.el7.noarch
file /usr/lib/python2.7/site-packages/ipaddress.pyc from install of python2-ipaddress-1.0.18-6.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-ipaddress-1.0.16-2.el7.noarch
file /usr/lib/python2.7/site-packages/ipaddress.pyo from install of python2-ipaddress-1.0.18-6.module+el8.1.0+3111+de3f2d8e.noarch conflicts with file from package python-ipaddress-1.0.16-2.el7.noarch
Responses
Hi Dusko,
As your issue is not clear to me, I have a few questions that might help others to dig into the issue:
- What repositories are you using?
- CDN of Red Hat or a RH Satellite?
- Are you using the version 14 of the leapp-data.tgz?
- Are you "Leapping" to RHEL 8.1 instead of 8.4?
- if so why?
Regards,
Jan Gerrit Kootstra
I'm having this exact issue, but after removing will not reinstall, getting package not found even with proper repos enabled. I have some 40 or so packages with conflicts.
Warning: Packages marked by Leapp for upgrade not found in repositories metadata: gpg-pubkey leapp-upgrade-el7toel8 leapp python2-leapp
RPM: warning: Generating 6 missing index(es), please wait...
Error: Transaction test error:
file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.opt-1.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
file /usr/lib/python3.6/site-packages/six.py from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
file /usr/lib/python3.6/site-packages/dateutil/__init__.py from install of python3-dateutil-1:2.6.1-6.el8.noarch conflicts with file from package python36-dateutil-1:2.4.2-5.el7.noarch
I have the same error in conversion from CentOS7 to Virtuozzo. The first major issue I have is: Failed to initialize NSS libraries then this :
Problem 1: package python3-abrt-addon-2.10.9-20.vl8.1.x86_64 requires abrt = 2.10.9-20.vl8.1, but none of the providers can be installed - cannot install the best candidate for the job - nothing provides libjson-c.so.4(libjson-c.so.4)(64bit) needed by abrt-2.10.9-20.vl8.1.x86_64 Problem 2: package python3-abrt-2.10.9-20.vl8.1.x86_64 requires abrt = 2.10.9-20.vl8.1, but none of the providers can be installed - cannot install the best candidate for the job - nothing provides libjson-c.so.4(libjson-c.so.4)(64bit) needed by abrt-2.10.9-20.vl8.1.x86_64
I will appreciate any support.
Hello how are you ? I am trying to upgrade from rhel8 to 9, when I run leapp preupgrade --target 9.0 it doesn't give any error, but when I run leapp upgrade --target 9.0 I get the following error
STDERR: warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey leapp-upgrade-el8toel9 python3-leapp leapp warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. error: rpmdbNextIterator: skipping h# 902 Header V3 RSA/SHA1 Signature, key ID bdda8475: BAD Header SHA256 digest: OK Header SHA1 digest: OK error: rpmdbNextIterator: skipping h# 902 Header V3 RSA/SHA1 Signature, key ID bdda8475: BAD Header SHA256 digest: OK Header SHA1 digest: OK Error: An rpm exception occurred: package not installed
============================================================
END OF ERRORSDebug output written to /var/log/leapp/leapp-upgrade.log
============================================================
REPORTA report has been generated at /var/log/leapp/leapp-report.json A report has been generated at /var/log/leapp/leapp-report.txt
============================================================
END OF REPORTAnswerfile has been generated at /var/log/leapp/answerfile
Content /var/log/leapp/leapp-upgrade.log 2022-06-22 17:25:21.280 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: You can remove cached packages by executing 'dnf clean packages'. 2022-06-22 17:25:21.284 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: Error: An rpm exception occurred: package not installed 2022-06-22 17:25:21.339 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: Command ['systemd-nspawn', '--register=no', '--quiet', '--keep-unit', '--capability=all', '-D', '/var/lib/leapp/el9userspace', '--setenv=LEAPP_HOSTNAME=dborgi.cabal.coop.py', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=9.0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_IPU_IN_PROGRESS=8to9', '--setenv=LEAPP_EXECUTION_ID=4ed65b08-8657-4082-88bb-9736c99e4536', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el8toel9/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el8toel9/files', '/usr/bin/dnf', 'rhel-upgrade', 'download', '/var/lib/leapp/dnf-plugin-data.txt'] failed with exit code 1. 2022-06-22 17:25:21.343 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['systemd-nspawn', '--register=no', '--quiet', '--keep-unit', '--capability=all', '-D', '/var/lib/leapp/el9userspace', '--setenv=LEAPP_HOSTNAME=dborgi.cabal.coop.py', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=9.0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_IPU_IN_PROGRESS=8to9', '--setenv=LEAPP_EXECUTION_ID=4ed65b08-8657-4082-88bb-9736c99e4536', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el8toel9/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el8toel9/files', '/usr/bin/dnf', 'rhel-upgrade', 'download', '/var/lib/leapp/dnf-plugin-data.txt'] 2022-06-22 17:25:21.344 ERROR PID: 14749 leapp.workflow.Download.dnf_package_download: DNF execution failed: 2022-06-22 17:25:21.345 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_/system_overlay/var/cache/dnf'] 2022-06-22 17:25:21.358 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_/system_overlay/var/cache/dnf'] 2022-06-22 17:25:21.358 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/system_overlay/var/cache/dnf'] 2022-06-22 17:25:21.364 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/system_overlay/var/cache/dnf'] 2022-06-22 17:25:21.365 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_/system_overlay/boot'] 2022-06-22 17:25:21.381 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_/system_overlay/boot'] 2022-06-22 17:25:21.381 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/system_overlay/boot'] 2022-06-22 17:25:21.386 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/system_overlay/boot'] 2022-06-22 17:25:21.386 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_boot/root_boot'] 2022-06-22 17:25:21.407 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_boot/root_boot'] 2022-06-22 17:25:21.407 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_boot/upper'] 2022-06-22 17:25:21.412 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_boot/upper'] 2022-06-22 17:25:21.412 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_boot/work'] 2022-06-22 17:25:21.417 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_boot/work'] 2022-06-22 17:25:21.417 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_boot/root_boot'] 2022-06-22 17:25:21.421 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_boot/root_boot'] 2022-06-22 17:25:21.422 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['umount', '-fl', '/var/lib/leapp/el9userspace/installroot'] 2022-06-22 17:25:21.439 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['umount', '-fl', '/var/lib/leapp/el9userspace/installroot'] 2022-06-22 17:25:21.440 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/el9userspace/installroot'] 2022-06-22 17:25:21.444 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/el9userspace/installroot'] 2022-06-22 17:25:21.445 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_/system_overlay'] 2022-06-22 17:25:21.473 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['umount', '-fl', '/var/lib/leapp/scratch/mounts/root_/system_overlay'] 2022-06-22 17:25:21.473 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/upper'] 2022-06-22 17:25:21.478 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/upper'] 2022-06-22 17:25:21.478 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/work'] 2022-06-22 17:25:21.483 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/work'] 2022-06-22 17:25:21.484 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has started: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/system_overlay'] 2022-06-22 17:25:21.488 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: External command has finished: ['rm', '-rf', '/var/lib/leapp/scratch/mounts/root_/system_overlay'] 2022-06-22 17:25:21.489 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: Cleaning up mounts 2022-06-22 17:25:21.489 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: Recursively removing scratch directory /var/lib/leapp/scratch. 2022-06-22 17:25:21.490 DEBUG PID: 14749 leapp.workflow.Download.dnf_package_download: Recursively removed scratch directory /var/lib/leapp/scratch. 2022-06-22 17:25:21.503 INFO PID: 8497 leapp.workflow.Download: Starting stage After of phase Download 2022-06-22 17:25:21.504 INFO PID: 8497 leapp.workflow: Workflow interrupted due to the FailPhase error policy 2022-06-22 17:25:21.524 INFO PID: 8497 leapp: Answerfile will be created at /var/log/leapp/answerfile 2022-06-22 17:25:21.546 WARNING PID: 8497 leapp.reporting: Stable Key report entry not provided, dynamically generating one - 9d0ad2570f4aa34f0db5643deb920bebe03271d5 2022-06-22 17:25:21.659 WARNING PID: 8497 leapp.reporting: Stable Key report entry not provided, dynamically generating one - 9d0ad2570f4aa34f0db5643deb920bebe03271d5
Please someone can help me thanks