Bug 2293862

Summary: pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xe9 in position 493: invalid continuation byte
Product: [Fedora] Fedora Reporter: iwokeupinsantorini
Component: efibootmgrAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: anaconda-maint, iwokeupinsantorini, kkoukiou, mkolman, nfrayer, pjones, rharwood, slavik.vladimir, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:50886570ea6ad7222ef93e377ecd202ac65728e8fac888955ec556f7eba9dd5c;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-19 16:20:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: dbus.log
none
File: lsblk_output
none
File: anaconda.log
none
File: nmcli_dev_list
none
File: program.log
none
File: packaging.log
none
File: storage.log
none
File: description
none
File: journalctl
none
File: environ
none
File: os_info
none
File: backtrace
none
File: anaconda-tb
none
File: packaging.log none

Description iwokeupinsantorini 2024-06-23 21:20:18 UTC
Version-Release number of selected component:
anaconda-core-40.22.3-1.fc40.x86_64


The following was filed automatically by anaconda:
anaconda 40.22.3 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 509, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 483, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 450, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/__init__.py", line 46, in sync_run_task
    task_proxy.Finish()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation.py", line 474, in run_install_bootloader
    sync_run_task(STORAGE.get_proxy(task))
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 261, in _run
    self._task_cb(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 203, in _run
    item.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 203, in _run
    item.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 203, in _run
    item.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation.py", line 552, in _run_installation
    queue.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation.py", line 83, in run
    self._run_installation(
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback
    self._set_result(self.run())
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback
    self._task_run_callback()
  File "/usr/lib64/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 280, in run
    threading.Thread.run(self)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 171, in raise_if_error
    raise exc_info[1]
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 173, in finish
    thread_manager.raise_if_error(self._thread_name)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/spokes/installation_progress.py", line 75, in _on_installation_done
    self._task.finish()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/signal.py", line 41, in emit
    func(obj, *args, **kargs)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/runnable.py", line 115, in _task_stopped_callback
    self._stopped_signal.emit()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/async_utils.py", line 68, in _idle_method
    func(*args, **kwargs)
pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xe9 in position 493: invalid continuation byte

Additional info:
other involved packages: python3-libs-3.12.2-2.fc40.x86_64, anaconda-gui-40.22.3-1.fc40.x86_64, python3-dasbus-1.7-6.fc40.noarch
version:        40
kernel:         6.8.5-301.fc40.x86_64
addons:         com_redhat_kdump
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=FEDORA-WS-L rd.live.image quiet rhgb
release:        Fedora release 40 (Forty)
type:           anaconda
reason:         pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xe9 in position 493: invalid continuation byte
package:        anaconda-core-40.22.3-1.fc40.x86_64
product:        Fedora
hashmarkername: anaconda
executable:     /sbin/anaconda
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical

Comment 1 iwokeupinsantorini 2024-06-23 21:20:22 UTC
Created attachment 2038064 [details]
File: dbus.log

Comment 2 iwokeupinsantorini 2024-06-23 21:20:25 UTC
Created attachment 2038065 [details]
File: lsblk_output

Comment 3 iwokeupinsantorini 2024-06-23 21:20:27 UTC
Created attachment 2038066 [details]
File: anaconda.log

Comment 4 iwokeupinsantorini 2024-06-23 21:20:29 UTC
Created attachment 2038067 [details]
File: nmcli_dev_list

Comment 5 iwokeupinsantorini 2024-06-23 21:20:31 UTC
Created attachment 2038068 [details]
File: program.log

Comment 6 iwokeupinsantorini 2024-06-23 21:20:33 UTC
Created attachment 2038069 [details]
File: packaging.log

Comment 7 iwokeupinsantorini 2024-06-23 21:20:44 UTC
Created attachment 2038071 [details]
File: storage.log

Comment 8 iwokeupinsantorini 2024-06-23 21:20:46 UTC
Created attachment 2038072 [details]
File: description

Comment 9 iwokeupinsantorini 2024-06-23 21:21:04 UTC
Created attachment 2038073 [details]
File: journalctl

Comment 10 iwokeupinsantorini 2024-06-23 21:21:07 UTC
Created attachment 2038074 [details]
File: environ

Comment 11 iwokeupinsantorini 2024-06-23 21:21:08 UTC
Created attachment 2038075 [details]
File: os_info

Comment 12 iwokeupinsantorini 2024-06-23 21:21:10 UTC
Created attachment 2038076 [details]
File: backtrace

Comment 13 iwokeupinsantorini 2024-06-23 21:21:30 UTC
Created attachment 2038077 [details]
File: anaconda-tb

Comment 14 iwokeupinsantorini 2024-06-23 21:21:33 UTC
Created attachment 2038078 [details]
File: packaging.log

Comment 15 Martin Kolman 2024-07-23 13:54:51 UTC
Looks like this is an issue with efibootmgr returning non UTF 8 strings:

Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:   File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 74, in efibootmgr
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:     return exec_func("efibootmgr", list(args), **kwargs)
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:   File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 372, in execWithCapture
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:     return _run_program(argv, stdin=stdin, root=root, log_output=log_output,
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:   File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 295, in _run_program
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:     output_string = output_string.decode("utf-8")
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]:                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 23 12:03:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2616]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 493: invalid continuation byte

The efibootmgr code also does not look like it should be returning anything else than utf 8:

https://github.com/rhboot/efivar/blob/main/src/ucs2.h#L111

Maybe this is the same thing we are seeing ?

https://bugs.launchpad.net/ironic-python-agent/+bug/2015602

In any case, reassigning to efibootmgr.

Comment 16 Peter Jones 2024-12-19 16:20:50 UTC

*** This bug has been marked as a duplicate of bug 2292509 ***