[tools] createrepo after mrepo?
Dag Wieers
dag at wieers.com
Sat Dec 15 14:07:24 CET 2007
On Fri, 14 Dec 2007, Ray Van Dolson wrote:
> Apologies for resurrecting an old thread, but I've been encountering
> this issue as well rather frequently and just now searched back through
> the archives:
>
> http://lists.rpmforge.net/pipermail/tools/2007-October/000978.html
I do not understand the email your are referencing. mrepo runs createrepo
after downloading new packages so there should never be a need to run
createrepo yourself after mrepo.
> My mrepo box is running RHEL4 ES Update 6 using:
>
> - mrepo-0.8.4-1.el4.rf
> - createrepo-0.4.6-1.el4.rf
>
> I encounter two problems fairly regularly:
>
> - RPM's that appear to be "invalid" (fail with rpm -K). This happens
> no mattter which mirror I pull from and I've just written a script
> to rpm -K on all downloaded files, remove them and then re-download
> the files again.
I guess you have to debug why this happens. Your workaround is not
acceptable although it may help you. Why do become RPMs corrupt and
invalid ? That is what you should be investigating. Is rsync/lftp
corrupting files ? Do you have memory/disk problems ?
> - RPM's that cause yum on my clients to fail on download with the
> checksum mismatch error. Even though I run mrepo -ug these
> problems persist until I run createrepo /path/to/repository
> manually. Then the clients can download the updates fine. Even a
> 'yum clean all' on the clients won't resolve the issue. Running
> the createrepo by hand on mrepo server is a necessary step. I am
> mostly testing with CentOS 5.1 clients at this point if you're
> curious as to the version of yum being used.
Is it possible that you have a more general problem with your system.
mrepo just runs createrepo, so I don't see why you would have checksum
mismatch errors after mrepo ran createrepo and not when you run it again.
Up to you to investigate what is happening as this is not normal.
> This seems to me like it might be something with createrepo or how it
> is called from mrepo? My repo's are using the repomd and repoview
> options.
>
> Just would like to track this down, but it really seems I can't blame
> yum as it works fine after a manual run of createrepo.
>
> Anyways, I need to do more testing on this, but in the meantime thought
> I'd throw this out there again.
I am wondering though, you know the difference between $srcdir and
$wwwdir, right ? You are not using the $srcdir as the repository in yum by
accident perhaps ?
--
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
More information about the tools
mailing list