my local mirror stopped working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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"
rsync://mirror.csclub.uwaterloo.ca/centos/5.3/
/var/www/html/ks/centos/5.3/

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.

http://yum/ks/centos/5/updates/x86_64/repodata/filelists.sqlite.bz2:
[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 http://192.168.0.222/ks/
    * 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
popd
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"
rsync://mirror.csclub.uwaterloo.ca/centos/5.3/
/var/www/html/ks/centos/5.3/
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 :

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://yum/ks/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://yum/ks/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

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"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux