[Spacewalk-list] Error in systemctl status osa-dispatcher
Len Ewen
ewenf at uindy.edu
Mon Mar 2 19:18:16 UTC 2020
I was trying to configure OSAD to push updates and when I checked the
status of osa-dispatcher is am seeing
[root at spacewalk02 ~]# systemctl status -l osa-dispatcher
● osa-dispatcher.service - OSA Dispatcher daemon
Loaded: loaded (/usr/lib/systemd/system/osa-dispatcher.service; enabled;
vendor preset: disabled)
Active: active (running) since Thu 2020-02-20 07:56:47 EST; 1 weeks 4
days ago
Main PID: 1827 (osa-dispatcher)
CGroup: /system.slice/osa-dispatcher.service
└─1827 /usr/bin/python2 -s /usr/sbin/osa-dispatcher --pid-file
/var/run/osa-dispatcher.pid
Feb 20 07:56:46 edu systemd[1]: Starting OSA Dispatcher daemon...
Feb 20 07:56:47 edu osa-dispatcher[1820]: Spacewalk 1820 2020/02/20
07:56:47 -04:00: ('Error caught:',)
Feb 20 07:56:47 edu osa-dispatcher[1820]: Spacewalk 1820 2020/02/20
07:56:47 -04:00: ('Traceback (most recent call last):\n File
"/usr/lib/python2.7/site-packages/osad/jabber_lib.py", line 123, in main\n
self.setup_config(config)\n File
"/usr/lib/python2.7/site-packages/osad/osa_dispatcher.py", line 115, in
setup_config\n rhnSQL.initDB()\n File
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/__init__.py",
line 158, in initDB\n raise_with_tb(e, sys.exc_info()[2])\n File
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/__init__.py",
line 145, in initDB\n __init__DB(backend, host, port, username,
password, database, sslmode, sslrootcert)\n File
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/__init__.py",
line 57, in __init__DB\n __DB.connect()\n File
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
line 194, in connect\n return self.connect(reconnect=reconnect - 1)\n
File
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
line 199, in connect\n "All attempts to connect to the database
failed"), sys.exc_info()[2])\n File
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
line 184, in connect\n self.dbh = psycopg2.connect(" ".join("%s=%s" %
(k, re.escape(str(v))) for k, v in dsndata.items()))\n File
"/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 164, in
connect\n conn = _connect(dsn, connection_factory=connection_factory,
async=async)\nSQLConnectError: (None, None, \'rhnschema\', \'All attempts
to connect to the database failed\')\n',)
Feb 20 07:56:47 edu systemd[1]: Started OSA Dispatcher daemon.
Why is it not connecting to the database and what can I do to fix it? The
jabberd service appears fine.
L
---------------
Len Ewen
Systems Administrator 1
Information Technology
University of Indianapolis
(317) 788-3362
[image: UIndyIT.jpg]
Confidentiality Notice: This communication and/or its content are for the
sole use of the intended recipient, and may be privileged, confidential, or
otherwise protected from disclosure by law. If you are not the intended
recipient, please notify the sender and then delete all copies of it.
Unless you are the intended recipient, your use or dissemination of the
information contained in this communication may be illegal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200302/cea89795/attachment.htm>
More information about the Spacewalk-list
mailing list