Bug 1425776

Summary: yum-cron traceback because encoding error
Product: [Fedora] Fedora EPEL Reporter: Milan Kerslager <milan.kerslager>
Component: yumAssignee: Jeff Sheltren <sheltren>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: ahabig, dmach, james.antill, mdomonko, sheltren
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-22 16:08:28 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:
Attachments:
Description Flags
traceback (encoding error)
none
a patch to decode unicode none

Description Milan Kerslager 2017-02-22 12:03:31 UTC
Created attachment 1256425 [details]
traceback (encoding error)

I receive error message from yum-cron (daily, yum-cron is set to emit message by email) because of encoding error:

yum-cron:230:sendMessages:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 76: ordinal not in range(128)

This line 230 contains:

output = ''.join(self.output)

The output is in UTF-8 (and not in ASCII) probably because I'm using cs_CZ.UTF-8 locale. Similar bug has been fixed in the past, see bug #1202680

Traceback is attached.

Comment 1 Milan Kerslager 2017-02-22 12:54:04 UTC
Created attachment 1256441 [details]
a patch to decode unicode

I'm not sure if my patch is correct, but traceback is gone.

Comment 2 Habig, Alec 2017-02-22 14:36:16 UTC
Good catch!

Reassigning bug to "yum" itself, though, since yum-cron isn't a standalone package anymore.  Looks like it will be straightforward for the yum guys to fix.

Comment 3 Michal Domonkos 2019-08-22 16:08:28 UTC
Michal, thanks for the report.  Unfortunately, we're no longer releasing any updates to yum in Fedora.  It's even gone from Fedora 31 (which is soon to be released).  The general recommendation in these cases is to just migrate to dnf.

Comment 4 Michal Domonkos 2019-08-22 16:08:56 UTC
s/Michal/Milan/ :)

Comment 5 Michal Domonkos 2019-08-22 16:11:49 UTC
Oh, I apologize.  I just noticed that the bug was filed against EPEL (i.e. CentOS-7).  That being said, I have created a clone for RHEL-7 where we will track this and possibly fix in an upcoming minor distro update:

https://bugzilla.redhat.com/show_bug.cgi?id=1744639

Once that happens, CentOS-7 should receive the patched "yum" build later as well.