Bug 1071713 - osa-dispatcher is dead, bud pid file exists
Summary: osa-dispatcher is dead, bud pid file exists
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2014-03-03 02:20 UTC by Zhang Hao
Modified: 2017-09-28 18:08 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-14 03:28:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Zhang Hao 2014-03-03 02:20:45 UTC
Description of problem:
While run spacewalk-service start, osa-dispatcher is OK,but osa-dispatcher is not running,
#spacewalk-service status

postmaster (pid  1907) is running...
router (pid 2061) is running...
sm (pid 2068) is running...
c2s (pid 2075) is running...
s2s (pid 2082) is running...
tomcat6 (pid 2019) is running...                           [确定]
httpd (pid  2050) is running...
osa-dispatcher is dead,but pid file exists
rhn-search is running (2185).
cobblerd (pid 4835) is running...
RHN Taskomatic is running (2408).

osa-dispatcher.log:
2014/03/03 09:11:45 +09:00 2149 0.0.0.0: osad/jabber_lib.__init__
2014/03/03 09:11:45 +09:00 2149 0.0.0.0: osad/jabber_lib.setup_connection('Connected to jabber server', 'localhost.localdomain')
2014/03/03 09:11:45 +09:00 2149 0.0.0.0: osad/jabber_lib.register('ERROR', 'Invalid password')

What password for it?

In my rhn.conf:
# OSA configuration #

server.jabber_server = localhost.localdomain
osa-dispatcher.jabber_server = localhost.localdomain

# set up SSL on the dispatcher
osa-dispatcher.osa_ssl_cert = /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT

If osa-dispatcher.jabber_username and osa-dispatcher.jabber_password are also need in rhn.conf, but if I add in rhn.conf it is same.

Version-Release number of selected component (if applicable):
#rpm -q spacewalk-backend osa-dispatcher
spacewalk-backend-2.0.3-1.el6.noarch
osa-dispatcher-5.11.27-1.el6.noarch
#rpm -q postgresql
postgresql-8.4.13-1.el6.x86_64

Comment 1 Paul Robert Marino 2014-04-07 15:19:25 UTC
this is a know issue we've been having with jabberd form time to time its database gets corrupted. no one is sure exactly why but the good news is you don't need the contents of jabberd's database so you can simply wipe it out and it will rebuild itself

here is the workaround procedure
run the following

service osa-dispatcher stop
service jabberd stop
rm -f  /var/lib/jabberd/db/*
service jabberd start
service osa-dispatcher start

Comment 2 Zhang Hao 2014-04-14 03:28:33 UTC
Thank you very much, now it works.

Comment 3 Eric Herget 2017-09-28 18:08:23 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


Note You need to log in before you can comment on or make changes to this bug.