Bug 180061 - yum crashed after having problems finding a mirror
yum crashed after having problems finding a mirror
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks: FC5Target
  Show dependency treegraph
 
Reported: 2006-02-05 04:33 EST by Rodd Clarkson
Modified: 2014-01-21 17:53 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-27 16:26:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rodd Clarkson 2006-02-05 04:33:15 EST
Description of problem:

Running yum I get the following output when it struggles to find a mirror.

It's worth noting that my internet connection wasn't 100%, but I still wouldn't
expect this sort of an outcome (traceback instead of a nice message).

Here's the output:

acl-2.2.34-1.i386.rpm     100% |=========================| 7.0 kB    00:12
---> Package acl.i386 0:2.2.34-1 set to be updated
---> Downloading header for xorg-x11-drv-i810 to pack into transaction set.
http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386/Fedora/RPMS/xorg-x11-drv-i810-1.4.1.3-2.i386.rpm:
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
http://mirror.hiwaay.net/redhat/fedora/linux/core/development/i386/Fedora/RPMS/xorg-x11-drv-i810-1.4.1.3-2.i386.rpm:
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.kernel.org/fedora/core/development/i386/Fedora/RPMS/xorg-x11-drv-i810-1.4.1.3-2.i386.rpm:
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://distro.ibiblio.org/pub/linux/distributions/fedora/linux/core/development/i386/Fedora/RPMS/xorg-x11-drv-i810-1.4.1.3-2.i386.rpm:
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 138, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 379, in
buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 212, in resolveDeps
    self.populateTs(test=1)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 170, in populateTs
    self.downloadHeader(txmbr.po)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 708, in
downloadHeader
    cache=repo.http_caching != 'none',
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 625, in get
    http_headers=headers,
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 414, in urlgrab
    return self._mirror_try(func, url, kw)
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 392, in
_mirror_try
    mirrorchoice = self._get_mirror(gr)
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 290, in
_get_mirror
    return gr.mirrors[gr._next]
IndexError: list index out of range
[rodd@localhost ~]$
Comment 1 Rodd Clarkson 2006-02-05 04:35:24 EST
Here's another example (which I think says the same thing, but it might be useful)

redhat-artwork-0.235-2.i3 100% |=========================| 981 kB    00:30
---> Package redhat-artwork.i386 0:0.235-2 set to be updated
---> Downloading header for pam to pack into transaction set.
pam-0.99.3.0-1.i386.rpm   100% |=========================|  24 kB    00:30
http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386/Fedora/RPMS/pam
-0.99.3.0-1.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
http://mirror.hiwaay.net/redhat/fedora/linux/core/development/i386/Fedora/RPMS/p
am-0.99.3.0-1.i386.rpm: [Errno 4] IOError: <urlopen error (-3, 'Temporary failur
e in name resolution')>
Trying other mirror.
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 138, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 379, in buildTra
nsaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 212, in resolveD eps
    self.populateTs(test=1)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 170, in populate Ts
    self.downloadHeader(txmbr.po)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 708, in download
Header
    cache=repo.http_caching != 'none',
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 625, in get
    http_headers=headers,
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 414, in url
grab
    return self._mirror_try(func, url, kw)
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 392, in _mi
rror_try
    mirrorchoice = self._get_mirror(gr)
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 290, in _ge
t_mirror
    return gr.mirrors[gr._next]
IndexError: list index out of range
[rodd@localhost Desktop]$
Comment 2 Seth Vidal 2006-02-24 16:34:34 EST
I believe this is now fixed in the latest urlgrabber release in rawhide.


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