Bug 2292493 - pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xff in position 104: invalid start byte
Summary: pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't d...
Keywords:
Status: CLOSED DUPLICATE of bug 2254801
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: anaconda-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8c9dccf1533bef5fefc74e15bd4...
: 2292509 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-15 12:39 UTC by Ferdinando Zaccaria
Modified: 2025-04-16 12:19 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-16 12:19:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dbus.log (3.85 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: lsblk_output (2.44 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: hawkey.log (179 bytes, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: lorax-packages.log (27.50 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: anaconda.log (62.71 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: nmcli_dev_list (1.49 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: program.log (9.41 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: packaging.log (1.05 MB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: storage.log (255.88 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: description (3.42 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: syslog (2.72 MB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: environ (948 bytes, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: os_info (653 bytes, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: backtrace (3.44 KB, text/plain)
2024-06-15 12:39 UTC, Ferdinando Zaccaria
no flags Details
File: anaconda-tb (4.13 MB, text/plain)
2024-06-15 12:40 UTC, Ferdinando Zaccaria
no flags Details
File: packaging.log (1.05 MB, text/plain)
2024-06-15 12:40 UTC, Ferdinando Zaccaria
no flags Details

Description Ferdinando Zaccaria 2024-06-15 12:39:03 UTC
Description of problem:
this bug still persist when install bootloader on my HP 620 please fix it

Version-Release number of selected component:
anaconda-40.22.3


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 0xff in position 104: invalid start byte

Additional info:
version:        40
kernel:         6.8.5-301.fc40.x86_64
addons:         com_redhat_kdump
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-E-dvd-x86_64-40 quiet
release:        Fedora release 40 (Forty)
type:           anaconda
package:        anaconda-40.22.3
reason:         pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xff in position 104: invalid start byte
product:        Fedora
hashmarkername: anaconda
executable:     /sbin/anaconda
cmdline:        /usr/bin/python3  /sbin/anaconda
comment:        this bug still persist when install bootloader on my HP 620 please fix it

Comment 1 Ferdinando Zaccaria 2024-06-15 12:39:08 UTC
Created attachment 2037427 [details]
File: dbus.log

Comment 2 Ferdinando Zaccaria 2024-06-15 12:39:10 UTC
Created attachment 2037428 [details]
File: lsblk_output

Comment 3 Ferdinando Zaccaria 2024-06-15 12:39:11 UTC
Created attachment 2037429 [details]
File: hawkey.log

Comment 4 Ferdinando Zaccaria 2024-06-15 12:39:13 UTC
Created attachment 2037430 [details]
File: lorax-packages.log

Comment 5 Ferdinando Zaccaria 2024-06-15 12:39:15 UTC
Created attachment 2037431 [details]
File: anaconda.log

Comment 6 Ferdinando Zaccaria 2024-06-15 12:39:17 UTC
Created attachment 2037432 [details]
File: nmcli_dev_list

Comment 7 Ferdinando Zaccaria 2024-06-15 12:39:19 UTC
Created attachment 2037433 [details]
File: program.log

Comment 8 Ferdinando Zaccaria 2024-06-15 12:39:27 UTC
Created attachment 2037434 [details]
File: packaging.log

Comment 9 Ferdinando Zaccaria 2024-06-15 12:39:29 UTC
Created attachment 2037435 [details]
File: storage.log

Comment 10 Ferdinando Zaccaria 2024-06-15 12:39:31 UTC
Created attachment 2037436 [details]
File: description

Comment 11 Ferdinando Zaccaria 2024-06-15 12:39:43 UTC
Created attachment 2037437 [details]
File: syslog

Comment 12 Ferdinando Zaccaria 2024-06-15 12:39:45 UTC
Created attachment 2037438 [details]
File: environ

Comment 13 Ferdinando Zaccaria 2024-06-15 12:39:46 UTC
Created attachment 2037439 [details]
File: os_info

Comment 14 Ferdinando Zaccaria 2024-06-15 12:39:48 UTC
Created attachment 2037440 [details]
File: backtrace

Comment 15 Ferdinando Zaccaria 2024-06-15 12:40:04 UTC
Created attachment 2037441 [details]
File: anaconda-tb

Comment 16 Ferdinando Zaccaria 2024-06-15 12:40:09 UTC
Created attachment 2037442 [details]
File: packaging.log

Comment 17 Jiri Konecny 2024-07-01 20:37:49 UTC
Hello,

seems that the EFI menu contains some not expected characters. Could you please share with us output of the efibootmgr tool?


As a workaround you might be able to install your system with inst.leavebootorder kernel boot parameter which will skip the problematic code.

https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#inst-leavebootorder

Comment 18 Jiri Konecny 2024-07-01 20:40:39 UTC
Another way is to use efibootmgr to remove problematic entries manually. The question is if some existing entry is broken or Anaconda is not covering your case. To know that we need the output.

Comment 19 Ferdinando Zaccaria 2024-07-08 09:43:31 UTC
i solved the problem with provided kernel paramater option thanks

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

12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 74, in efibootmgr
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return exec_func("efibootmgr", list(args), **kwargs)
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 372, in execWithCapture
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return _run_program(argv, stdin=stdin, root=root, log_output=log_output,
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 295, in _run_program
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:    output_string = output_string.decode("utf-8")
12:22:43,768 WARNING org.fedoraproject.Anaconda.Modules.Storage:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:22:43,770 WARNING org.fedoraproject.Anaconda.Modules.Storage:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 104: invalid start 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 21 Peter Jones 2024-12-19 16:19:02 UTC
efibootmgr is just showing you the data as it exists.  We can't do anything about the fact that data is sometimes not utf-8; it's whatever is in the EFI variable.  You're parsing this as utf-8, which isn't necessarily the case.

In any case the efibootmgr output doesn't seem to be included in this report, so that's required before we could even propose workarounds.

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

Comment 23 Katerina Koukiou 2025-04-16 12:19:13 UTC

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


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