<font size=2 face="sans-serif">First off, I apologize for the lengthy
message, but I hope to eventually contribute to this project via code and/or
docs. &nbsp;(I've already updated the Server Setup wiki page where I felt
knowledgeable enough.)</font>
<br>
<br><font size=2 face="sans-serif">I'm loosely following the wiki page[1]
for this process but may have myself confused about what some steps do
and what overall is required. &nbsp;I want a Koji instance for building
internally developed packages. &nbsp;I would rarely, if ever, want to rebuild
a package already provided in Fedora. &nbsp;I've got lots of experience
using rpmbuild and recently a little with mock, but am trying for a full
fledged setup with Koji now to improve my workflow. &nbsp;For now, I am
focusing on builds for F19 only, but will eventually add others to basically
follow Fedora's EoL schedule.</font>
<br>
<br><font size=2 face="sans-serif">Thus far, I have:</font>
<ol>
<li value=1><font size=2 face="sans-serif">A basic setup working and can
now login thanks to Mike's excellent help.</font>
<li value=2><font size=2 face="sans-serif">A &quot;f19&quot; tag and a
child &quot;f19-build&quot; tag for arches i386 and x86_64.</font>
<li value=3><font size=2 face="sans-serif">Successfully imported the SRPMs
for my locally developed packages only. &nbsp;I didn't import any binary
RPMs as I wanted to see that Koji could do that as a test. &nbsp;I also
didn't import anything of the Fedora-provided packages since I'm not interested
in building those.</font>
<li value=4><font size=2 face="sans-serif">A &quot;f19&quot; build target.</font>
<li value=5><font size=2 face="sans-serif">A build group named &quot;build&quot;
associated with my &quot;f19-build&quot; tag.</font>
<li value=6></ol><font size=2 face="sans-serif">I've tried doing a build
of one of my SRPMs that I had imported and keep meeting failure. &nbsp;Examination
of the root.log revealed only a few things, but none that sounded to worrisome:</font>
<br>
<br><font size=2 face="sans-serif">DEBUG util.py:266: &nbsp;There is no
installed groups file.</font>
<br><font size=2 face="sans-serif">DEBUG util.py:266: &nbsp;Warning: Group
build does not have any packages to install.</font>
<br>
<br><font size=2 face="sans-serif">When I got to the mock_output.log however,
I saw this which I'm guessing is the reason for failure:</font>
<br>
<br><font size=2 face="sans-serif">ERROR: Could not find useradd in chroot,
maybe the install failed?</font>
<br>
<br><font size=2 face="sans-serif">Seeing this I figured it was due to
skipping the step for populating the &quot;build&quot; group with packages
to be installed in the minimal buildroot. &nbsp;I skipped this because
the instructions fail for me since I my FAS account isn't set up sufficiently
to let me to auth against the real Fedora Koji instance, i.e., I don't
have a signed user cert. &nbsp;Knowing that my current mock setup can manage
this, I dug into its config and stumbled upon the &quot;buildsys-build&quot;
package name and thus came up with:</font>
<br>
<br><font size=2 face="sans-serif">$ yum group info buildsys-build</font>
<br><font size=2 face="sans-serif">Loaded plugins: langpacks</font>
<br><font size=2 face="sans-serif">There is no installed groups file.</font>
<br><font size=2 face="sans-serif">Maybe run: yum groups mark convert</font>
<br>
<br><font size=2 face="sans-serif">Group: Buildsystem building group</font>
<br><font size=2 face="sans-serif">&nbsp;Group-Id: buildsys-build</font>
<br><font size=2 face="sans-serif">&nbsp;Mandatory Packages:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; bash</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; bzip2</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; coreutils</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; cpio</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; diffutils</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; fedora-release</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; findutils</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; gawk</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; gcc</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; gcc-c++</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; grep</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; gzip</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; info</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; make</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; patch</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; redhat-rpm-config</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; rpm-build</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; sed</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; shadow-utils</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; tar</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; unzip</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; util-linux</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; which</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; xz</font>
<br>
<br><font size=2 face="sans-serif">This looks like a minimal buildroot
to me, so I commenced with that list:</font>
<br>
<br><font size=2 face="sans-serif">$ koji add-group-pkg f19-build build
bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++
grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils
tar unzip util-linux which xz</font>
<br>
<br><font size=2 face="sans-serif">I believe these are now &quot;in place&quot;
correctly since:</font>
<br>
<br><font size=2 face="sans-serif">$ koji list-groups f19-build</font>
<br><font size=2 face="sans-serif">build &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; bash: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; bzip2: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; coreutils: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; cpio: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; diffutils: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; fedora-release: None, default
&nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; findutils: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; gawk: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; gcc: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; gcc-c++: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; grep: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; gzip: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; info: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; make: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; patch: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; redhat-rpm-config: None, default
&nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; rpm-build: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; sed: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; shadow-utils: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; tar: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; unzip: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; util-linux: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; which: None, default &nbsp;[f19-build]</font>
<br><font size=2 face="sans-serif">&nbsp; xz: None, default &nbsp;[f19-build]</font>
<ol>
<li value=1></ol><font size=2 face="sans-serif">However, when I resubmitted
my build request, it failed and I see the same warnings/errors in the logs.
&nbsp;I also see this in /var/log/kojid.log:</font>
<br>
<br><font size=2 face="sans-serif">2013-10-22 16:48:57,582 [DEBUG] koji.TaskManager:
bins: {'1:noarch': 1, '2:noarch': 1, '1:x86_64': 1, '1:i386': 1, '2:x86_64':
1, '2:i386': 1}</font>
<br><font size=2 face="sans-serif">2013-10-22 16:49:12,598 [DEBUG] koji:
Traceback (most recent call last):</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib/python2.7/site-packages/koji/__init__.py&quot;,
line 1895, in _callMethod</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; return self._sendCall(handler,
headers, request)</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib/python2.7/site-packages/koji/__init__.py&quot;,
line 1806, in _sendCall</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; return self._sendOneCall(handler,
headers, request)</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib/python2.7/site-packages/koji/__init__.py&quot;,
line 1825, in _sendOneCall</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; cnx.send(request)</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib64/python2.7/httplib.py&quot;,
line 805, in send</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; self.sock.sendall(data)</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py&quot;,
line 111, in sendall</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; self.close()</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py&quot;,
line 82, in close</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; self.shutdown()</font>
<br><font size=2 face="sans-serif">&nbsp; File &quot;/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py&quot;,
line 53, in shutdown</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; self.__dict__[&quot;conn&quot;].shutdown()</font>
<br><font size=2 face="sans-serif">Error: []</font>
<br>
<br><font size=2 face="sans-serif">2013-10-22 16:49:12,599 [INFO] koji:
Try #1 for call 1328 (listBuildroots) failed: []</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">I suspect I'm really close now, but
have done something silly that's not obvious to me. &nbsp;Any pointers
will be greatly appreciated.</font>
<br>
<br><font size=2 face="sans-serif">[1] </font><a href=https://fedoraproject.org/wiki/Koji/ServerBootstrap><font size=2 face="sans-serif">https://fedoraproject.org/wiki/Koji/ServerBootstrap</font></a>
<br><font size=2 face="sans-serif"><br>
--<br>
John Florian</font>
<br>
<br>