Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
superchecco99 opened this issue Sep 11, 2024 · 1 comment
Open

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

superchecco99 opened this issue Sep 11, 2024 · 1 comment

Comments

@superchecco99
Copy link

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
Copy link
Collaborator

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants