<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Cambria","serif";
        color:#365F91;
        mso-fareast-language:EN-GB;
        font-weight:bold;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-GB;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:975600832;
        mso-list-template-ids:660905060;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Alex,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Re-read what I actually suggested,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Firstly, you’re using localhost, I suggested trying the FQDN that your client is trying to use<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Secondly from the client see if you can resolve the FQDN of the host you want to connect to for the updates, as it’s an error 500 I’d assume you can, but it’s worth looking at.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Matt<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com] <b>On Behalf Of </b>Aleksandar Pashaliyski<br><b>Sent:</b> 14 June 2011 09:00<br><b>To:</b> spacewalk-list@redhat.com<br><b>Subject:</b> Re: [Spacewalk-list] spacewalk problem while register clients<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi Matt,<br><br><br>Yes, I'm able to resolve the hostname of machine and connect local to oracle database:<br><br>[root@spacewalk ~]# sqlplus 'spacewalk/spacewalk@//localhost/XE'<br><br>SQL*Plus: Release 11.2.0.2.0 Production on Tue Jun 14 10:54:55 2011<br><br>Copyright (c) 1982, 2010, Oracle.  All rights reserved.<br><br><br>Connected to:<br>Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production<br><br>SQL> Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production<br>[root@spacewalk ~]# sqlplus 'spacewalk/spacewalk@//<a href="http://spacewalk.local.net/XE">spacewalk.local.net/XE</a>'<br><br>SQL*Plus: Release 11.2.0.2.0 Production on Tue Jun 14 10:55:15 2011<br><br>Copyright (c) 1982, 2010, Oracle.  All rights reserved.<br><br><br>Connected to:<br>Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production<br><br>SQL> <br>SQL> Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production<br><br><br><br><br>Regards,<br>Alexander<o:p></o:p></p><div><p class=MsoNormal>On Tue, Jun 14, 2011 at 10:37 AM, Matthew Darcy <<a href="mailto:MDarcy@sch-group.net">MDarcy@sch-group.net</a>> wrote:<o:p></o:p></p><div><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>how spacewalk connects to the database for the web interface and clients connect can be missleading.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>try manually connecting to the database with sqlplus, but make sure you use the hostname it's using in the connection string, eg: in your example <a href="http://spacewalk.local.net" target="_blank">spacewalk.local.net</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>make sure the basics are there too, eg: that you can resolve <a href="http://spacewalk.local.net" target="_blank">spacewalk.local.net</a> from your client (DNS/routing/etc)<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>Matt<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <o:p></o:p></span></p></div><div><div class=MsoNormal align=center style='text-align:center'><span style='color:black'><hr size=2 width="100%" align=center></span></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a>] on behalf of Aleksandar Pashaliyski [<a href="mailto:al.pashaliyski@gmail.com" target="_blank">al.pashaliyski@gmail.com</a>]<br><b>Sent:</b> 14 June 2011 08:04<br><b>To:</b> <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br><b>Subject:</b> [Spacewalk-list] spacewalk problem while register clients</span><span style='color:black'><o:p></o:p></span></p></div><div><div><div><p class=MsoNormal><span style='color:black'>Hi guys,<br><br><br>I've a problem with the spacewalk.<br>I have installed it successfully 1.4 version on rhel6, but when I try to register a new client, it gets timeout.<br>Also the links <a href="http://spacewalk.local.net/XMLRPC" target="_blank">http://spacewalk.local.net/XMLRPC</a> and <a href="https://spacewalk.local.net/XMLRPC" target="_blank">https://spacewalk.local.net/XMLRPC</a> returns:<o:p></o:p></span></p><h1><span style='color:black'>500 Error - Internal Server Error<o:p></o:p></span></h1><p><span style='color:black'>You may have reached this page in one of the following ways:<o:p></o:p></span></p><ol start=1 type=1><li class=MsoNormal style='color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1'>You've found an error in the site. Please report this error to your local administrator with details of how you received this message.<o:p></o:p></li></ol><p class=MsoNormal><span style='color:black'><br>In httpd's error logs appears:<br><br><br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64] mod_wsgi (pid=14093): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/xmlrpc. <o:p></o:p></span></p><div><p class=MsoNormal><span style='color:black'>py'.<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64] Traceback (most recent call last):<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]   File "/usr/share/rhn/wsgi/xmlrpc.py", line 22, in application<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]     return wsgiHandler.handle(environ, start_response, "xmlrpc", "server.xmlrpc")<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 45, in handle<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]     ret = appServ(req)<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheHandler.py", line 141, in handler<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]     h = rhnSQL.prepare("select label, value from rhnTemplateString")<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 190, in prepare<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]     db = __test_DB()<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 153, in __test_DB<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64]     raise SystemError, "Not connected to any database!"<br>[Thu Jun 09 13:11:31 2011] [error] [client 10.5.1.64] SystemError: Not connected to any database!<br><br><br>But it is connected to the database, because I'm able to change configuration of spacewalk via its web interface.<br><br>My netstat:<br>[root@spacewalk httpd]# netstat -ntpl<br>Active Internet connections (only servers)<br>Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   <br>tcp        0      0 <a href="http://0.0.0.0:1290/" target="_blank">0.0.0.0:1290</a>                0.0.0.0:*                   LISTEN      13906/python        <br>tcp        0      0 <a href="http://0.0.0.0:111/" target="_blank">0.0.0.0:111</a>                 0.0.0.0:*                   LISTEN      1125/rpcbind        <br>tcp        0      0 <a href="http://0.0.0.0:1521/" target="_blank">0.0.0.0:1521</a>                0.0.0.0:*                   LISTEN      9706/tnslsnr        <br>tcp        0      0 <a href="http://0.0.0.0:33939/" target="_blank">0.0.0.0:33939</a>               0.0.0.0:*                   LISTEN      9733/xe_d000_XE     <br>tcp        0      0 <a href="http://0.0.0.0:5269/" target="_blank">0.0.0.0:5269</a>                0.0.0.0:*                   LISTEN      13891/s2s           <br>tcp        0      0 <a href="http://0.0.0.0:22/" target="_blank">0.0.0.0:22</a>                  0.0.0.0:*                   LISTEN      1329/sshd           <br>tcp        0      0 <a href="http://127.0.0.1:25/" target="_blank">127.0.0.1:25</a>                0.0.0.0:*                   LISTEN      1512/master         <br>tcp        0      0 <a href="http://127.0.0.1:25151/" target="_blank">127.0.0.1:25151</a>             0.0.0.0:*                   LISTEN      14176/python        <br>tcp        0      0 <a href="http://127.0.0.1:9055/" target="_blank">127.0.0.1:9055</a>              0.0.0.0:*                   LISTEN      9706/tnslsnr        <br>tcp        0      0 <a href="http://127.0.0.1:32000/" target="_blank">127.0.0.1:32000</a>             0.0.0.0:*                   LISTEN      14131/java          <br>tcp        0      0 <a href="http://0.0.0.0:35872/" target="_blank">0.0.0.0:35872</a>               0.0.0.0:*                   LISTEN      1143/rpc.statd      <br>tcp        0      0 <a href="http://127.0.0.1:32001/" target="_blank">127.0.0.1:32001</a>             0.0.0.0:*                   LISTEN      14252/java          <br>tcp        0      0 <a href="http://0.0.0.0:5347/" target="_blank">0.0.0.0:5347</a>                0.0.0.0:*                   LISTEN      13870/router        <br>tcp        0      0 <a href="http://0.0.0.0:5222/" target="_blank">0.0.0.0:5222</a>                0.0.0.0:*                   LISTEN      13884/c2s           <br>tcp        0      0 ::ffff:<a href="http://127.0.0.1:8009/" target="_blank">127.0.0.1:8009</a>       :::*                        LISTEN      13979/java          <br>tcp        0      0 ::ffff:<a href="http://127.0.0.1:2828/" target="_blank">127.0.0.1:2828</a>       :::*                        LISTEN      14131/java          <br>tcp        0      0 ::ffff:<a href="http://127.0.0.1:2829/" target="_blank">127.0.0.1:2829</a>       :::*                        LISTEN      14252/java          <br>tcp        0      0 :::111                      :::*                        LISTEN      1125/rpcbind        <br>tcp        0      0 :::80                       :::*                        LISTEN      14083/httpd         <br>tcp        0      0 ::ffff:<a href="http://127.0.0.1:8080/" target="_blank">127.0.0.1:8080</a>       :::*                        LISTEN      13979/java          <br>tcp        0      0 :::22                       :::*                        LISTEN      1329/sshd           <br>tcp        0      0 ::1:25                      :::*                        LISTEN      1512/master         <br>tcp        0      0 :::443                      :::*                        LISTEN      14083/httpd         <br>tcp        0      0 ::ffff:<a href="http://127.0.0.1:8005/" target="_blank">127.0.0.1:8005</a>       :::*                        LISTEN      13979/java          <br>tcp        0      0 :::33863                    :::*                        LISTEN      1143/rpc.statd      <br><br><br><br>I used these two howtos for installation:<br><a href="https://fedorahosted.org/spacewalk/wiki/OracleXeSetup" target="_blank">https://fedorahosted.org/spacewalk/wiki/OracleXeSetup</a><br><a href="https://fedorahosted.org/spacewalk/wiki/HowToInstall13" target="_blank">https://fedorahosted.org/spacewalk/wiki/HowToInstall13</a><br><br><br><br>What I wrong and how can I debug the problem ?<br><br><br><br><br>Thank you!<br>Best Regards,<br>Alexander<o:p></o:p></span></p></div></div></div></div></div></div><p class=MsoNormal><br>______________________________________________________________________<br>This email has been scanned by the MessageLabs Email Security System.<br>For more information please visit <a href="http://www.messagelabs.com/email" target="_blank">http://www.messagelabs.com/email</a> <br>______________________________________________________________________<o:p></o:p></p></div><p class=MsoNormal><br>_______________________________________________<br>Spacewalk-list mailing list<br><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><BR>
______________________________________________________________________<BR>
This email has been scanned by the MessageLabs Email Security System.<BR>
For more information please visit http://www.messagelabs.com/email <BR>
______________________________________________________________________<BR>
</body></html>