<html><head></head><body dir="ltr" lang="zh-CN" style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Check the taskomatic log to see if you are exceeding the memory limits. I ran into that several times because the RHEL repos can get huge over time.</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div>                                                                                                                                                                                                   <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"></div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Daryl Rose</div><div><b>Sent: </b>Thursday, December 15, 2016 09:11</div><div><b>To: </b>spacewalk-list@redhat.com</div><div><b>Reply To: </b>spacewalk-list@redhat.com</div><div><b>Subject: </b>Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style="">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>


<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>I am running v2.6.  I had inadvertently upgraded to 2.6 when I stood up the new server.</p>
<p><br>
</p>
<p>I had upgraded the original server to v2.5.  When switching over, I installed SW thinking that it was v2.5 not realizing that v2.6 had just been published that day.  That did cause some initial issues with the database.  I figured out how to upgrade the
 database schema, and that resolved the issues that I was having.  </p>
<p><br>
</p>
<p>All of the other repositories work, and update just fine, SLES SP3, SLES SP4 and CentOS.  Its only the RHEL repository that is having issues.</p>
<p><br>
</p>
<p>I have a work around in place, but only because I needed to get something working right now.  I copied the contents of /var/cache/rhn/repodata and /var/cache/rhn/reposyn from the original server to the new server.  That fixed the current issue, but that
 did not resolve the entire problem.  I have a team member that needs access to the repository NOW and this was the only way that I knew that I could work around the problem.</p>
<p><br>
</p>
<p>I did not run the spacewalk-rename command.  I don't remember who, but someone told me that could cause problems and break communication with the clients, and I don't want that to happen.</p>
<p><br>
</p>
<p>Once my team member is finished with the updates on the servers that he is working on, I'll try the steps that Chris Snyder posted and see if that is a more
<span>permanent </span>fix.</p>
<p><br>
</p>
<p>Thank you for the replies and the suggestions.</p>
<p><br>
</p>
<p>Daryl</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Robert Paschedag <robert.paschedag@web.de><br>
<b>Sent:</b> Thursday, December 15, 2016 12:21 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div dir="auto">I think, you really need up your server. Which one is running now? The old or the new one? Why did you copy some contents from A to B (maybe from different versions)?
<div dir="auto"><br>
</div>
<div dir="auto">Did you run the spacewalk-rename command or did you somewhere change the hostname (maybe within config files of spacewalk)?</div>
<div dir="auto"><br>
</div>
<div dir="auto">What does "rhn_check -vvv" on a client say?</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">Am 14.12.2016 23:57 schrieb Daryl Rose <darylrose@outlook.com>:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div dir="ltr" style="font-size:12pt; color:#000000; font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif">
<p>Hello everyone,</p>
<p><br>
</p>
<p>I have not received any replies from my previous posting, so I thought that I would post an update hoping someone would see it and reply.</p>
<p><br>
</p>
<p>This error seems to go deeper than just syncing from Red Hat.  Server that are currently registered to the Spacewalk server are not able to access the RHEL repository on SW.  If issuing the "yum update" command, we receive the error:</p>
<p><br>
</p>
<p></p>
<div><i>Error: failed to retrieve repodata/primary.xml.gz from rhel-6-server-rpms</i></div>
<div><i>error was [Errno -1] Metadata file does not match checksum</i></div>
<br>
<p></p>
<p>If I issue the "yum repolist" command, I only see "0" for packages. </p>
<p><br>
</p>
<p>So, this issue is larger that what I initially thought. Anyone have any thoughts or idea's?</p>
<p><br>
</p>
<p>Daryl</p>
<div style="color:rgb(0 ,0 ,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Friday, December 9, 2016 2:56 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div dir="ltr" style="font-size:12pt; color:#000000; font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif">
<p>So,  I resurrected the old server from the grave and copied the contents of "/var/cach/rhn/reposync/rhel-6-server-rpms" to "/var/cach/rhn/reposync/content_dist_rhel_server_6_$releasever_$basearch_os" and ran a sync.  The sync worked.</p>
<p><br>
</p>
<p>The sync worked, but it caused a new error.  A team member registered a Red Hat server just after I made these changes.  The server registered, but  with the following error:</p>
<p><br>
</p>
<p><i></i><i>Bad id for repo: logstash 5.x, byte =   8</i><br>
</p>
<p><br>
</p>
<p>I'm guessing that something within the data that I copied over does not align with the repository on SW?  </p>
<p><br>
</p>
<p>Another thing that I noticed is that the directory structure in the old reposync directory is different than the new server.  For example:</p>
<p><br>
</p>
<p>OLD:</p>
<p>/var/cache/rhn/reposync<span style="font-size:12pt">/</span><span style="font-size:12pt">centos-7-extra</span></p>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<p>/centos-7-server-rpms</p>
<p>/centos-7-updae</p>
<p>/centos_7_channel</p>
<p>/centos_7_plus</p>
<p><br>
</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
NEW:
<div>/var/cache/rhn/reposync<span style="font-size:12pt">/</span><span style="font-size:12pt">centos_7_centosplus_x86_64_</span></div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<div>/centos_7_extras_x86_64_</div>
<div>/centos_7_os_x86_64_</div>
<div>/centos_7_updates_x86_64_</div>
<div><br>
</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
Is that a SW v2.3 vs. v2.6 change?  
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Daryl<br>
<div><br>
<br>
<div style="color:rgb(0 ,0 ,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Thursday, December 8, 2016 10:32 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div dir="ltr" style="font-size:12pt; color:#000000; font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif">
<p>More questions:</p>
<p><br>
</p>
<p>When I run "spacewalk-repo-sync --channel=rhel-6-server-rpms",  I get the error:</p>
<p><br>
</p>
<p><i>ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: content_dist_rhel_server_6_$releasever_$basearch_os. Please verify its path and try again<br>
</i></p>
<br>
What creates the content in "/var/cache/rhn/reposync/content_dist_rhel_server_6_$releasever_$basearch_os"?
<div><br>
</div>
<div>All of the other channels that I created all have "cachecookie, packages, primary.xml.gz, primary.xml.gz.sqlite, repomd.xml and updateinfo.xml.gz".  </div>
<div><br>
</div>
<div>There must be a process that creates this content, but what, I'm not sure.  How can I manually create this content?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Daryl</div>
<div><br>
<div style="color:rgb(0 ,0 ,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Thursday, December 8, 2016 9:26 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div dir="ltr" style="font-size:12pt; color:#000000; font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif">
<p>Quick update.</p>
<p><br>
</p>
<p>Poking around on Red Hat I found a doc that suggested that I look at the  name in /etc/sysconfig/network and ensure that the hostname is FQDN and then run "spacewalk-hostname-rename".   Host name was not FQDN, so I renamed it, but b<span style="font-size:12pt">ecause
 I use a signed cert, will running </span><span style="font-size:12pt">spacewalk-hostname-rename cause a problem with that cert?  </span></p>
<p></p>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<p>Daryl</p>
<br>
<br>
<div style="color:rgb(0 ,0 ,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Thursday, December 8, 2016 8:55 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div dir="ltr" style="font-size:12pt; color:#000000; font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif">
<p>Robert,</p>
<p><br>
</p>
<p>Yes, the server is registered and has an active subscription with Red Hat.  As a matter of fact, I just now re-registered to make sure that all is good.   I can see from the command line subscription manager that the server is subscribed, and I confirmed
 that it is entitled.  </p>
<p><br>
</p>
<p>I use a "signed" cert so I'm wondering if the signed cert has something to do with this?  However, I found a troubleshooting document on Red Hat that verifies that I am entitled and using the certificate provided by Red Hat to communicate back to them.  </p>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>Daryl</div>
<div style="color:rgb(0 ,0 ,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Robert Paschedag <robert.paschedag@web.de><br>
<b>Sent:</b> Wednesday, December 7, 2016 11:48 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div>
<div style="font-family:'calibri' ,sans-serif; font-size:11pt">I think you should check your entitlements. But I also don't know, how you could "manually" connect to the repo (with username/password or token inline in URL).<br>
<br>
Is your server listed as entitled within your RedHat account?<br>
</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:'calibri' ,sans-serif; font-size:11pt; font-weight:bold">Von:
</span><span style="font-family:'calibri' ,sans-serif; font-size:11pt"><a href="mailto:darylrose@outlook.com">Daryl Rose</a></span><br>
<span style="font-family:'calibri' ,sans-serif; font-size:11pt; font-weight:bold">Gesendet:
</span><span style="font-family:'calibri' ,sans-serif; font-size:11pt">‎06.‎12.‎2016 17:26</span><br>
<span style="font-family:'calibri' ,sans-serif; font-size:11pt; font-weight:bold">An:
</span><span style="font-family:'calibri' ,sans-serif; font-size:11pt"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></span><br>
<span style="font-family:'calibri' ,sans-serif; font-size:11pt; font-weight:bold">Betreff:
</span><span style="font-family:'calibri' ,sans-serif; font-size:11pt">Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</span><br>
<br>
</div>
<div dir="ltr" style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
<p>I decided to try the sync from the command line.  This time I received an error:</p>
<p><br>
</p>
<p><i>ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: content_dist_rhel_server_6_6Server_x86_64_os_. Please verify its path and try again<br>
</i></p>
<div><br>
</div>
The path came out of the redhat.repo file that came from Red Hat when I registered the server.  Its the same path that was used on the previous server.  
<div><br>
</div>
<div>Any suggestions?</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div>Daryl</div>
<div><br>
<div style="color:rgb(0 ,0 ,0)">
<hr style="width:98%; display:inline-block">
<div dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Monday, December 5, 2016 3:00 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> [Spacewalk-list] RHEL 6.x repository not syncing from parent channel</font>
<div> </div>
</div>
<div>
<div dir="ltr" style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
<p>I just realized that the last Red Hat errata for RHEL 6.x is from August.  I looked at the sync logs and it doesn't appear that anything is syncing at all from the RHEL channel.  </p>
<p><br>
</p>
<p>I just recently migrated to a physical server.  I successfully registered the server and attached an entitlement to the server.  If I run "yum update" on the server, it lists latest updates from the RHEL channel.  </p>
<p><br>
</p>
<p>This is what I see in the reposync log:</p>
<p><i><br>
</i></p>
<p><i></i></p>
<div><i>2016/12/05 14:49:42 -05:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'rhel-6-server-rpms', '--type', 'yum']</i></div>
<div><i>2016/12/05 14:49:42 -05:00 Sync of channel started.</i></div>
<div><i>2016/12/05 14:49:42 -05:00 Repo URL: https:<rhel 6 rpm channel></i></div>
<div><i>2016/12/05 14:49:42 -05:00 Sync of channel completed in 0:00:00.</i></div>
<br>
<p></p>
<p>If I haven't received any syncs since August, then this broke long before I migrated to the physical server.</p>
<p><br>
</p>
<p>Any thoughts?</p>
<p><br>
</p>
<p>Daryl</p>
<p><br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>


<br><!--end of _originalContent --></div></body></html>