Bug 2254801
Summary: | pyanaconda.modules.common.errors.general.AnacondaError: 'utf-8' codec can't decode byte 0xff in position 102: invalid start byte | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ira Malinich <thub> | ||||||||||||||||||||||||||||||||
Component: | anaconda | Assignee: | anaconda-maint | ||||||||||||||||||||||||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||||||||||||
Version: | rawhide | CC: | abbasnadir12345, anaconda-maint, cayala.w, ed1688, evert.r.1616, felipeaguilerasalta, harleystack, jxctno, kkoukiou, mattgatto, mkolman, o1sac00l, sajednemli39, thub, vslavik, w, yn1v, zacca06 | ||||||||||||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||||||||||
Whiteboard: | abrt_hash:f50a399bff47277046d5a89c81f72026cea71472d5da3442fd1404ef1aba6a9a;VARIANT_ID=workstation; | ||||||||||||||||||||||||||||||||||
Fixed In Version: | anaconda-43.17-1.fc43 | Doc Type: | If docs needed, set a value | ||||||||||||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||||||||||||
Last Closed: | 2025-05-14 07:50:40 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
Ira Malinich
2023-12-16 08:15:12 UTC
Created attachment 2004515 [details]
File: anaconda-tb
Created attachment 2004516 [details]
File: backtrace
Created attachment 2004517 [details]
File: os_info
Created attachment 2004518 [details]
File: environ
Created attachment 2004519 [details]
File: journalctl
Created attachment 2004520 [details]
File: description
Created attachment 2004521 [details]
File: storage.log
Created attachment 2004522 [details]
File: packaging.log
Created attachment 2004523 [details]
File: program.log
Created attachment 2004524 [details]
File: nmcli_dev_list
Created attachment 2004525 [details]
File: lvm.log
Created attachment 2004526 [details]
File: anaconda.log
Created attachment 2004527 [details]
File: lsblk_output
Created attachment 2004528 [details]
File: dbus.log
Created attachment 2004529 [details]
File: packaging.log
This message is a reminder that Fedora Linux 39 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '39'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 39 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Looks like the output from efibootmgr contains some non-UTF-8 characters & Anaconda can't really handle that: Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: INFO:anaconda.core.threads:Thread Failed: AnaTaskThread-InstallBootloaderTask-1 (139741458593472) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: ERROR:anaconda.modules.common.task.task:Thread AnaTaskThread-InstallBootloaderTask-1 has failed: Traceback (most recent call last): Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 280, in run Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: threading.Thread.run(self) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/threading.py", line 989, in run Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: self._target(*self._args, **self._kwargs) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: self._task_run_callback() Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: self._set_result(self.run()) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: ^^^^^^^^^^ Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/installation.py", line 139, in run Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: install_boot_loader(storage=self._storage) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/utils.py", line 215, in install_boot_loader Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: storage.bootloader.write() Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 134, in write Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: self.install() Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 143, in install Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: self.remove_efi_boot_target() Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 105, in remove_efi_boot_target Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: buf = self.efibootmgr(capture=True) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/bootloader/efi.py", line 74, in efibootmgr Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: return exec_func("efibootmgr", list(args), **kwargs) Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 372, in execWithCapture Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: return _run_program(argv, stdin=stdin, root=root, log_output=log_output, Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: File "/usr/lib64/python3.12/site-packages/pyanaconda/core/util.py", line 295, in _run_program Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: output_string = output_string.decode("utf-8") Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Dec 16 00:59:31 localhost-live org.fedoraproject.Anaconda.Modules.Storage[2870]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 102: invalid start byte Looks like at this stage we just call efibootmgr to list whats present on the system & the data it returns contains a non-UTF-8 character. IIRC this is not the first time we have seen this. I guess the question is who should do the input sanitation, efibootmgr itself or does Anaconda need to somehow make sure to survive if the strings returned by efibootmgr are not valid UTF-8 ? *** Bug 2256844 has been marked as a duplicate of this bug. *** *** Bug 2321364 has been marked as a duplicate of this bug. *** *** Bug 2322014 has been marked as a duplicate of this bug. *** *** Bug 2327946 has been marked as a duplicate of this bug. *** *** Bug 2278057 has been marked as a duplicate of this bug. *** *** Bug 2279684 has been marked as a duplicate of this bug. *** *** Bug 2284061 has been marked as a duplicate of this bug. *** *** Bug 2308478 has been marked as a duplicate of this bug. *** This should be fixed on efibootmgr side to not print invalid utf-8, but we can introduce a temporary fix in anaconda till this is properly resolved: https://github.com/rhinstaller/anaconda/pull/6060 Possible fix on the efibootmgr side is: https://github.com/rhboot/efibootmgr/pull/221/ This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42. We still see this, we probably missed something in the 6060 anaconda PR. *** Bug 2292493 has been marked as a duplicate of this bug. *** *** Bug 2359842 has been marked as a duplicate of this bug. *** This should be fixed by: commit f3720e73172cc77844cb5c760f5b5b09bd57a812 Author: Katerina Koukiou <k.koukiou> Date: Wed Apr 16 14:26:57 2025 +0200 pyanaconda: storage: efi: never try to decode utf8 when calling efibootmgr *** Bug 2363865 has been marked as a duplicate of this bug. *** *** Bug 2363925 has been marked as a duplicate of this bug. *** |