Bug 1425776 - yum-cron traceback because encoding error
Summary: yum-cron traceback because encoding error
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: yum
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Sheltren
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-22 12:03 UTC by Milan Kerslager
Modified: 2019-08-22 16:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-22 16:08:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
traceback (encoding error) (3.20 KB, text/plain)
2017-02-22 12:03 UTC, Milan Kerslager
no flags Details
a patch to decode unicode (536 bytes, patch)
2017-02-22 12:54 UTC, Milan Kerslager
no flags Details | Diff

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.


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