Create Koji How-to

Mike McLean mikem at redhat.com
Fri Feb 5 16:38:45 UTC 2010


On 02/05/2010 11:06 AM, Michael Cronenworth wrote:
> 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

Is there anything in the postgres logs?
/var/lib/pgsql/data/pg_log

> 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.

You wrote that the command line works. Let's see what happens within 
python. Trying running this in a python shell (as the apache user).

bash-3.2$ python
 >>> import koji.db
 >>> koji.db.provideDBopts(database = 'koji', user='koji')
 >>> koji.db.connect()

What error do you see?


More information about the buildsys mailing list