osa-dispatcher and osad clients cannot connect to jabber service on satellite

Solution Verified - Updated -

Issue

  • After updating the software on the satellite server, osa-dispatcher and osad clients are no longer able to connect to the jabber service. Starting osad produces the following error:
Starting osad: Traceback (most recent call last):
  File "/usr/share/rhn/osad/jabber_lib.py", line 254, in setup_connection
    c = self._get_jabber_client(js)
  File "/usr/share/rhn/osad/jabber_lib.py", line 311, in _get_jabber_client
    c.connect()
  File "/usr/share/rhn/osad/jabber_lib.py", line 577, in connect
    jabber.Client.connect(self)
  File "/usr/lib/python2.4/site-packages/jabber/xmlstream.py", line 464, in connect
    else: self._sock.connect((self._hostIP, self._port))
  File "<string>", line 1, in connect
error: (111, 'Connection refused')
  • The osa-dispatcher.log just shows it is unable to connect to any jabber servers:
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.setup_connection('Connecting to', 'satellite.example.com')
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib._get_jabber_client
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib._get_jabber_client('Connecting to', 'satellite.example.com')
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.__init__
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.__init__
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.connect
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.print_message('socket error',)
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.print_message('Could not connect to jabber server', 'satellite.example.com')
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.setup_connection('ERROR', 'Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 254, in setup_connection\n    c = self._get_jabber_client(js)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 311, in _get_jabber_client\n    c.connect()\n  File "/usr/share/rhn/osad/jabber_lib.py", line 577, in connect\n    jabber.Client.connect(self)\n  File "/usr/lib/python2.4/site-packages/jabber/xmlstream.py", line 464, in connect\n    else: self._sock.connect((self._hostIP, self._port))\n  File "<string>", line 1, in connect\nerror: (111, \'Connection refused\')\n')
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.setup_connection('Could not connect to any jabber server',)
2012/02/27 18:25:35 -04:00 530 0.0.0.0: osad/jabber_lib.main('Unable to connect to jabber servers, sleeping 10 seconds',)
  • Yet the jabber services show as starting [OK] and the processes are running as shown in the output of ps.
  • OSAD do not start with 'Could not connect to any jabber server' message
# /usr/sbin/osad -N -v -v -v -v
2014-07-07 05:01:06 jabber_lib.print_message: Could not connect to jabber server satellite.example.com
2014-07-07 05:01:06 jabber_lib.setup_connection: Could not connect to any jabber server
2014-07-07 05:01:06 jabber_lib.main: Unable to connect to jabber servers, sleeping 98 seconds

Environment

  • Red Hat Network Satellite 5.x
  • Monitoring

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content