yum playing silly sods

Andrew Farris fedora at andrewfarris.com
Fri Oct 15 23:40:03 UTC 2004


On Fri, 2004-10-15 at 12:42 -0400, Ricardo Veguilla wrote:
> On Fri, 2004-10-15 at 17:26 +0100, Paul wrote:
> > Hi,
> > 
> > For some reason, yum keeps giving me this when I try to do an update -
> > anyone seeing the same?
> > 
> > Traceback (most recent call last):
> >   File "/usr/share/yum-cli/yummain.py", line 149, in ?
> >     main(sys.argv[1:])
> >   File "/usr/share/yum-cli/yummain.py", line 96, in main
> >     (result, resultmsgs) = base.buildTransaction() 
> >   File "/usr/lib/python2.3/site-packages/yum/__init__.py", line 168, in
> > buildTransaction
> >     (rescode, restring) = self.resolveDeps()
> >   File "/usr/lib/python2.3/site-packages/yum/depsolve.py", line 170, in
> > resolveDeps
> >     self.populateTs(test=1)
> >   File "/usr/lib/python2.3/site-packages/yum/depsolve.py", line 128, in
> > populateTs
> >     self.downloadHeader(po)
> >   File "/usr/lib/python2.3/site-packages/yum/__init__.py", line 418, in
> > downloadHeader
> >     end=end, checkfunc=checkfunc, copy_local=1)
> >   File "/usr/lib/python2.3/site-packages/yum/repos.py", line 432, in get
> >     checkfunc=checkfunc)
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/mirror.py", line
> > 414, in urlgrab
> >     return self._mirror_try(func, url, kw)
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/mirror.py", line
> > 400, in _mirror_try
> >     return func_ref( *(fullurl,), **kwargs )
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/grabber.py", line
> > 597, in urlgrab
> >     return self._retry(opts, retryfunc, url, filename)
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/grabber.py", line
> > 529, in _retry
> >     return apply(func, (opts,) + args, {})
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/grabber.py", line
> > 583, in retryfunc
> >     fo = URLGrabberFileObject(url, filename, opts)
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/grabber.py", line
> > 705, in __init__
> >     self._do_open()
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/grabber.py", line
> > 749, in _do_open
> >     fo, hdr = self._make_request(req, opener)
> >   File "/usr/lib/python2.3/site-packages/urlgrabber/grabber.py", line
> > 832, in _make_request
> >     if isinstance(e.reason, TimeoutError):
> > AttributeError: IOError instance has no attribute 'reason'
> > 
> > yum 2.1.7-2
> > 
> 
> I was having the same problem, did a "yum clean all", and now yum is
> working ok. I was going to file a bug after yum finish updating (just to
> be sure its working alright).

I had the same problem as well, however rather than cleaning all I only
deleted the repo metadata files in /var/cache/yum/development:
rm -f /var/cache/yum/development/*xml*

Immediately running yum again fixed this issue and it has not occurred
again.  The metadata files had just been downloaded from the same mirror
prior to the 2.1.7-2 update of yum, but the new version did not like the
files downloaded by the older version.  I do think that deserves some
bugzilla now that others have seen it too.
- andrew




More information about the fedora-test-list mailing list