Bug 2292509 - pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode bytes in position 368-369: invalid continuation byte
Summary: pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't d...
Keywords:
Status: CLOSED DUPLICATE of bug 2292493
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:710109fa7a2827395920acdecf3...
: 2293862 2293889 2299022 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-15 16:56 UTC by windows119
Modified: 2024-12-19 16:20 UTC (History)
11 users (show)

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


Attachments (Terms of Use)
File: dbus.log (3.90 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: lsblk_output (3.92 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: anaconda.log (29.88 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: nmcli_dev_list (1012 bytes, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: program.log (13.78 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: packaging.log (12.91 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: storage.log (391.92 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: description (3.43 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: journalctl (1.28 MB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: environ (574 bytes, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: os_info (734 bytes, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: backtrace (3.45 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: anaconda-tb (1.73 MB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details
File: packaging.log (12.91 KB, text/plain)
2024-06-15 16:57 UTC, windows119
no flags Details

Description windows119 2024-06-15 16:56:58 UTC
Description of problem:
macbook air 2012 install second system(fedora)

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 368-369: invalid continuation byte

Additional info:
other involved packages: anaconda-gui-40.22.3-1.fc40.x86_64, python3-dasbus-1.7-6.fc40.noarch, python3-libs-3.12.2-2.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-WS-Live-40-1-14 rd.live.image quiet rhgb rdinit=/vtoy/vtoy
release:        Fedora release 40 (Forty)
type:           anaconda
reason:         pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode bytes in position 368-369: 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:        macbook air 2012 install second system(fedora)

Comment 1 windows119 2024-06-15 16:57:01 UTC
Created attachment 2037451 [details]
File: dbus.log

Comment 2 windows119 2024-06-15 16:57:04 UTC
Created attachment 2037452 [details]
File: lsblk_output

Comment 3 windows119 2024-06-15 16:57:08 UTC
Created attachment 2037453 [details]
File: anaconda.log

Comment 4 windows119 2024-06-15 16:57:10 UTC
Created attachment 2037454 [details]
File: nmcli_dev_list

Comment 5 windows119 2024-06-15 16:57:13 UTC
Created attachment 2037455 [details]
File: program.log

Comment 6 windows119 2024-06-15 16:57:15 UTC
Created attachment 2037456 [details]
File: packaging.log

Comment 7 windows119 2024-06-15 16:57:19 UTC
Created attachment 2037457 [details]
File: storage.log

Comment 8 windows119 2024-06-15 16:57:22 UTC
Created attachment 2037458 [details]
File: description

Comment 9 windows119 2024-06-15 16:57:26 UTC
Created attachment 2037459 [details]
File: journalctl

Comment 10 windows119 2024-06-15 16:57:29 UTC
Created attachment 2037460 [details]
File: environ

Comment 11 windows119 2024-06-15 16:57:31 UTC
Created attachment 2037461 [details]
File: os_info

Comment 12 windows119 2024-06-15 16:57:34 UTC
Created attachment 2037462 [details]
File: backtrace

Comment 13 windows119 2024-06-15 16:57:39 UTC
Created attachment 2037463 [details]
File: anaconda-tb

Comment 14 windows119 2024-06-15 16:57:41 UTC
Created attachment 2037464 [details]
File: packaging.log

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

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

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

Comment 17 Peter Jones 2024-12-19 16:20:46 UTC
*** Bug 2299022 has been marked as a duplicate of this bug. ***

Comment 18 Peter Jones 2024-12-19 16:20:48 UTC
*** Bug 2293889 has been marked as a duplicate of this bug. ***

Comment 19 Peter Jones 2024-12-19 16:20:50 UTC
*** Bug 2293862 has been marked as a duplicate of this bug. ***


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