Bug 1055042

Summary: [abrt] yum-cron: socket.py:571:create_connection:error: [Errno 111] Connection refused
Product: [Fedora] Fedora Reporter: Bob <bobkaiser1>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: admiller, ffesti, packaging-team-maint, zpavlas
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/72b39ebcc9bddac6fccf403c6c5b7fce1cfa9759
Whiteboard: abrt_hash:bf82ab375a3de98cfd957244d11f79243447df0d
Fixed In Version: yum-3.4.3-132.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-23 11:09:35 UTC Type: ---
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
File: backtrace
none
File: environ none

Description Bob 2014-01-18 08:41:32 UTC
Version-Release number of selected component:
yum-cron-3.4.3-129.fc20

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/python -tt /usr/sbin/yum-cron /etc/yum/yum-cron-hourly.conf
dso_list:       python-libs-2.7.5-9.fc20.x86_64
executable:     /usr/sbin/yum-cron
kernel:         3.12.7-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
socket.py:571:create_connection:error: [Errno 111] Connection refused

Traceback (most recent call last):
  File "/usr/sbin/yum-cron", line 698, in <module>
    main()
  File "/usr/sbin/yum-cron", line 695, in main
    base.updatesCheck()
  File "/usr/sbin/yum-cron", line 606, in updatesCheck
    self.emitMessages()
  File "/usr/sbin/yum-cron", line 681, in emitMessages
    map(lambda x: x.sendMessages(), self.emitters)
  File "/usr/sbin/yum-cron", line 681, in <lambda>
    map(lambda x: x.sendMessages(), self.emitters)
  File "/usr/sbin/yum-cron", line 233, in sendMessages
    s.connect(self.opts.email_host)
  File "/usr/lib64/python2.7/smtplib.py", line 310, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib64/python2.7/smtplib.py", line 285, in _get_socket
    return socket.create_connection((host, port), timeout)
  File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

Local variables in innermost frame:
err: error(111, 'Connection refused')
proto: 6
canonname: ''
af: 2
sock: <socket._socketobject object at 0x8171980>
host: 'localhost'
timeout: <object object at 0x7f03211ef0b0>
res: (2, 1, 6, '', ('127.0.0.1', 25))
socktype: 1
address: ('localhost', 25)
sa: ('127.0.0.1', 25)
source_address: None
port: 25
_: error(111, 'Connection refused')

Comment 1 Bob 2014-01-18 08:41:42 UTC
Created attachment 851917 [details]
File: backtrace

Comment 2 Bob 2014-01-18 08:41:52 UTC
Created attachment 851918 [details]
File: environ

Comment 3 Zdeněk Pavlas 2014-01-20 09:34:16 UTC
Please set "email_host" in yum-cron.conf to your smtp server, or make sure smtpd runs on localhost.  Since yum-cron is not interactive, I'd say a traceback in this case is acceptable.

Comment 4 Zdeněk Pavlas 2014-01-20 10:02:15 UTC
Changed my mind.. In general, yum-cron could use many emitters, and failure in any of them should not be fatal; others should run.  Fixed upstream.

Comment 5 Fedora Update System 2014-01-22 10:54:28 UTC
yum-3.4.3-132.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-3.4.3-132.fc20

Comment 6 Fedora Update System 2014-01-22 11:08:44 UTC
yum-3.4.3-132.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/yum-3.4.3-132.fc19

Comment 7 Fedora Update System 2014-01-23 11:09:35 UTC
yum-3.4.3-132.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2014-02-06 03:52:49 UTC
yum-3.4.3-132.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.