jabberd sm and c2s processes are not starting and osa-dispatcher is encountering "Connection Refused" errors
Issue
- All the jabberd processes appear to start successfully and only osa-dispatcher encounters a connection refused error. This is because it is trying to connect to the c2s process port - 5222 - but the c2s process isn't actually running, hence the connection refused error.
Starting router: [ OK ]
Starting sm: [ OK ]
Starting c2s: [ OK ]
Starting s2s: [ OK ]
Starting Oracle Net Listener ... [ OK ]
Starting Oracle DB instance "rhnsat" ... [ OK ]
Starting osa-dispatcher: RHN 31674 2012/03/26 09:40:53 -04:00: ('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',)
[ OK ]
- Looking in /var/log/messages we can see errors displayed when trying to start the jabberd sm and c2s processes:
Mar 26 09:44:28 spacew jabberd/sm[3358]: starting up
Mar 26 09:44:28 spacew jabberd/sm[3358]: process id is 3358, written to /var/lib/jabberd/pid/sm.pid
Mar 26 09:44:28 spacew jabberd/sm[3358]: loading 'db' storage module
Mar 26 09:44:28 spacew jabberd/sm[3358]: db: corruption detected! close all jabberd processes and run db_recover
Mar 26 09:44:28 spacew jabberd/c2s[3365]: starting up
Mar 26 09:44:28 spacew jabberd/c2s[3365]: process id is 3365, written to /var/lib/jabberd/pid/c2s.pid
Mar 26 09:44:28 spacew jabberd/c2s[3365]: modules search path: /usr/lib64/jabberd
Mar 26 09:44:28 spacew jabberd/c2s[3365]: loading 'db' authreg module
Mar 26 09:44:28 spacew jabberd/c2s[3365]: db: corruption detected! close all jabberd processes and run db_recover
- The
jabberd
process is taking long time to start, its slowing down overall system startup, how to solve this ?
Environment
- Red Hat Network Satellite 5.4.1
- Red Hat Network Proxy
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.