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:
BuildrootError: could not init mock buildroot, mock exited with status 20.
After that, I checked the build log, and find it failed after sending this command to yum:
¡°/usr/bin/yum ¨Cinstallroot /home/fedora/mock/build0.1-build-43-28/root/
groupinstall build ¡±
The error information is:
Warning: Group build does not have any packages.
The yum.conf directory was :
/home/fedora/mock/build0.1-build-42-28/root/etc/yum/yum.conf
And the repodata directory was:
/home/fedora/koji/repos/build0.1-build/28/x86_64/repodata
I checked the comps.xml and the repomd.xml in repodata£¬and could not find any problem.
When I use yum to run this command :
/usr/bin/yum ¨Cinstallroot /home/fedora/mock/build0.1-build-43-28/root/
groupinstall build
It was the same error.
But when I use other directories as the installroot, this error didn¡¯t happen. Did someone know why did this happen?
Root.log:
3093 DEBUG util.py:60: creating dir: /home/fedora/mock/build0.1-build-43-28/root/dev/shm
3095 DEBUG backend.py:739: ['/usr/bin/yum', '--installroot', '/home/fedora/mock/build0.1-build-43-28/root/', 'groupinstall', 'build']
3096 DEBUG util.py:284: Executing command: ['/usr/bin/yum', '--installroot', '/home/fedora/mock/build0.1-build-43-28/root/', 'groupinstall', 'build']
3097 DEBUG util.py:250: Ignored option -c (probably due to merging -yc != -y -c)
3098 DEBUG util.py:250: Warning: Group build does not have any packages.
Regards
Robin