#228 New yum cache preservation breaks application
Closed: Fixed Opened by jsteffan.

File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 141, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 198, in _check_db_version
if repo.repoXML.repoData.has_key(mdtype):
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 686, in
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 680, in _getRepoXML
self._loadRepoXML(text=self)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 649, in _loadRepoXML
if self.cache or self.metadataCurrent():
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 610, in metadataCurrent
if os.path.exists(self.metadata_cookie):
AttributeError: 'YumRepository' object has no attribute 'metadata_cookie'

Basically, repositories will continue to try to load over and over without success. If using a local repo, repositories will just fail to load or the application will hang.


A workaround, for now, is to rm -rf /var/tmp/*

A workaround, for now, is to rm -rf /var/tmp/*

This needs to be reproduced.

This needs to be reproduced.

I've not seen this happen again. If anyone runs into it, just use the workaround and clear all of /var/tmp and everything works again.

I've not seen this happen again. If anyone runs into it, just use the workaround and clear all of /var/tmp and everything works again.

Metadata Update from @jsteffan:
- Issue set to the milestone: 2.0.4 Release

Metadata