plesk / centos2alma

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

Centos2alma-1.4.0 - ERROR global name 'dnf' is not defined #347

Open superchecco99 opened 2 months ago

superchecco99 commented 2 months ago

Hi, I am running Centos2alma-1.4.0 on Product version: Plesk Obsidian 18.0.62.2 OS version: CentOS 7.9.2009 x86_64 When performing Centos2alma it stops with errors:

From /var/log/leapp/leapp-report.txt File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/repofileutils.py", line 54, in get_repodirs with dnf.base.Base() as base: NameError: global name 'dnf' is not defined

From /var/log/plesk/centos2alma.log INFO - Actor system_facts unexpectedly terminated with exit code: 1 - Please check the above details ERROR - Command ['/usr/bin/leapp', 'preupgrade'] failed with return code 1 ERROR - Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'preupgrade']' returned non-zero exit status 1. DEBUG - Going to write json '/usr/local/psa/var/centos2alma/actions.json' with new data DEBUG - Sent error report DEBUG - Trying to send status of conversion by report-update utility '/var/cache/parallels_installer/report-update' ERROR - centos2alma process has failed. Error: Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'preupgrade']' returned non-zero exit status 1. INFO - Going to free lockfile '/usr/local/psa/var/centos2alma/centos2alma.lock'... ~

SandakovMM commented 1 month ago

The dnf python2 module should be installed along with the leapp packages because it is required for leapp. Can you check if the python2-dnf package is installed? If the package is installed, do you have any custom settings in the path variables ($PATH, $PYTHONPATH, etc)?