<html><body>
<p>Thanks, that did the trick. You should document that somewhere, because I never would have figured that out on my own. <br>
<br>
-Matthew Treinish<br>
<br>
<img width="16" height="16" src="cid:1__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Mike Bonnet ---07/15/2010 09:25:25 AM---On 07/15/2010 10:12 AM, Matthew B Treinish wrote: &gt;"><font color="#424282">Mike Bonnet ---07/15/2010 09:25:25 AM---On 07/15/2010 10:12 AM, Matthew B Treinish wrote: &gt;</font><br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">From:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Mike Bonnet &lt;mikeb@redhat.com&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">To:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">buildsys@lists.fedoraproject.org</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Date:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">07/15/2010 09:25 AM</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Subject:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Re: Trouble Upgrading Koji to v1.4.0</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Sent by:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=08BBFDF2DFDC31D88f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">buildsys-bounces@lists.fedoraproject.org</font></td></tr>
</table>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt>On 07/15/2010 10:12 AM, Matthew B Treinish wrote:<br>
&gt; <br>
&gt; I've upgraded all of koji including the hub and koji-web. I'm able to<br>
&gt; submit builds and use koji with the CLI the only thing that doesn't work is<br>
&gt; koji-web. I didn't change anything with the configurations from 1.3.2. I<br>
&gt; did run the database schema update script to transition the database schema<br>
&gt; from 1.3 to 1.4.<br>
&gt; <br>
&gt; I've posted the koji-web.conf:<br>
&gt; </tt><tt><a href="http://pastebin.com/V8YkX5rD">http://pastebin.com/V8YkX5rD</a></tt><tt><br>
&gt; <br>
&gt; and kojihub.conf on:<br>
&gt; </tt><tt><a href="http://pastebin.com/8t91PNZe">http://pastebin.com/8t91PNZe</a></tt><tt><br>
<br>
In your kojihub.conf try changing:<br>
<br>
PythonOption KojiHubURL </tt><tt><a href="https://localhost/kojihub">https://localhost/kojihub</a></tt><tt><br>
<br>
to:<br>
<br>
PythonOption KojiHubURL </tt><tt><a href="http://localhost/kojihub">http://localhost/kojihub</a></tt><tt><br>
<br>
The old ssl config requires client certs to be provided for every<br>
https:// connection, but the web UI only does a full login (including<br>
certs) on certain pages. &nbsp;Using plain http for general access to the hub<br>
should resolve the issue. &nbsp;https will still be used for any actions that<br>
modify state on the hub.<br>
<br>
&gt; -Matthew Treinish<br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; From: &nbsp; &nbsp; &nbsp; Mike Bonnet &lt;mikeb@redhat.com&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp; buildsys@lists.fedoraproject.org &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; Date: &nbsp; &nbsp; &nbsp; 07/14/2010 04:20 PM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; Subject: &nbsp; &nbsp;Re: Trouble Upgrading Koji to v1.4.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; Sent by: &nbsp; &nbsp;buildsys-bounces@lists.fedoraproject.org &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On 07/14/2010 05:09 PM, Matthew B Treinish wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I have been playing around with a koji 1.3.2 server on my machine for the<br>
&gt;&gt; past couple of weeks. Today I tried updating the server to v1.4.0 and am<br>
&gt;&gt; having some difficulty getting the koji-web interface working. Koji-hub,<br>
&gt;&gt; kojira, kojid, and the koji cli are working fine but koji-web won't run.<br>
&gt; I<br>
&gt;&gt; have a mod_python traceback of the error:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Traceback (most recent call last):<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/site-packages/mod_python/importer.py&quot;, line<br>
&gt;&gt; 1537, in HandlerDispatch<br>
&gt;&gt; &nbsp; &nbsp; default=default_handler, arg=req, silent=hlist.silent)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/site-packages/mod_python/importer.py&quot;, line<br>
&gt;&gt; 1229, in _process_target<br>
&gt;&gt; &nbsp; &nbsp; result = _execute_target(config, req, object, arg)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/site-packages/mod_python/importer.py&quot;, line<br>
&gt;&gt; 1128, in _execute_target<br>
&gt;&gt; &nbsp; &nbsp; result = object(arg)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/share/koji-web/lib/kojiweb/publisher.py&quot;, line 39, in<br>
&gt; handler<br>
&gt;&gt; &nbsp; &nbsp; return mod_python.publisher.handler(req)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/site-packages/mod_python/publisher.py&quot;, line<br>
&gt;&gt; 213, in handler<br>
&gt;&gt; &nbsp; &nbsp; published = publish_object(req, object)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/share/koji-web/lib/kojiweb/publisher.py&quot;, line 34, in<br>
&gt;&gt; publish_object<br>
&gt;&gt; &nbsp; &nbsp; return old_publish_object(req, _genHTML(req, 'error.chtml'))<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/share/koji-web/lib/kojiweb/util.py&quot;, line 69, in _genHTML<br>
&gt;&gt; &nbsp; &nbsp; req._values['mavenEnabled'] = req._session.mavenEnabled()<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib/python2.6/site-packages/koji/__init__.py&quot;, line 1468, in<br>
&gt;&gt; __call__<br>
&gt;&gt; &nbsp; &nbsp; return self.__func(self.__name,args,opts)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib/python2.6/site-packages/koji/__init__.py&quot;, line 1698, in<br>
&gt;&gt; _callMethod<br>
&gt;&gt; &nbsp; &nbsp; return proxy.__getattr__(name)(*args)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/xmlrpclib.py&quot;, line 1199, in __call__<br>
&gt;&gt; &nbsp; &nbsp; return self.__send(self.__name, args)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/xmlrpclib.py&quot;, line 1489, in __request<br>
&gt;&gt; &nbsp; &nbsp; verbose=self.__verbose<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/xmlrpclib.py&quot;, line 1235, in request<br>
&gt;&gt; &nbsp; &nbsp; self.send_content(h, request_body)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/xmlrpclib.py&quot;, line 1349, in send_content<br>
&gt;&gt; &nbsp; &nbsp; connection.endheaders()<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/httplib.py&quot;, line 868, in endheaders<br>
&gt;&gt; &nbsp; &nbsp; self._send_output()<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/httplib.py&quot;, line 740, in _send_output<br>
&gt;&gt; &nbsp; &nbsp; self.send(msg)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/httplib.py&quot;, line 699, in send<br>
&gt;&gt; &nbsp; &nbsp; self.connect()<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/httplib.py&quot;, line 1073, in connect<br>
&gt;&gt; &nbsp; &nbsp; self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/ssl.py&quot;, line 350, in wrap_socket<br>
&gt;&gt; &nbsp; &nbsp; suppress_ragged_eofs=suppress_ragged_eofs)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/ssl.py&quot;, line 118, in __init__<br>
&gt;&gt; &nbsp; &nbsp; self.do_handshake()<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; File &quot;/usr/lib64/python2.6/ssl.py&quot;, line 293, in do_handshake<br>
&gt;&gt; &nbsp; &nbsp; self._sslobj.do_handshake()<br>
&gt;&gt;<br>
&gt;&gt; SSLError: [Errno 1] _ssl.c:480: error:14094410:SSL<br>
&gt;&gt; routines:SSL3_READ_BYTES:sslv3 alert handshake failure<br>
&gt;&gt;<br>
&gt;&gt; Everything was working fine in v1.3.2 so I'm at a loss at what could<br>
&gt; cause<br>
&gt;&gt; the SSL certificate to fail after the upgrade. I'd appreciate any insight<br>
&gt;&gt; into what I'm doing wrong.<br>
&gt; <br>
&gt; There were some SSL changes in 1.4.0, did you make those changes to your<br>
&gt; ssl.conf, kojihub.conf, and kojiweb.conf in /etc/httpd/conf.d? &nbsp;1.4.0<br>
&gt; should continue to work with the old config if you haven't touched<br>
&gt; anything. &nbsp;Could you post your kojihub.conf and kojiweb.conf somewhere?<br>
&gt; <br>
&gt; Also, have you upgraded both the hub and web to 1.4.0?<br>
&gt; --<br>
&gt; buildsys mailing list<br>
&gt; buildsys@lists.fedoraproject.org<br>
&gt; </tt><tt><a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a></tt><tt><br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; --<br>
&gt; buildsys mailing list<br>
&gt; buildsys@lists.fedoraproject.org<br>
&gt; </tt><tt><a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a></tt><tt><br>
<br>
--<br>
buildsys mailing list<br>
buildsys@lists.fedoraproject.org<br>
</tt><tt><a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a></tt><tt><br>
</tt><br>
<br>
</body></html>