I have been toying with Koji ( A build server by Fedora) and encountered an issue while starting the kojid daemon on one of the builder host.
1 2 |
|
while the log kept showing
1
|
|
Time for some debugging, I issue
1
|
|
and see
1 2 3 4 5 6 7 8 9 10 |
|
Aha! “AuthError: No host specified” - kojid is complaining that no host was specified! But wait a minute, the “user” directive is correctly specified in the the kojid.conf file
Let’s check
1 2 |
|
Hmm… time to check the host registered in koji
1 2 3 4 |
|
All good. Let’s check our host certificate
1 2 3 4 5 6 7 |
|
Only obvious different is that I have use a FQDN as a CN in the certificate (good!), could it be that kojid isn’t expanding the hostname user to a FQDN?
Let’s remove the current builder and re-add it as a FQDN as I am not able to add “builder1.domain.local” since it already exists as a user in the users table of the koji database and this is creating a key violation constraint as follow:
1 2 |
|
Aha, time for some db cleaning. After cleaning the koji postgres database, I re-issue the “koji add-host” command
1 2 3 4 5 6 7 8 |
|
Yeah :-)! Problem fixed.