Bug 2292493

Summary: pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xff in position 104: invalid start byte
Product: [Fedora] Fedora Reporter: Ferdinando Zaccaria <zacca06>
Component: anacondaAssignee: anaconda-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 40CC: anaconda-maint, jkonecny, kkoukiou, mkolman, nfrayer, pjones, rharwood, slavik.vladimir, windows119, w, zacca06
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8c9dccf1533bef5fefc74e15bd42ff7a188839cdcdccd2d8f47260f76a86052d;VARIANT_ID=;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-16 12:19:13 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: hawkey.log
none
File: lorax-packages.log
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: syslog
none
File: environ
none
File: os_info
none
File: backtrace
none
File: anaconda-tb
none
File: packaging.log none

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 ***