Red Hat Bugzilla – Bug 172285
Yum should do sanity checks on repomd.xml
Last modified: 2014-01-21 17:53:00 EST
Recently, one or more yum repositories had present but empty repomd.xml files,
causing yum to bomb, giving an error that it could not load repomd.xml. Yum
should, upon downloading a repomd.xml, check to make sure the file is not empty
and a valid xml file with the correct schema. If not it should consider that
repository broken and move on to the next one.
could you please provide the error message you get?
Here is the error. This has been reported by a couple of people on the lists.
(I'm not losing my mind ;)
# yum update
Setting up Update Process
Setting up Repos
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 0 B 00:00
//var/cache/yum/updates/repomd.xml:1: parser error : Document is empty
//var/cache/yum/updates/repomd.xml:1: parser error : Start tag expected, '<'
Cannot open/read repomd.xml file for repository: updates
Error importing repomd.xml from updates: Error: could not parse file
are you using a mirrorlist or a single baseurl?
I'm using a mirror list with yum-2.4.0-0.fc4
You're using mirrorlists for that repository? If so then that means that all of
the mirrors are damaged the same way.
yum 2.4.0 is validating the repomd.xml, seeing it has no other place to get a
valid one from and exiting b/c the repository has failed out.
If you could, provide your yum.conf and all of your .repo files from
Created attachment 122334 [details]
Created attachment 122335 [details]
Created attachment 122336 [details]
Created attachment 122337 [details]
Created attachment 122338 [details]
So I've attached my yum.conf and all of the files in my yum.repos.d. They're not
terribly interesting however, they're just the stock files, but you asked so I'm
happy to oblige. Sorry it took so long.
I just realized that the files I've attached are from an FC3 machine, running
yum -2.2.2-0.fc3, which is the one that I have most recently seen the error (as
of last night), but I have seen this same thing happen on my FC4 machines as well.
You're sure this has happened on a 2.4.X release of yum?
on 2.2.X this could definitely happen buton 2.4.0 or 2.4.1 I doubt it.
try 2.4.1 from FC4 updates and let me know.
but don't give me two different reports in this bug - that's not helpful.
I know and I'm sorry about that. I had sort of forgotten about this bug for a
while, since I hadn't seen the symptom in a while. The other night I got the
error again, and so I was reminded about it and I uploaded the repo files from
the machine that most recently produced the error. After I uploaded the files I
realized that that particular machine is only FC3 and so I posted the comment
expalining the situation. But that's the way it goes when you have as many
machines and I do; it's hard to keep them all straight. But I'm 95% sure that I
have seen this bug on some of my FC4 machines, though none recently.
Perhaps it's best if you just forget about this for now. I'll close the bug, and
if I see it again on an FC4 machine, then I'll reopen it and post details.