<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Re: Koji: ServerOffline</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi!<BR>
It finally worked!!! Rejoice!<BR>
<BR>
So, while stracing httpd, as suggested by Oliver, I realised that koji<BR>
was _NOT_ using localhost to connect to psql because the DBHost<BR>
parameter in the koji configuration had been tampered with and changed<BR>
to something else. And obviously the request was then denied.<BR>
<BR>
Anyway, Thanks to all of you and specially Oliver for pointing me in the<BR>
right direction!<BR>
<BR>
Jitesh<BR>
<BR>
<BR>
On Thu, 2009-01-22 at 13:28 +0100, Oliver Falk wrote:<BR>
> You could do the following on your kojihub - I guess it's only running<BR>
> koji!? If not that's bad :-)<BR>
><BR>
> # service httpd stop<BR>
> # strace -f httpd -X<BR>
><BR>
> You may want to write it to some strace.log (add 2>&1 > strace.log).<BR>
><BR>
> Try to analyse this. You should see where it tries to connect to.<BR>
><BR>
> -of<BR>
><BR>
> Jitesh Shah wrote:<BR>
> > Hi,<BR>
> > Yes, I can successfully connect to the psql database using tcp sockets<BR>
> > too. Here is the snippet of the interaction in the terminal.<BR>
> ><BR>
> > [koji@linux-dev ~]$ psql -U koji -h localhost -d koji<BR>
> > Welcome to psql 8.2.11, the PostgreSQL interactive terminal.<BR>
> ><BR>
> > Type:  \copyright for distribution terms<BR>
> >        \h for help with SQL commands<BR>
> >        \? for help with psql commands<BR>
> >        \g or terminate with semicolon to execute query<BR>
> >        \q to quit<BR>
> ><BR>
> > koji=><BR>
> ><BR>
> ><BR>
> > I can view all the tables with "\d". So, it is connected all-right. Btw,<BR>
> > I also checked in the "users" "permissions" and "user_perms" tables to<BR>
> > verify that "koji" user is indeed the "admin" and has all the required<BR>
> > privileges.<BR>
> ><BR>
> > Jitesh<BR>
> ><BR>
> > On Thu, 2009-01-22 at 02:18 -0800, Toshio Kuratomi wrote:<BR>
> >  > Jitesh Shah wrote:<BR>
> >  > > Hi,<BR>
> >  > > So, I had koji running and building packages for me for nearly a<BR>
> >  > > fortnight. And it worked like a charm!<BR>
> >  > ><BR>
> >  > > I double-checked all the configuration and it is intact. There is the<BR>
> >  > > and entry in pg_hba.conf that trusts koji.<BR>
> >  > ><BR>
> >  > > I run psql command from the "koji" user on the same machine where<BR>
> >  > > koji-hub is running. So, psql uses the default values for DBName and<BR>
> >  > > DBUser. (which are "koji" and "koji" respectively) (And I don't use the<BR>
> >  > > host option). Also, I've checked that DBName and DBUser configuration<BR>
> >  > > are OK in the kojihub.conf<BR>
> >  > ><BR>
> >  > It sounds like you're running the koji db on the same machine as the<BR>
> >  > kojihub?  Just to be sure you're testing the same thing with psql as<BR>
> >  > koji is going to run, try  psql with the -h HOST option.  The reason is<BR>
> >  > that psql without the -h will try to use unix sockets to connect on the<BR>
> >  > local machine.  koji, though, is going to use a tcp connection, not a<BR>
> >  > socket.<BR>
> >  ><BR>
> >  > -Toshio<BR>
> >  ><BR>
> >  > --<BR>
> >  > Fedora-buildsys-list mailing list<BR>
> >  > Fedora-buildsys-list@redhat.com<BR>
> >  > <A HREF="https://www.redhat.com/mailman/listinfo/fedora-buildsys-list">https://www.redhat.com/mailman/listinfo/fedora-buildsys-list</A><BR>
> ><BR>
> ><BR>
> > ------------------------------------------------------------------------<BR>
> ><BR>
> > --<BR>
> > Fedora-buildsys-list mailing list<BR>
> > Fedora-buildsys-list@redhat.com<BR>
> > <A HREF="https://www.redhat.com/mailman/listinfo/fedora-buildsys-list">https://www.redhat.com/mailman/listinfo/fedora-buildsys-list</A><BR>
><BR>
> --<BR>
> Fedora-buildsys-list mailing list<BR>
> Fedora-buildsys-list@redhat.com<BR>
> <A HREF="https://www.redhat.com/mailman/listinfo/fedora-buildsys-list">https://www.redhat.com/mailman/listinfo/fedora-buildsys-list</A><BR>
</FONT>
</P>

</BODY>
</HTML>