Create Koji How-to

Michael Cronenworth mike at cchtml.com
Fri Feb 5 16:06:00 UTC 2010


Mike McLean wrote:
> Taking your command literally, I assume that postgres is running on the
> same host.

It is.

>
> If you intend to connect to postgres locally (not over tcp) as "psql
> koji" would, then you must/not/  set DBHost in hub.conf. If there is a
> value for that option (even localhost) then the pgdb lib will try to
> connect over tcp, which your server may not be configured to allow.

I had DBHost set to 127.0.0.1, but commenting that out results in no 
change. I still get

$ koji add-user test
ServerOffline: database outage

Here's my current config inside of /etc/koji-hub/hub.conf
[hub]

## Basic options ##
DBName = koji
DBUser = koji
#DBHost = 127.0.0.1
#DBPass = example_password
KojiDir = /mnt/koji

Yes, I restarted httpd.


More information about the buildsys mailing list