[Spacewalk-list] Failed to add groups file for repository: epel7-centos7-x86_64 - comps file is empty/damaged

Michael Mraka michael.mraka at redhat.com
Thu Sep 11 12:06:30 UTC 2014


Royee Tager wrote:
% Hi Michael,
% 
% I'm not sure that I'm checking in the right place but it seems that the
% checksum is not equal.
% What does it mean? How can I fix it?
% 
% [root at spacewalk ~]# md5sum
% /var/cache/rhn/repodata/epel7-centos7-x86_64/repomd.xml
% b6f62731fb8626f748ffe2c77946cdfe
%  /var/cache/rhn/repodata/epel7-centos7-x86_64/repomd.xml
% [root at spacewalk ~]# md5sum
% /var/satellite/rhn/comps/epel7-centos7-x86_64/b2bbf938a1e7c811a67d6cfc633e4ccb487917549f960c4dd8e8ffb1f6262740-comps-epel7.xml
% a953b784588e9ecda2c2152f1deaa0b5
%  /var/satellite/rhn/comps/epel7-centos7-x86_64/b2bbf938a1e7c811a67d6cfc633e4ccb487917549f960c4dd8e8ffb1f6262740-comps-epel7.xml
% [root at spacewalk ~]#

This is not right place. Repomd.xml contains expected checksum of
comps-epel7.xml which you should check. E.g. on client
$ cd /var/cache/yum/x86_64/7Server/epel7-centos7-x86_64/
$ grep -B2 comps repomd.xml
<data type="group">
  <checksum type="sha256">4d64c5d0ca2636e265629906a57962e5b15b719b0f80ed6f593eb7ed49d5eaf4</checksum>
  <location href="repodata/4d64c5d0ca2636e265629906a57962e5b15b719b0f80ed6f593eb7ed49d5eaf4-comps-epel7.xml"/>
--
  <checksum type="sha256">34797536e36b2c0a7402bcf5f2159c93b0856f81e4723e4687991aa8d92f4ea6</checksum>
  <open-checksum type="sha256">4d64c5d0ca2636e265629906a57962e5b15b719b0f80ed6f593eb7ed49d5eaf4</open-checksum>
  <location href="repodata/34797536e36b2c0a7402bcf5f2159c93b0856f81e4723e4687991aa8d92f4ea6-comps-epel7.xml.gz"/>
$ sha256sum 34797536e36b2c0a7402bcf5f2159c93b0856f81e4723e4687991aa8d92f4ea6-comps-epel7.xml.gz 
34797536e36b2c0a7402bcf5f2159c93b0856f81e4723e4687991aa8d92f4ea6 34797536e36b2c0a7402bcf5f2159c93b0856f81e4723e4687991aa8d92f4ea6-comps-epel7.xml.gz


Regards,

% On Mon, Sep 8, 2014 at 3:24 PM, Michael Mraka <michael.mraka at redhat.com>
% wrote:
% 
% > Royee Tager wrote:
% > % When I run the yum grouplist on my CentOS 7 clients I get the following
% > % error message:
% > %
% > % [root at labit-lg02 ~]# yum grouplist
% > % Loaded plugins: fastestmirror, rhnplugin
% > % This system is receiving updates from RHN Classic or Red Hat Satellite.
% > % Loading mirror speeds from cached hostfile
% > % Failed to add groups file for repository: epel7-centos7-x86_64 - comps
% > file
% > % is empty/damaged
% > ...
% > % The comps file on the Spacewalk server are not empty:
% > %
% > % [root at spacewalk ~]# ls -l
% > %
% > /var/satellite/rhn/comps/epel7-centos7-x86_64/b2bbf938a1e7c811a67d6cfc633e4ccb487917549f960c4dd8e8ffb1f6262740-comps-epel7.xml
% > % -rw-r--r-- 1 root root 1297635 Aug 28 23:11
% > %
% > /var/satellite/rhn/comps/epel7-centos7-x86_64/b2bbf938a1e7c811a67d6cfc633e4ccb487917549f960c4dd8e8ffb1f6262740-comps-epel7.xml
% > % [root at spacewalk ~]# ls -l
% > %
% > /var/satellite/rhn/comps/epel7-centos7-x86_64/b2bbf938a1e7c811a67d6cfc633e4ccb487917549f960c4dd8e8ffb1f6262740-comps-epel7.xml.xz
% > % -rw-r--r-- 1 root root 167236 Sep  5 20:02
% > %
% > /var/satellite/rhn/comps/epel7-centos7-x86_64/b2bbf938a1e7c811a67d6cfc633e4ccb487917549f960c4dd8e8ffb1f6262740-comps-epel7.xml.xz
% > % [root at spacewalk ~]#
% > %
% > % How can I solve this problem?
% >
% > Is the checksum of b2bbf938*-comps-epel7.xml and one written in repomd.xml
% > equal?


--
Michael Mráka
Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list