<div dir="ltr">Sounds like you've got a handle on updating your packages and re-generating repodata. BTW, when I got impatient with the rebuild, I ended up creating a script to help trigger the rebuild. While it would appear you're past that issue, I've attached it anyways. <div>

<br></div><div style>Looks like your next focus is on where you are picking up the multiple package information. Here is another area that I've had issues with as well. Another member on this list helped me out and perhaps it'll help you too. See the following message thread:</div>

<div style><a href="http://www.mail-archive.com/spacewalk-list@redhat.com/msg11876.html">http://www.mail-archive.com/spacewalk-list@redhat.com/msg11876.html</a><br></div><div style><br></div><div style>Good luck,</div><div style>

Jon Miller</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 1, 2013 at 7:23 PM, Reed, Steven <span dir="ltr"><<a href="mailto:Steven.Reed@transport.nsw.gov.au" target="_blank">Steven.Reed@transport.nsw.gov.au</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for replying again Jon, actually I inadvertently blew away all the packages in the repo...so after a spacewalk-repo-sync it now complains it can't find a package due to different versions...<br>


<br>
Previously I did get to the console on the kickstarting machine and was able to download the package in question with wget.<br>
<br>
Re the repo rebuild, is there anything else I should be doing apart from blowing away /var/cache/rhn/repodata/$channelname<br>
and then letting a client connect to it so it rebuilds.<br>
<br>
I have tried that again but it still says it is looking for a different version of the package.<br>
<br>
Regards,<br>
<br>
Steve<br>
<div class="im"><br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [mailto:<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>] On Behalf Of Jon Miller<br>


</div>Sent: Thursday, 2 May 2013 10:48 AM<br>
<div class="im">To: spacewalk-list<br>
Subject: Re: [Spacewalk-list] Duplicate packages in Channel causing Centos 5.9 kickstart to fail<br>
<br>
</div><div class="im">I can not recall the precise URL but I've gone through a similar troubleshooting session. What I did was allow my kickstart to fail, then I:<br>
1. Looked at the /var/log/httpd/access_log on my Spacewalk server to identify the precise URL the client was using.<br>
2. Then reproduced the error via CLI with wget/curl<br>
3. Then found other errors in the tomcat logs.<br>
    In my situation, again, I had to ensure my repodata was regenerated before I could proceed. In fact, I went as far as wrote a script to help regenerate the repo cache via the APIs.<br>
<br>
Hopefully that'll get you further in your troubleshooting. You want to be sure you're using the same URL and then look in further logs for further clues.<br>
<br>
-- Jon Miller<br>
<br>
On Wed, May 1, 2013 at 5:32 PM, Reed, Steven <<a href="mailto:Steven.Reed@transport.nsw.gov.au">Steven.Reed@transport.nsw.gov.au</a>> wrote:<br>
Hi Jon,<br>
<br>
When it kickstarts is cannot find the package:<br>
<br>
sos-1.7-9.62.el5.noarch.rpm<br>
<br>
but I can download it from <a href="https://spacewalk-1.l.c//ks/dist/Centos-5_x64-ks/CentOS/sos-1.7-9.62.el5.noarch.rpm" target="_blank">https://spacewalk-1.l.c//ks/dist/Centos-5_x64-ks/CentOS/sos-1.7-9.62.el5.noarch.rpm</a><br>


<br>
I see it retrieve with http code 206 in the access.log on the spacewalk server.<br>
<br>
The problem is in the client trying to kickstart it gets stuck at:<br>
<br>
Warning :  Try 1/10 for <a href="https://spacewalk-1.l.c//ks/dist/Centos-5_x64-ks/CentOS/sos-1.7-9.62.el5.noarch.rpm" target="_blank">https://spacewalk-1.l.c//ks/dist/Centos-5_x64-ks/CentOS/sos-1.7-9.62.el5.noarch.rpm</a> failed<br>


<br>
Then keeps trying up to 10/10 times<br>
<br>
Then the kickstart fails.<br>
<br>
</div>I've tried removing the package from the channel and resyncing, I also tried rm-rf /var/chache/rhn/repodata/$channelname then getting a client to poll it so it rebuilds but it still has the same error...<br>
<div class="im"><br>
The package doesn't show up duplicate in the channel but here:<br>
<br>
[root@spacewalk-1 1]# pwd<br>
/var/satellite/redhat/1<br>
<br>
[root@spacewalk-1 1]# find . -name "sos-1.7-9.62.el5*"<br>
./fcb/sos/1.7-9.62.el5/noarch/fcb1cfb66b0b1800457fa751872f2bf0/sos-1.7-9.62.el5.noarch.rpm<br>
./690/sos/1.7-9.62.el5/noarch/690daef0b741ad1f85ea9f56984f0be4/sos-1.7-9.62.el5.noarch.rpm<br>
<br>
Thanks,<br>
<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [mailto:<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>] On Behalf Of Jon Miller<br>


Sent: Thursday, 2 May 2013 1:42 AM<br>
To: spacewalk-list<br>
Subject: Re: [Spacewalk-list] Duplicate packages in Channel causing Centos 5.9 kickstart to fail<br>
<br>
Whenever I've removed a package from a channel, I'm often too impatient for the repodata to be rebuilt. Could that be your problem? You can check the "last repo build" time on the channel detail page or also just look at /var/cache/rhn/repodata/*.<br>


<br>
-- Jon Miller<br>
<br>
On Tue, Apr 30, 2013 at 9:35 PM, Reed, Steven <<a href="mailto:Steven.Reed@transport.nsw.gov.au">Steven.Reed@transport.nsw.gov.au</a>> wrote:<br>
This was working but then all of a sudden kickstarts would bomb out on Centos 5.9 installs.<br>
<br>
</div>Further research yielded that there was a duplicate package in the centos 5 channel.  I've tried removing one or the other and both then trying to resync but this error persists...<br>
<div class="im"><br>
Any suggestions please.<br>
<br>
Regards,<br>
<br>
Steve<br>
<br>
<br>
</div>________________________________________<br>
<div class="im">This email (including any attachments) may contain confidential and/or legally privileged information and is intended only to be read or used by the addressee(s). If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy. Any use, distribution, disclosure or copying of this email by a person who is not the intended recipient is not authorised.<br>


<br>
Views expressed in this email are those of the individual sender, and are not necessarily the views of Transport for New South Wales, Department of Transport or any other NSW government agency. Transport for NSW and the Department of Transport assume no liability for any loss, damage or other consequence which may arise from opening or using an email or attachment.<br>


Please visit us at <a href="http://www.transport.nsw.gov.au" target="_blank">http://www.transport.nsw.gov.au</a> or <a href="http://www.131500.com.au" target="_blank">http://www.131500.com.au</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
<br>
</div>________________________________________<br>
<div class="HOEnZb"><div class="h5">This email (including any attachments) may contain confidential and/or legally privileged information and is intended only to be read or used by the addressee(s). If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy. Any use, distribution, disclosure or copying of this email by a person who is not the intended recipient is not authorised.<br>


<br>
Views expressed in this email are those of the individual sender, and are not necessarily the views of Transport for New South Wales, Department of Transport or any other NSW government agency. Transport for NSW and the Department of Transport assume no liability for any loss, damage or other consequence which may arise from opening or using an email or attachment.<br>


Please visit us at <a href="http://www.transport.nsw.gov.au" target="_blank">http://www.transport.nsw.gov.au</a> or <a href="http://www.131500.com.au" target="_blank">http://www.131500.com.au</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
<br>
This email (including any attachments) may contain confidential and/or legally privileged information and is intended only to be read or used by the addressee(s). If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy. Any use, distribution, disclosure or copying of this email by a person who is not the intended recipient is not authorised.<br>


<br>
Views expressed in this email are those of the individual sender, and are not necessarily the views of Transport for New South Wales, Department of Transport or any other NSW government agency. Transport for NSW and the Department of Transport assume no liability for any loss, damage or other consequence which may arise from opening or using an email or attachment.<br>


Please visit us at <a href="http://www.transport.nsw.gov.au" target="_blank">http://www.transport.nsw.gov.au</a> or <a href="http://www.131500.com.au" target="_blank">http://www.131500.com.au</a><br>
<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div></blockquote></div><br></div>