Leapp fails with UnicodeDecodeError: 'ascii' codec can't decode byte during the DNF transaction
Issue
-
Leapp fails with the error
UnicodeDecodeError: 'ascii' codec can't decode byte -
Following traceback reported in the leapp logs/rdsosreport :
[ 605.414239] localhost upgrade[814]: 2024-04-15 14:44:13.675 ERROR PID: 3 leapp.workflow.RPMUpgrade: Actor dnf_upgrade_transaction has crashed: Traceback (most recent call last): [ 605.414239] localhost upgrade[814]: File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run [ 605.414239] localhost upgrade[814]: actor_instance.run(*args, **kwargs) [ 605.414239] localhost upgrade[814]: File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 289, in run [ 605.414239] localhost upgrade[814]: self.process(*args) [ 605.414239] localhost upgrade[814]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfupgradetransaction/actor.py", line 63, in process [ 605.414239] localhost upgrade[814]: shutil.rmtree(userspace.path) [ 605.414239] localhost upgrade[814]: File "/usr/lib64/python2.7/shutil.py", line 247, in rmtree [ 605.414239] localhost upgrade[814]: elif onerror is None: [ 605.414239] localhost upgrade[814]: File "/usr/lib64/python2.7/shutil.py", line 247, in rmtree [ 605.414239] localhost upgrade[814]: elif onerror is None: [ 605.414239] localhost upgrade[814]: File "/usr/lib64/python2.7/shutil.py", line 241, in rmtree [ 605.414239] localhost upgrade[814]: is false and onerror is None, an exception is raised. [ 605.414239] localhost upgrade[814]: File "/usr/lib64/python2.7/posixpath.py", line 80, in join [ 605.414239] localhost upgrade[814]: # Trailing '/'es are stripped from head unless it is the root. [ 605.414239] localhost upgrade[814]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 38: ordinal not in range(128) [ 605.414239] localhost upgrade[814]: ======================================================================================================== [ 605.414239] localhost upgrade[814]: Actor dnf_upgrade_transaction unexpectedly terminated with exit code: 1
Environment
- Red Hat Enterprise Linux 7
- Leapp
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.