Service osa-dispatcher fails to load when starting SUSE Manager in a restored environment

This document (7015427) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 1.7
SUSE Manager 2.1

Situation

Service osa-dispatcher does not start when the SUSE Manager services are started with the following command:
spacewalk-service start
The line "Starting osa-dispatcher" will show an error.
It is very probable that this is a reinstalled system in which repositories and database were imported.

More details can be found in /var/log/rhn-logs/rhn/osa-dispatcher.log, a problem regarding the certificates can be observed:
2014/07/18 12:03:32 +01:00 8411 0.0.0.0: osad/jabber_lib.__init__
2014/07/18 12:03:32 +01:00 8411 0.0.0.0: osad/jabber_lib.setup_connection('Connected to jabber server', 'srv-lx-manag.bancocetelem.local')
2014/07/18 12:03:32 +01:00 8411 0.0.0.0: osad/osa_dispatcher.fix_connection('Upstream notification server started on port', 1290)
2014/07/18 12:03:32 +01:00 8411 0.0.0.0: osad/jabber_lib.process_forever
2014/07/18 12:03:41 +01:00 8411 0.0.0.0: osad/jabber_lib.main('ERROR', 'Error caught:')
2014/07/18 12:03:41 +01:00 8411 0.0.0.0: osad/jabber_lib.main('ERROR', 'Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 120, in main\n    self.process_forever(c)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 178, in process_forever\n    self.process_once(client)\n  File "/usr/share/rhn/osad/osa_dispatcher.py", line 183, in process_once\n    self.reap_pinged_clients()\n  File "/usr/share/rhn/osad/osa_dispatcher.py", line 222, in reap_pinged_clients\n    ret = h.execute(online_id=online_id, offline_id=offline_id)\n  File "/usr/lib64/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 148, in execute\n    return self._execute_wrapper(self._execute, *p, **kw)\n  File "/usr/lib64/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 290, in _execute_wrapper\n    retval = function(*p, **kw)\n  File "/usr/lib64/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 203, in _execute\n    return self._execute_(args, kwargs)\n  File "/usr/lib64/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 309, in _execute_\n    self._real_cursor.execute(self.sql, params)\nOperationalError: server closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.\n\n')
2014/07/18 12:04:18 +01:00 9315 0.0.0.0: osad/jabber_lib.__init__
2014/07/18 12:04:18 +01:00 9315 0.0.0.0: osad/jabber_lib.setup_connection('Connected to jabber server', 'srv-lx-manag.bancocetelem.local')
2014/07/18 12:04:18 +01:00 9315 0.0.0.0: osad/osa_dispatcher.fix_connection('Upstream notification server started on port', 1290)
2014/07/18 12:04:18 +01:00 9315 0.0.0.0: osad/jabber_lib.process_forever
2014/07/18 12:53:48 +01:00 11636 0.0.0.0: osad/jabber_lib.__init__
2014/07/18 12:53:48 +01:00 11636 0.0.0.0: osad/jabber_lib.connect('ERROR', 'Traceback caught:')
2014/07/18 12:53:48 +01:00 11636 0.0.0.0: osad/jabber_lib.connect('ERROR', 'Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 620, in connect\n    ssl.do_handshake()\nError: [(\'SSL routines\', \'SSL3_GET_SERVER_CERTIFICATE\', \'certificate verify failed\')]\n')
2014/07/18 13:30:07 +01:00 13494 0.0.0.0: osad/jabber_lib.__init__
2014/07/18 13:30:07 +01:00 13494 0.0.0.0: osad/jabber_lib.connect('ERROR', 'Traceback caught:')
2014/07/18 13:30:07 +01:00 13494 0.0.0.0: osad/jabber_lib.connect('ERROR', 'Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 620, in connect\n    ssl.do_handshake()\nError: [(\'SSL routines\', \'SSL3_GET_SERVER_CERTIFICATE\', \'certificate verify failed\')]\n')

Resolution

Please reinstall the package located in /root/ssl-build/<suse_manager-server-name>/rhn-org-httpd-ssl-key-pair-<suse_manager-server-name>-1.0-1.noarch.rpm

For instance (please use the proper name of the package in a given environment):
rpm -ivh --force /root/ssl-build/vm-panino.hwlab/rhn-org-httpd-ssl-key-pair-vm-panino.hwlab-1.0-1.noarch.rpm

Cause

The OSA daemon relies on /etc/pki/spacewalk/jabberd/server.pem rather than /etc/jabberd/server.pem.
This file is either missing or has to be regenerated.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7015427
  • Creation Date: 25-Jul-2014
  • Modified Date:03-Mar-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center