<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:ËÎÌå;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@ËÎÌå";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US">Hello everyone, I am a new koji user. These days I was setting up koji environment on redhat6, using koji 1.6.0 and mock 1.1.12. After that, I tried to run koji build system on my own server.
 Then I encountered a problem about mock. when I run the build command, the build system did not work correctly, and exited with the following information:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">BuildrootError: could not init mock buildroot, mock exited with status 20.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After that, I checked the build log, and find it failed after sending this command to yum:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">¡°/usr/bin/yum ¨Cinstallroot&nbsp; /home/fedora/mock/build0.1-build-43-28/root/<b>
</b>groupinstall build ¡±<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The error information is:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Warning: Group build does not have any packages.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The yum.conf directory was : <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/home/fedora/mock/build0.1-build-42-28/root/etc/yum/yum.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And the repodata directory was:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/home/fedora/koji/repos/build0.1-build/28/x86_64/repodata<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I checked the comps.xml and the repomd.xml in repodata</span><span style="font-family:ËÎÌå">£¬</span><span lang="EN-US">and could not find any problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When I use yum to run this command : <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/usr/bin/yum ¨Cinstallroot&nbsp; /home/fedora/mock/build0.1-build-43-28/root/<b>
</b>groupinstall build<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It was the same error.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But when I use other directories as the installroot, this error didn¡¯t happen. Did someone know why did this happen?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Root.log:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3093 DEBUG util.py:60:&nbsp; creating dir: /home/fedora/mock/build0.1-build-43-28/root/dev/shm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3095 DEBUG backend.py:739:&nbsp; ['/usr/bin/yum', '--installroot', '/home/fedora/mock/build0.1-build-43-28/root/', 'groupinstall', 'build']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3096 DEBUG util.py:284:&nbsp; Executing command: ['/usr/bin/yum', '--installroot', '/home/fedora/mock/build0.1-build-43-28/root/', 'groupinstall', 'build']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3097 DEBUG util.py:250:&nbsp; Ignored option -c (probably due to merging -yc != -y -c)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3098 DEBUG util.py:250:&nbsp; Warning: Group build does not have any packages.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Robin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>