Hi Matt,
Thanks for your response.
My files in 5/x86_64/repodata were not modified since July 9. Odd, maybe.
I deleted that directory and re-ran the rsync (pulling from the RIT mirror). Now I got
files from July 12 or so.
And then my package install succeeded. But now I have a similar but different problem:
[root(a)node-r4-u2-p15-o23.local] ~ [0]
# yum install gcc-c++
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.1.2-48.el5 set to be updated
--> Processing Dependency: libstdc++-devel = 4.1.2-48.el5 for package: gcc-c++
--> Running transaction check
---> Package libstdc++-devel.x86_64 0:4.1.2-48.el5 set to be updated
epel/filelists_db | 0 B 00:00
ftp://repo.local/epel/5/x86_64/repodata/332c61ed40624a701bdcb14a2f346e012b0a5ce2-filelists.sqlite.bz2:
[Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/332c61ed40624a701bdcb14a2f346e012b0a5ce2-filelists.sqlite.bz2
from epel: [Errno 256] No more mirrors to try.
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
That filelists.sqlite.bz2 file does not seem to be there in my repo:
[mirror@repo repodata]$ pwd
/gpfs/fs0/repos/pub/epel/5/x86_64/repodata
[mirror@repo repodata]$ ls -alh
total 10M
drwxr-xr-x 2 mirror mirror 8.0K Jul 21 08:11 .
drwxr-xr-x 5 mirror mirror 512K Jul 12 23:29 ..
-rw-r--r-- 1 mirror mirror 3.2M Jul 12 23:29
840fe165b79def06544d5f60ea0c16a7a1ea9c20-primary.sqlite.bz2
-rw-r--r-- 1 mirror mirror 1.7M Jul 12 23:17
a1ae86a09a1da6b7e50d224e86ca56b0d88089ca-other.sqlite.bz2
-rw-r--r-- 1 mirror mirror 161K Jul 12 23:29
a6fdf3e6831d98ef69c8593f84031bab38991558-comps-el5.xml.gz
-rw-r--r-- 1 mirror mirror 1.8M Jul 12 23:16
ae286bf1ecd61697c405aedf5279d52ae3ade897-other.xml.gz
-rw-r--r-- 1 mirror mirror 1.9M Jul 12 23:16
f67a478231fd22df951b8ac64a8925daf97f443e-primary.xml.gz
-rw-r--r-- 1 mirror mirror 3.5K Jul 21 08:11 repomd.xml
-rw-r--r-- 1 mirror mirror 246K Jul 21 08:11 updateinfo.xml.gz
But clearly it's there in the upstream mirror:
http://mirrors.rit.edu/epel/5/x86_64/repodata/
So something must be wrong with my rsync script.
[mirror@repo ~]$ cat epel_sync.sh
#!/bin/bash
#http://fedoraproject.org/wiki/Infrastructure/Mirroring
#http://mirrors.fedoraproject.org/publiclist/EPEL/
date > /tmp/rsync_epel.log
rsync -avH --exclude '2*' --exclude '3*' --exclude '4*'
--numeric-ids --delete --delete-after --delay-updates
rsync://mirrors.rit.edu/epel
/gpfs/fs0/repos/pub/epel >>/tmp/rsync_epel.log 2>/tmp/rsync_epel_err.log
date >> /tmp/rsync_epel.log
Looks like I'm missing the front slash in my excludes! After adding that, now it
works.
Thanks for helping me figure it out.
Regards,
Alex
On Wed, 21 Jul 2010 13:00:57 -0500
<Matt_Domsch(a)Dell.com> wrote:
That's not the right primary file. Are you sure your repomd.xml
file in that repodata directory is correct?
$ sha256sum repomd.xml
3f63f3d59c8b31391ae097d0e7a2c0787880b69aed64fc7481b7ea660c8efc0d repomd.xml
Which matches what the metalink is returning right now:
<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0"
xmlns="http://www.metalinker.org/"
type="dynamic" pubdate="Wed, 21 Jul 2010 17:57:28 GMT"
generator="mirrormanager"
xmlns:mm0="http://fedorahosted.org/mirrormanager">
<files>
<file name="repomd.xml">
<mm0:timestamp>1279714313</mm0:timestamp>
<size>3506</size>
<verification>
<hash type="md5">b485776907100b065880b277afbbb83c</hash>
<hash
type="sha1">511f2ddd05c5d93db5091850b43acf6019f55300</hash>
<hash
type="sha256">3f63f3d59c8b31391ae097d0e7a2c0787880b69aed64fc7481b7ea660c8efc0d</hash>
<hash
type="sha512">91782ab601d11173a30c6defbfa9ef0d40add147ae8f441725ea4de96e7bdefaadf259aadb313f0b6e21f0221099fc1d4cc85c5701f113e7a574805313e8eac1</hash>
</verification>
<resources maxconnections="1">
<url protocol="http" type="http" location="US"
preference="100">http://humbolt.us.dell.com/pub/epel/5/x86_6...
</resources>
</file>
</files>
</metalink>
And my repomd.xml file references primary_db with a different hash than yours:
<data type="primary_db">
<location
href="repodata/840fe165b79def06544d5f60ea0c16a7a1ea9c20-primary.sqlite.bz2"/>
<checksum
type="sha">840fe165b79def06544d5f60ea0c16a7a1ea9c20</checksum>
<timestamp>1278991754</timestamp>
<size>3342588</size>
<open-size>14161920</open-size>
<open-checksum
type="sha">a3af07c6e8f969949f7f94b88c7d3786b315446e</open-checksum>
<database_version>10</database_version>
</data>
--
Matt Domsch
Technology Strategist
Dell | Office of the CTO
-----Original Message-----
From: Alex Chekholko [mailto:chekh@genomics.upenn.edu]
Sent: Wednesday, July 21, 2010 12:51 PM
To: Domsch, Matt
Cc: mirror-admin(a)fedoraproject.org
Subject: yum q was:Re: would like to become public EPEL mirror
Hi Matt,
Thanks for your reply. I followed those instructions and now my mirror shows up in the
public mirror list.
I'm having some trouble with yum metadata checking. I had thought it was a problem
specific to EPEL mirrors, but maybe not. Do you have a suggestion for the best mailing
list to ask?
Here's the problem I'm having:
[root@node-r4-u2-p15-o23 ~]# yum install puppet Loaded plugins: fastestmirror Loading
mirror speeds from cached hostfile
addons | 951 B 00:00
base | 2.1 kB 00:00
epel | 3.4 kB 00:00
epel/primary_db | 0 B 00:00
ftp://repo.local/epel/5/x86_64/repodata/2ddfb9d264be4015af4134d43bf5fa860407cea8-primary.sqlite.bz2:
[Errno -1] Metadata file does not match checksum Trying other mirror.
epel/primary_db | 0 B 00:00
ftp://repo.local/epel/5/x86_64/repodata/2ddfb9d264be4015af4134d43bf5fa860407cea8-primary.sqlite.bz2:
[Errno -1] Metadata file does not match checksum Trying other mirror.
Error: failure: repodata/2ddfb9d264be4015af4134d43bf5fa860407cea8-primary.sqlite.bz2 from
epel: [Errno 256] No more mirrors to try.
I tried "yum clean all" and "yum makecache" and various other things.
But the problem persists. My EPEL repo rsync logs say everything is OK. And if I try to
install a package from an upstream EPEL mirror, that works fine. But these machines are
on a private network and only have access to my EPEL mirror. So something is wrong with
my mirror even though it's an exact copy of an upstream mirror?
Regards,
Alex
On Fri, 16 Jul 2010 09:10:29 -0500
<Matt_Domsch(a)Dell.com> wrote:
> We would be pleased to have you as a public EPEL mirror. Thank you for
> your contribution to EPEL!
>
> Please see
http://fedoraproject.org/wiki/Infrastructure/Mirroring for
> guidance, and register your mirror in MirrorManager at
>
https://admin.fedoraproject.org/mirrormanager. By doing so, you will
> appear on the mirror list as soon as MM validates that your URLs are
> valid and the content is present.
>
> Your mirror should rsync from one of the Tier 1 mirrors listed at
>
http://fedoraproject.org/wiki/Infrastructure/Mirroring/Tiering or from
> another mirror close network-wise listed on
>
http://mirrors.fedoraproject.org/publiclist/. If you are on Internet2
> or one of its high-speed educational or research network peers (NLR,
> GEANET2, RedIRIS, etc.), you should pull pull from another I2 site if
> possible.
>
>
> Thanks again,
>
> Matt
> Fedora Mirror Wrangler
--
Alex Chekholko chekh(a)genomics.upenn.edu 347-401-4860
--
Alex Chekholko chekh(a)genomics.upenn.edu 347-401-4860