Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-15-2013, 09:58 PM   #1
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Spacewalk 1.9 Centos Jabber problems connecting on startup?

Hi All,
Just installed the latest Spacewalk 1.9 on Centos 6.4 64bit and when I start the service I get this error when starting Spacewalk:

Starting osa-dispatcher: RHN 3837 2013/03/16 11:48:07 +11:00: ('Traceback (most recent call last):\n  File "/usr/share/rhn/osad/", line 252, in setup_connection\n    c = self._get_jabber_client(js)\n  File "/usr/share/rhn/osad/", line 309, in _get_jabber_client\n    c.connect()\n  File "/usr/share/rhn/osad/", line 567, in connect\n    jabber.Client.connect(self)\n  File "/usr/lib/python2.6/site-packages/jabber/", line 488, in connect\n    raise socket.error("Unable to connect to the host and port specified")\nerror: Unable to connect to the host and port specified\n',)

I have googled around it's jabber related:

Here are my troubleshooting steps so far:

* Iptables/iptables disabled and Flushed
* SElinux disabled
* stopped spacewalk ,cleared the jabber db rm -rf /var/lib/jabberd/db and restarted spacewalk
* followed this guide: ,
however I am confused about point 4 "Within /etc/jabberd/server.pem, verify that the same FQDN is present here" because my server.pem does not have the FQDN in there and I am not sure how it should look??

In Spacewalk the only Failed services according to the Task Schedule Status are:

* Cobbler Sync
* Kickstart Sync

everything else has started and is working fine....

Any ideas?

Old 03-15-2013, 11:34 PM   #2
Registered: Jul 2012
Posts: 234

Original Poster
Rep: Reputation: Disabled
Ok I ran this command: strace -fe trace=network osa-dispatcher -N

I get this output, it's connecting to the wrong IP, should be trying to connect to

connect(5, {sa_family=AF_INET, sin_port=htons(5222), sin_addr=inet_addr("")}, 16) = -1 EHOSTUNREACH (No route to host)

[root@centostemplate ~]# ping centostemplate
PING centostemplate.rap.local ( 56(84) bytes of data.
From icmp_seq=1 Destination Host Unreachable

Found a bad entries in /etc/hosts that caused this:

Epic fail on my part!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jabber server (jabberd 1.4) does not uplink to main jabber hubs polemon Linux - Server 2 06-23-2007 05:43 PM
Problems connecting to network on startup dairic Linux - Newbie 2 10-17-2004 03:07 PM
starting jabber server at startup lawadm1 Linux - Software 0 09-29-2004 10:55 PM
jabber startup jgnasser Linux - Software 0 07-30-2004 10:39 AM
Jabber Server problems. TheRealDeal Linux - Software 0 07-15-2004 01:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration