Bug 2299022 - pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode bytes in position 447-448: invalid continuation byte
Summary: pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't d...
Keywords:
Status: CLOSED DUPLICATE of bug 2292509
Alias: None
Product: Fedora
Classification: Fedora
Component: efibootmgr
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3e8bb257d0fe6769a1c49a4582d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-20 11:26 UTC by MstrPi
Modified: 2024-12-19 16:20 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-12-19 16:20:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dbus.log (3.90 KB, text/plain)
2024-07-20 11:26 UTC, MstrPi
no flags Details
File: lsblk_output (3.55 KB, text/plain)
2024-07-20 11:26 UTC, MstrPi
no flags Details
File: anaconda.log (26.53 KB, text/plain)
2024-07-20 11:26 UTC, MstrPi
no flags Details
File: nmcli_dev_list (2.57 KB, text/plain)
2024-07-20 11:26 UTC, MstrPi
no flags Details
File: program.log (16.49 KB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: packaging.log (12.82 KB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: storage.log (324.21 KB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: description (3.43 KB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: journalctl (1.25 MB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: environ (584 bytes, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: os_info (699 bytes, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: backtrace (3.45 KB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: anaconda-tb (1.63 MB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details
File: packaging.log (12.82 KB, text/plain)
2024-07-20 11:27 UTC, MstrPi
no flags Details

Description MstrPi 2024-07-20 11:26:52 UTC
Description of problem:
I set up the install including custom btrfs subvolumes set root password and user password. selected to start installation. looks like it got to "Installing boot loader" when if failed

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 bytes in position 447-448: invalid continuation byte

Additional info:
other involved packages: python3-dasbus-1.7-6.fc40.noarch, python3-libs-3.12.2-2.fc40.x86_64, anaconda-gui-40.22.3-1.fc40.x86_64
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-KDE-Live-40-1-14 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 bytes in position 447-448: 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:        I set up the install including custom btrfs subvolumes set root password and user password. selected to start installation. looks like it got to "Installing boot loader" when if failed

Comment 1 MstrPi 2024-07-20 11:26:55 UTC
Created attachment 2040033 [details]
File: dbus.log

Comment 2 MstrPi 2024-07-20 11:26:56 UTC
Created attachment 2040034 [details]
File: lsblk_output

Comment 3 MstrPi 2024-07-20 11:26:58 UTC
Created attachment 2040035 [details]
File: anaconda.log

Comment 4 MstrPi 2024-07-20 11:26:59 UTC
Created attachment 2040036 [details]
File: nmcli_dev_list

Comment 5 MstrPi 2024-07-20 11:27:00 UTC
Created attachment 2040037 [details]
File: program.log

Comment 6 MstrPi 2024-07-20 11:27:02 UTC
Created attachment 2040038 [details]
File: packaging.log

Comment 7 MstrPi 2024-07-20 11:27:03 UTC
Created attachment 2040039 [details]
File: storage.log

Comment 8 MstrPi 2024-07-20 11:27:04 UTC
Created attachment 2040040 [details]
File: description

Comment 9 MstrPi 2024-07-20 11:27:07 UTC
Created attachment 2040041 [details]
File: journalctl

Comment 10 MstrPi 2024-07-20 11:27:08 UTC
Created attachment 2040042 [details]
File: environ

Comment 11 MstrPi 2024-07-20 11:27:09 UTC
Created attachment 2040043 [details]
File: os_info

Comment 12 MstrPi 2024-07-20 11:27:11 UTC
Created attachment 2040044 [details]
File: backtrace

Comment 13 MstrPi 2024-07-20 11:27:14 UTC
Created attachment 2040045 [details]
File: anaconda-tb

Comment 14 MstrPi 2024-07-20 11:27:15 UTC
Created attachment 2040046 [details]
File: packaging.log

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

Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:   File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 74, in efibootmgr
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:     return exec_func("efibootmgr", list(args), **kwargs)
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:   File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 372, in execWithCapture
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:     return _run_program(argv, stdin=stdin, root=root, log_output=log_output,
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:   File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 295, in _run_program
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:     output_string = output_string.decode("utf-8")
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]:                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 20 11:17:15 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3075]: UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 447-448: 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:46 UTC

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


Note You need to log in before you can comment on or make changes to this bug.