Bug 1284656 - dnf system-upgrade download fails with UnicodeDecodeError; system_upgrade.py, line 595
Summary: dnf system-upgrade download fails with UnicodeDecodeError; system_upgrade.py,...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugin-system-upgrade
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-23 19:36 UTC by Leszek Matok
Modified: 2016-12-20 16:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 16:12:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Leszek Matok 2015-11-23 19:36:01 UTC
I'm reporting this against Fedora 23 as a broken upgrade path, but I'm attempting an upgrade from Fedora 21:

# dnf system-upgrade download --distro-sync --releasever 23
(...lots of text, asking if I'm sure, more text...)
  zlib.i686 1.2.8-9.fc23                                                        
  zlib.x86_64 1.2.8-9.fc23                                                      
  zlib-devel.x86_64 1.2.8-9.fc23                                                
  zvbi.x86_64 0.2.33-19.fc23                                                    

Ukończono.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 471, in format
    record.message = record.getMessage()
  File "/usr/lib64/python2.7/logging/__init__.py", line 335, in getMessage
    msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)
Logged from file system_upgrade.py, line 595
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 471, in format
    record.message = record.getMessage()
  File "/usr/lib64/python2.7/logging/__init__.py", line 335, in getMessage
    msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)
Logged from file system_upgrade.py, line 595


As usual, it's caused by translation:

# echo $LANG
pl_PL.UTF-8

# LANG=C dnf system-upgrade download --distro-sync --releasever 23
(...again lots of text, all downloads [SKIPPED]...)
  zlib.i686 1.2.8-9.fc23                                                        
  zlib.x86_64 1.2.8-9.fc23                                                      
  zlib-devel.x86_64 1.2.8-9.fc23                                                
  zvbi.x86_64 0.2.33-19.fc23                                                    

Complete!
Download complete! Use 'dnf system-upgrade reboot' to start the upgrade.



DNF package versions:
dnf-plugins-core-0.1.5-2.fc21.noarch
dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch
dnf-0.6.4-7.fc21.noarch

Comment 1 Fedora End Of Life 2016-11-24 13:40:17 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. 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 Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2016-12-20 16:12:33 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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