<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi Paul,<br><br>Thank you very much for the info. The spacewalk-hostname-rename tool must be what I need. I've downloaded and installed spacewalk utilities with spacewalk-hostname-rename. A new issue occurred during executing it:<br><br># spacewalk-hostname-rename 192.168.10.99<br>Validating IP ... OK<br>=============================================<br>hostname: spacewalkhost<br>ip: 192.168.10.99<br>=============================================<br>Stopping rhn-satellite services ... OK<br>Testing DB connection ... psql:<stdin>:1: ERROR:  syntax error at or near "off"<br>LINE 1: set feed off;<br>FAILED<br>Your database isn't running.<br>Fix the problem and run /usr/bin/spacewalk-hostname-rename again<br><br># service postgresql status<br>postmaster (pid  5740) is
 running...<br><div><span><br></span></div><div>Please help. Thank you! <br><br></div><div>nz<br><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Paul Robert Marino <prmarino1@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> fnwsa@yahoo.com; spacewalk-list@redhat.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 23, 2012 11:03:28 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Spacewalk-list] FQDN can't solve 'Unable to connect to jabber servers'<br> </font> </div> <br>On Thu, Aug 23, 2012 at 10:29 AM,  <<a ymailto="mailto:fnwsa@yahoo.com" href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>> wrote:<br>> Hi, I've got a tough issue -
 Unable to connect to jabber servers<br>><br>> # service osa-dispatcher start<br>> Starting osa-dispatcher: RHN 32080 2012/08/23 09:58:53 -04:00: ('Not able to<br>> reconnect',)<br>> RHN 32080 2012/08/23 09:58:53 -04:00: ('Traceback (most recent call last):\n<br>> File "/usr/share/rhn/osad/jabber_lib.py", line 252, in setup_connection\n<br>> c = self._get_jabber_client(js)\n  File "/usr/share/rhn/osad/jabber_lib.py",<br>> line 309, in _get_jabber_client\n    c.connect()\n  File<br>> "/usr/share/rhn/osad/jabber_lib.py", line 589, in connect\n    raise<br>> SSLDisabledError\nSSLDisabledError\n',) [  OK  ]<br>><br>> I've changed all spacewalk server's hostname with its FQDN in all config<br>> files I can found:<br>><br>> # grep osa /etc/rhn/rhn.conf<br>> osa-dispatcher.jabber_server = spacewalkhost.ourdomain.com<br>> osa-dispatcher.jabber_username =
 rhn-dispatcher-sat<br>> osa-dispatcher.jabber_password = rhn-dispatcher-RANDOM_STRING<br>> osa-dispatcher.osa_ssl_cert = /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT<br>><br>> # grep spacewalkhost /etc/jabberd/*<br>> /etc/jabberd/c2s.xml:    <id require-starttls="false"<br>> pemfile="/etc/pki/spacewalk/jabberd/server.pem" realm=""<br>> register-enable="true">spacewalkhost.ourdomain.com</id><br>> /etc/jabberd/server.pem:8ZHSDZRzaSm7bNl2l8om83QrPMG/WDJh40PANPh/b60asdvSb5uwpb6dc4rxxxxx<br>> /etc/jabberd/sm.xml:  <id>spacewalkhost.ourdomain.com</id><br>> /etc/jabberd/sm.xml:    <id>spacewalkhost.ourdomain.com</id><br>><br>> # grep spacewalkhost /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT<br>>         Issuer: C=US, ST=..., L=..., O=..., OU=spacewalkhost.ourdomain.com,<br>> CN=spacewalkhost.ourdomain.com<br>>        
 Subject: C=US, ST=..., L=..., O=..., OU=spacewalkhost.ourdomain.com,<br>> CN=spacewalkhost.ourdomain.com<br>><br>> DirName:/C=US/ST=.../L=.../O=.../OU=spacewalkhost.ourdomain.com/CN=spacewalkhost.ourdomain.com<br>><br>> # tail /var/log/rhn/osa-dispatcher.log<br>> 2012/08/23 10:17:16 -04:00 32080 0.0.0.0: osad/jabber_lib.__init__<br>> 2012/08/23 10:17:16 -04:00 32080 0.0.0.0: osad/jabber_lib.connect('Server<br>> did not return a <features /> stanza, reconnecting',)<br>> 2012/08/23 10:17:17 -04:00 32080 0.0.0.0: osad/jabber_lib.connect('Server<br>> did not return a <features /> stanza, reconnecting',)<br>> 2012/08/23 10:17:18 -04:00 32080 0.0.0.0: osad/jabber_lib.connect('Server<br>> did not return a <features /> stanza, reconnecting',)<br>> 2012/08/23 10:17:19 -04:00 32080 0.0.0.0: osad/jabber_lib.connect('ERROR',<br>> 'Not able to reconnect')<br>> 2012/08/23 10:17:19 -04:00 32080
 0.0.0.0:<br>> osad/jabber_lib.print_message('SSLError',)<br>> 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> osad/jabber_lib.print_message('Could not connect to jabber server',<br>> 'spacewalkhost.ourdomain.com')<br>> 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> osad/jabber_lib.setup_connection('ERROR', 'Traceback (most recent call<br>> last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 252, in<br>> setup_connection\n    c = self._get_jabber_client(js)\n  File<br>> "/usr/share/rhn/osad/jabber_lib.py", line 309, in _get_jabber_client\n<br>> c.connect()\n  File "/usr/share/rhn/osad/jabber_lib.py", line 589, in<br>> connect\n    raise SSLDisabledError\nSSLDisabledError\n')<br>> 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> osad/jabber_lib.setup_connection('Could not connect to any jabber server',)<br>> 2012/08/23 10:17:19 -04:00 32080 0.0.0.0: osad/jabber_lib.main('Unable
 to<br>> connect to jabber servers, sleeping 10 seconds',)<br>><br>> # tail /var/log/messages<br>> Aug 23 10:20:46 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48416] connect<br>> Aug 23 10:20:46 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48416] disconnect jid=unbound, packets: 0<br>> Aug 23 10:20:47 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48417] connect<br>> Aug 23 10:20:47 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48417] disconnect jid=unbound, packets: 0<br>> Aug 23 10:20:58 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48418] connect<br>> Aug 23 10:20:58 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48418] disconnect jid=unbound, packets: 0<br>> Aug 23 10:20:59 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48419]
 connect<br>> Aug 23 10:20:59 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48419] disconnect jid=unbound, packets: 0<br>> Aug 23 10:21:00 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48425] connect<br>> Aug 23 10:21:00 spacewalkhost jabberd/c2s[15904]: [7] [::ffff:192.168.10.99,<br>> port=48425] disconnect jid=unbound, packets: 0<br>><br>> Why does the spacewalk server's hostname rather than its FQDN display in<br>> messages? What do I still miss? Please help and thank you in advance!<br>in answer to the log question Thats because its syslog or rsyslog<br>writing that log file and thats how its configured by default<br><br>Also there is more to renaming the host than altering a few config<br>files there is actually a tool for this<br>The current version of the tool has a bug with PostgreSQL but if you<br>download the latest version from the git repo it should work.<br>see the
 bug report here <a href="https://bugzilla.redhat.com/show_bug.cgi?id=809444" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=809444</a><br><br>><br>> Nick<br>><br>> _______________________________________________<br>> Spacewalk-list mailing list<br>> <a ymailto="mailto:Spacewalk-list@redhat.com" 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><br><br><br> </div> </div>  </div></body></html>