Description of problem: * new Spacewalk 0.4 installation * yum install jabberd osa-dispatcher * machine reboot * on startup: Starting osa-dispatcher: sh: dbhome: command not found RHN 1259 2009/01/13 14:02:29 +02:00: ('Connection attempt failed', 12541, 'ORA-12541: TNS:no listener\n') RHN 1259 2009/01/13 14:02:29 +02:00: ('Error caught:',) RHN 1259 2009/01/13 14:02:29 +02:00: ('Traceback (most recent call last):\n File "/usr/share/rhn/osad/jabber_lib.py", line 120, in main\n self.setup_config(config)\n File "/usr/share/rhn/osad/osa_dispatcher.py", line 82, in setup_config\n rhnSQL.initDB()\n File "/usr/share/rhn/server/rhnSQL/__init__.py", line 99, in initDB\n __init__DB(backend, host, port, username, password, database)\n File "/usr/share/rhn/server/rhnSQL/__init__.py", line 52, in __init__DB\n __DB.connect()\n File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 332, in connect\n raise apply(sql_base.SQLConnectError, err_args)\nSQLConnectError: (12541, \'ORA-12541: TNS:no listener\\n\', \'xe\', \'Connection_Connect(): server attach\')\n',) [ OK ] Starting taskomatic: Starting RHN Taskomatic... [ OK ] Starting Oracle Net Listener. Starting Oracle Database 10g Express Edition Instance. Version-Release number of selected component (if applicable): osa-dispatcher-5.9.1-1
Fixed in bug 479826 - git commits commit 1bc6f9bdb32408d90ebccad32f2cbb8f5aa93296 Automatic commit of package [spacewalk-backend] release [0.4.13-1]. commit 3d89afc195a75346c78ce9657c0d0ab2fb0af84c 479826 - removed dbhome (no need for ORACLE_HOME in instantclient)
(In reply to comment #1) > Fixed in bug 479826 - git commits > commit 1bc6f9bdb32408d90ebccad32f2cbb8f5aa93296 > Automatic commit of package [spacewalk-backend] release [0.4.13-1]. > commit 3d89afc195a75346c78ce9657c0d0ab2fb0af84c > 479826 - removed dbhome (no need for ORACLE_HOME in instantclient) These commits fixed just the "Starting osa-dispatcher: sh: dbhome: command not found" message, not the order in which the services start. I'm moving the status back to NEW.
The services are ordered correctly in the startup script. the database is specified BEFORE osa-dispatcher.
# runlevel N 3 # pwd /etc/rc3.d # ls *oracle-xe *osa-dispatcher S76osa-dispatcher S80oracle-xe
Satellite's embedded oracle uses S75oracle and K24oracle But oracle-xe uses S80oracle-xe and K05oracle-xe
In order to make this work for both scenarios we should make osa-dispatcher S81osa-dispatcher K04osa-dispatcher
fixed in 252c3207ca0fdc601d687fc3f62fb49648d84b01
find . -name *osa-dispatcher* ./rc3.d/S81osa-dispatcher ./rc0.d/K04osa-dispatcher ./rc1.d/K04osa-dispatcher ./init.d/osa-dispatcher ./rc6.d/K04osa-dispatcher ./rc5.d/S81osa-dispatcher ./rc4.d/S81osa-dispatcher ./rc2.d/S81osa-dispatcher
Spacewalk 0.5 released.
Spacewalk 0.5 has been released for long time ago.