<!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>
Thank you for the quick reply Oliver.<BR>
<BR>
So, this morning I moved to a newer version of koji. Reconfigured<BR>
everything (restarted apache after re-configuring koji-hub) and quite<BR>
surprisingly, I still get the same error!<BR>
<BR>
So, if reinitialising both, postgresql and koji, doesn't do the trick, I<BR>
wonder what might have gone wrong.<BR>
(Just as a matter of curiosity, I even checked with ipcs that there are<BR>
no dangling shared memory segments. There aren't any.)<BR>
<BR>
Jitesh<BR>
<BR>
On Thu, 2009-01-22 at 08:16 +0100, Oliver Falk wrote:<BR>
&gt; Hi Jitesh!<BR>
&gt;<BR>
&gt; Jitesh Shah wrote:<BR>
&gt; &gt; Hi,<BR>
&gt; &gt; I've been running a local koji instance at my workplace. It worked<BR>
&gt; &gt; absolutely fine for a fortnight. But, since Monday, I am getting this<BR>
&gt; &gt; error : &quot;ServerOffline: database outage&quot; for any CLI command that I try<BR>
&gt; &gt; to execute.<BR>
&gt; &gt;<BR>
&gt; &gt; I initially suspected that it might be because koji cannot connect to<BR>
&gt; &gt; the database. But, I checked that I can login to the database through<BR>
&gt; &gt; command-line.<BR>
&gt; &gt;&nbsp; &gt;&gt; psql<BR>
&gt; &gt;<BR>
&gt; &gt; Also, I wrote a small script in python which mimics koji's method of<BR>
&gt; &gt; connecting to the database (with reference<BR>
&gt; &gt; to /usr/lib/python2.5/site-packages/koji/db.py) and it works fine!<BR>
&gt; &gt;<BR>
&gt; &gt; Just to make sure, I restarted postgresql service in vain.<BR>
&gt; &gt; Re-initialised the database (Remove /var/lib/pgsql and run &quot;service<BR>
&gt; &gt; postgresql initdb&quot; and all the other steps) to no avail.<BR>
&gt; &gt;<BR>
&gt; &gt; I started seeing this problem after a run of the koji-shadow script. It<BR>
&gt; &gt; exited abnormally giving this very error. Since then, I cannot even<BR>
&gt; &gt; access koji-cli.. neither koji-web.<BR>
&gt; &gt;<BR>
&gt; &gt; I have been tracing through the koji scripts and I see that the SSL<BR>
&gt; &gt; login succeeds and then the very first rpc call: &quot;getAPIVersion&quot; fails.<BR>
&gt; &gt; Wireshark shows that the koji-hub replies with &quot;Connection: close&quot; to<BR>
&gt; &gt; the getAPIVersion call.<BR>
&gt; &gt;<BR>
&gt; &gt; Any idea as to what is going wrong?<BR>
&gt; &gt; Any pointers?<BR>
&gt;<BR>
&gt; You have not written if you have tried to restart Apache. koji(hub) has<BR>
&gt; no auto-reconnect if it looses connection to the database. So if for<BR>
&gt; whatever reason it lost the connection to PostgreSQL, it will never<BR>
&gt; reconnect. You have to manually restart Apache!<BR>
&gt;<BR>
&gt; -of<BR>
&gt;<BR>
&gt; --<BR>
&gt; Fedora-buildsys-list mailing list<BR>
&gt; Fedora-buildsys-list@redhat.com<BR>
&gt; <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>