On 03/21/2013 12:09 PM, Mike McLean wrote:
> Can you psql to the db as the apache user using the same params that
> are given in your hub.conf?

No. I found that the order of pg_hba is important. The koji lines were
below the default lines. Fixing the order allowed apache to login as
koji. The reason for pg_hba to be misconfigured to begin with was the
PostgreSQL upgrade from 9.1 (F17) to 9.2 (F18) that recreates a default
pg_hba.conf after a conversion.

>
> Both F17 and F18 have koji-1.7.1 in updates. Did anything change in
> your hub.conf file? 

I had not made any changes to hub.conf. I'm using the defaults supplied
by your package.

## Basic options ##
DBName = koji
DBUser = koji
#DBHost = db.example.com
#DBPass = example_password
KojiDir = /mnt/koji

After fixing the pg_hba.conf settings and restarting services I am
encountering a new error. I see the same message in attempting to view
koji-web or start kojid.

http://fpaste.org/UZYQ/
(the client IP was hand-modified to .999)

The problem is fixed with the attached patch, but I'm not a koji expert
so it may not be correct.

The Apache 2.4 update (F18+) requires new parameters in configuration
files to allow permission to directories. Your default kojihub.conf is
using the Apache 2.2 and lower style of syntax.

Apache 2.2 and lower:
    Order allow,deny
    Allow from all
Apache 2.4:
    Require all granted

After the kojihub.conf fix I can access kojiweb.

I still can't start kojid:
Mar 21 12:55:36 miracle systemd[1]: Starting SYSV: kojid server...
Mar 21 12:55:37 miracle kojid[21275]: Starting kojid: Error: Unable to
log in: cannot call sslLogin() via a non-https connection

Still looking...
--- /usr/lib/python2.7/site-packages/koji/__init__.py	2012-11-19 22:36:03.000000000 -0600
+++ __init__.py	2013-03-21 12:51:55.128788188 -0500
@@ -1847,6 +1847,7 @@
         if response.status != 200:
             if (response.getheader("content-length", 0)):
                 response.read()
+            handler = self._path
             raise xmlrpclib.ProtocolError(self._host + handler,
                         response.status, response.reason, response.msg)
         p, u = xmlrpclib.getparser()
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to