[CentOS] my local mirror stopped working

Alan McKay alan.mckay at gmail.com
Wed Nov 18 18:24:37 UTC 2009

Hey folks,

I've had a local mirror set up for some time now and it has always
worked, but suddently stopped.   I don't think the fact that it
stopped work has anything to do with when I blew away that machine and
changed it from Centos 5.3 to a Fedora Core 11 box.  But I'm not sure
how that could make any difference since it is just serving that stuff
over the web.  It still works great for Kickstart installs.  I still
have a nightly cron job to update from my closest mirror thusly :

rsync  -avSHP --delete --exclude "local*" --exclude "isos"

Here is the error I get when trying to run yum now.  Note that I check
for the file it is complaining about and it exists but is .gz format
and not .bz2.   I guess I could gunzip then bzip to fix the problem?
But I'd really like to understand why this started.

[Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: failure: repodata/filelists.sqlite.bz2 from updates: [Errno
256] No more mirrors to try.

As I've reported before to the list, here is how I've set it up :

    * On my PC I've created /var/www/html/ks for doing kickstart
installs, and it shows up at
    * the Centos 5.3 DVDs got downloaded - both 32 bit and 64 bit

mkdir /mnt/C5.3_{32,64}
chmod 0777 /mnt/C5.3_{32,64}
mount -ro loop /home/amckay/Desktop/CentOS-5.3-i386-bin-DVD.iso /mnt/C5.3_32
mount -ro loop /home/amckay/Desktop/CentOS-5.3-x86_64-bin-DVD.iso /mnt/C5.3_64
mkdir -p /var/www/html/ks/centos/5.3/{os,updates}/{i386,x86_64}
pushd /var/www/html/ks/centos/
ln -s 5.3 5
rsync -avHPS /mnt/C5.3_64/ /var/www/html/ks/centos/5.3/os/x86_64/
rsync -avHPS /mnt/C5.3_32/ /var/www/html/ks/centos/5.3/os/i386/
rsync  -avSHP --delete --exclude "local*" --exclude "isos"
chown -R apache:apache /var/www/html/ks/

And when I do a Kickstart install, it works just fine.   AFter the
install in the %post I change the Centos-Base.repo to point to my
local repo thus :

name=CentOS-$releasever - Base

#released updates
name=CentOS-$releasever - Updates

Note that the name "yum" does properly resolve to my box.

“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"

More information about the CentOS mailing list