<!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>Koji: ServerOffline</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi,<BR>
I've been running a local koji instance at my workplace. It worked<BR>
absolutely fine for a fortnight. But, since Monday, I am getting this<BR>
error : "ServerOffline: database outage" for any CLI command that I try<BR>
to execute.<BR>
<BR>
I initially suspected that it might be because koji cannot connect to<BR>
the database. But, I checked that I can login to the database through<BR>
command-line.<BR>
>> psql<BR>
<BR>
Also, I wrote a small script in python which mimics koji's method of<BR>
connecting to the database (with reference<BR>
to /usr/lib/python2.5/site-packages/koji/db.py) and it works fine!<BR>
<BR>
Just to make sure, I restarted postgresql service in vain.<BR>
Re-initialised the database (Remove /var/lib/pgsql and run "service<BR>
postgresql initdb" and all the other steps) to no avail.<BR>
<BR>
I started seeing this problem after a run of the koji-shadow script. It<BR>
exited abnormally giving this very error. Since then, I cannot even<BR>
access koji-cli.. neither koji-web.<BR>
<BR>
I have been tracing through the koji scripts and I see that the SSL<BR>
login succeeds and then the very first rpc call: "getAPIVersion" fails.<BR>
Wireshark shows that the koji-hub replies with "Connection: close" to<BR>
the getAPIVersion call.<BR>
<BR>
Any idea as to what is going wrong?<BR>
Any pointers?<BR>
<BR>
Jitesh<BR>
</FONT>
</P>

</BODY>
</HTML>