<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Josh,<br>
<br>
Thank You for the help!<br>
<br>
I set jabber to put its log files to /var/log/rhn/ for ease of viewing.<br>
<br>
The problem turned out to be that the fqdn "spacewalk.mydomain.com" ,
was not consisitent in the sm.xml c2s.xml files, I corrected this, then
found out in the osa-dispatcher.log file, that my SSL CN was mismatched.<br>
<br>
This Mismatch was caused by the the PTR record in my dns resolving to
an alternate FQDN, during my intial setup.<br>
<br>
Instead of reconfiguring everything, I just told the osa-dispatcher to
not check for the mismatch, by commenting out the following:<br>
<tt># if common_name != hdot:<br>
       #    raise SSLVerifyError("Mismatch: peer name: %s; common name:
%s" %<br>
        #       (self._host, common_name))<br>
</tt><br>
in:<br>
<br>
/usr/share/rhn/osad/jabber_lib.py<br>
<br>
<br>
After that was changed, I started osa_dispatcher, and there was an
issue with the username and password it was using for jabberd.  I found
out which username and password the osa-dispatcher was attempting to
use, by adding this in the <br>
/usr/share/rhn/osad/jabber_lib.py file<br>
<br>
                # Need to register the user if possible<br>
                log_error("Invalid password", password)<br>
                log_error("User:", username)<br>
<br>
I took a look in the jabber database to see if this password was right:<br>
<br>
1 - cd /var/lib/jabberd/db<br>
2 -  strings * |grep rhn-dispatcher- |grep -v com |grep -v sat<br>
<br>
(the password from the osa log did not match (perhaps due to me
re-installing jabberd and running through the setup again)<br>
<br>
Either way, I now have the right password and put it in
/etc/rhn/rhn.conf<br>
<br>
I started osa-dispatcher, and it worked!<br>
<br>
Thanks for pointing me in the right direction.<br>
<br>
<br>
Mike<br>
<br>
<br>
<br>
On 12/10/2009 09:33 AM, Joshua Roys wrote:
<blockquote cite="mid:4B2106D0.3090307@gtri.gatech.edu" type="cite">On
12/10/2009 09:20 AM, Michael Masseo wrote:
  <br>
  <blockquote type="cite">2009/12/10 09:12:27 -04:00 10232 0.0.0.0:
    <br>
osad/jabber_lib.connect('ERROR', 'Got:',<error><host-unknown
xmlns =
    <br>
'urn:ietf:params:xml:ns:xmpp-streams'  /><text xmlns =
    <br>
'urn:ietf:params:xml:ns:xmpp-streams'>service requested for unknown
    <br>
domain</text></error>)
    <br>
2009/12/10 09:12:27 -04:00 10232 0.0.0.0:
    <br>
osad/jabber_lib.print_message('SSLError',)
    <br>
2009/12/10 09:12:27 -04:00 10232 0.0.0.0:
    <br>
osad/jabber_lib.print_message('Could not connect to jabber server',
    <br>
'spacewalk.myhost.com')
    <br>
2009/12/10 09:12:27 -04:00 10232 0.0.0.0:
    <br>
osad/jabber_lib.setup_connection('Could not connect to any jabber
server',)
    <br>
2009/12/10 09:12:27 -04:00 10232 0.0.0.0: osad/jabber_lib.main('Unable
    <br>
to connect to jabber servers, sleeping 10 seconds',)
    <br>
    <br>
I have looked at all of the SSL settings, and it appears that the .pem
    <br>
file correctly exists. I have also verified that the FQDN is in the
    <br>
jabberd config files, and is reachable.
    <br>
Im not sure what else to do, does anyone have insight?
    <br>
    <br>
  </blockquote>
  <br>
The next thing to check is the jabberd output.  (what version of
jabberd/spacewalk do you have?)  If you didn't set it to go anywhere
else, it will do to /var/log/messages .  If you don't see anything out
of the norm, then here's what you can do:
  <br>
  <br>
# service jabberd stop
  <br>
...
  <br>
(open 4 terminals, or 4 `screen's)
  <br>
t1# router -D
  <br>
  <br>
t2# sm -D
  <br>
  <br>
t3# c2s -D
  <br>
  <br>
t4# s2s -D
  <br>
  <br>
And first look for errors on startup.  None of them should detach from
the terminal or otherwise end.  Then try osa-dispatcher again and see
what you get.
  <br>
  <br>
Hope to help,
  <br>
  <br>
Josh
  <br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Spacewalk-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></pre>
</blockquote>
<br>
</body>
</html>