Bug 1202680
Summary: | yum-cron crash | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Frank Büttner <bugzilla> |
Component: | yum | Assignee: | Michal Domonkos <mdomonko> |
Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | emrakova, fschwarz, helge+fedora, james.antill, milan.kerslager, vmukhame |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | yum-3.4.3-138.el7 | Doc Type: | If docs needed, set a value |
Doc Text: |
no docs required
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 05:28:40 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
Frank Büttner
2015-03-17 08:05:29 UTC
Same problem here. The error message is not produced every time, but sometimes I receive a bunch of them. Then it stop making noise until another bunch of them. Today I found the problem. In the files: /etc/cron.daily/0yum-daily.cron /etc/cron.hourly/0yum-hourly.cron the line exec /usr/sbin/yum-cron exec /usr/sbin/yum-cron /etc/yum/yum-cron-hourly.conf must change to LANG=C exec /usr/sbin/yum-cron LANG=C exec /usr/sbin/yum-cron /etc/yum/yum-cron-hourly.conf than it will work The real problem is this line: msg = MIMEText(''.join(self.output)) from /usr/sbin/yum-cron If the message contains non ascii char's it crash. This will happens, because yum will generate it output in respect of the system language. So there are two options, first fix from comment #5 or fix /usr/sbin/yum-cron by change msg = MIMEText(''.join(self.output)) to msg = MIMEText(''.join(self.output),_charset='utf-8') Upstream pull request: https://github.com/rpm-software-management/yum/pull/7 upstream pull request merged since Feb 29 - any extra action required to get this included in RHEL? (In reply to Felix Schwarz from comment #11) > upstream pull request merged since Feb 29 - any extra action required to get > this included in RHEL? No extra action required, this fix will be delivered in RHEL7.3. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2397.html |