Bug 145547

Summary: yum fails to execute with a socket.error
Product: [Fedora] Fedora Reporter: William Lovaton <walovaton>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-29 18:44:57 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
strace from yum none

Description William Lovaton 2005-01-19 16:04:41 UTC
Description of problem:
Hi I installed FC3 in my office and home PCs and a few weeks ago yum
haven't been working due to some kind of network problem.

At home it works well (I'm not using a proxy).
At the office I have 3 computers with FC3 and all of them fails to
execute yum.  The thing is that it was working and I managed to pull
some updates.  The computers are 2 workstations and 1 production server.

I have the $http_proxy configured like this:
http://williama_lovaton:<password>@192.1.4.140:8080

Every single program that needs to connect to the internet works fine
(eg. wget).  Even yum used to work fine with this.

It fails with every command, for instance I do this:
[root@nalwalovaton ~]# yum check-update
Traceback (most recent call last):
  File "/usr/bin/yum", line 7, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 51, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 134, in getOptionsConfig
    self.conf = yumconf(configfile = yumconffile, root=root)
  File "/usr/lib/python2.3/site-packages/yum/config.py", line 327, in
__init__
    self._doFileRepo(fn)
  File "/usr/lib/python2.3/site-packages/yum/config.py", line 399, in
_doFileRepo
    doRepoSection(self, repoconf, section)
  File "/usr/lib/python2.3/site-packages/yum/config.py", line 413, in
doRepoSection
    mirrorurls = getMirrorList(mirrorlist)
  File "/usr/lib/python2.3/site-packages/yum/config.py", line 500, in
getMirrorList
    content = fo.readlines()
  File "/usr/lib/python2.3/site-packages/urlgrabber/keepalive.py",
line 391, in readlines
    line = self.readline()
  File "/usr/lib/python2.3/site-packages/urlgrabber/keepalive.py",
line 376, in readline
    new = self._raw_read(self._rbufsize)
  File "/usr/lib/python23.zip/httplib.py", line 409, in read
    s = self.fp.read(amt)
  File "/usr/lib/python23.zip/socket.py", line 301, in read
    data = self._sock.recv(recv_size)
socket.error: (104, 'Connection reset by peer')


This is my yum.conf:
[root@nalwalovaton ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


This is my /etc/yum.repos.d/fedora-updates.repo:
[root@nalwalovaton ~]# cat /etc/yum.repos.d/fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
#baseurl=http://fr.rpmfind.net/linux/fedora/core/updates/3/i386/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1


I'll attach an strace later.

Comment 1 William Lovaton 2005-01-19 16:11:53 UTC
Created attachment 109970 [details]
strace from yum

I got this strace with this command:
strace yum check-update &> yum.log

It's about 360KB.  I changed the locale to "en_US" during the test, it was
"es_CO.UTF-8"

Comment 2 Seth Vidal 2005-07-29 18:44:57 UTC
I believe the proxy_username, proxy_pass and proxy options in yum's should solve
this problem. Upgrade to the latest release of yum and try them.

closing as upstream.