Bug 1279058

Summary: dnf system-upgrade in non-unicode terminal throws error
Product: [Fedora] Fedora Reporter: Mario Wenzel <maweki>
Component: dnf-plugin-system-upgradeAssignee: Will Woods <wwoods>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame, wwoods, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 20:15:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mario Wenzel 2015-11-07 14:57:09 UTC
Description of problem:

I am running sudo dnf system-upgrade download --releasever=23 --best on a fedora 22 server installation via ssh. This is not a unicode-terminal.

After running the comand I get

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 0xc2 in position 9: ordinal not in range(128)
Logged from file system_upgrade.py, line 607
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 0xc2 in position 9: ordinal not in range(128)
Logged from file system_upgrade.py, line 607
The downloaded packages were saved in cache till the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

so it seems to be successful but still throws an error because some print statements didn't work.



Version-Release number of selected component (if applicable):
dnf-0:1.1.3-1.fc22.noarch
dnf-plugin-system-upgrade 0.7.0

How reproducible:


Steps to Reproduce:
1. Use Non-Unicode console (maybe ssh)
2. run sudo dnf system-upgrade download --releasever=23 --best

Actual results:
Error message


Expected results:
Whatever text should have been printed, including the unicode characters.


Additional info:

Comment 1 Honza Silhan 2015-11-09 13:50:56 UTC
This could be fixed together with bug 1278031 by applying [1].

[1] https://github.com/rpm-software-management/dnf-plugin-system-upgrade/pull/38

Comment 2 Fedora End Of Life 2016-07-19 20:15:26 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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.