<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
As I have had NO HELP from anybody on this issue, here or bugzilla, i
will be reinstalling spacewalk<br>
<br>
thanks for nothing<br>
<br>
<br>
Kobus Bensch wrote:
<blockquote cite="mid:4D511C93.6090505@lovefilm.com" type="cite">
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
Hi Michael<br>
<br>
Here is result from commands you requested:<br>
1.) s-08 ~]# egrep 'hibernate|db_name' /etc/rhn/rhn.conf<br>
db_name = //localhost/XE<br>
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect<br>
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver<br>
hibernate.connection.driver_proto=jdbc:oracle:oci<br>
<br>
2.) s-08 ~]# sqlplus $(spacewalk-cfg-get default_db)<br>
<br>
SQL*Plus: Release 11.2.0.2.0 Production on Tue Feb 8 10:26:27 2011<br>
<br>
Copyright (c) 1982, 2010, Oracle. All rights reserved.<br>
<br>
<br>
Connected to:<br>
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production<br>
<br>
SQL> <br>
<br>
3.) see attached<br>
<br>
4.) I have now also restarted SW<br>
s-08 ~]# /usr/sbin/spacewalk-service restart<br>
Shutting down spacewalk services...<br>
Stopping RHN Taskomatic...<br>
RHN Taskomatic was not running.<br>
Stopping cobbler daemon: [ OK ]<br>
Stopping rhn-search...<br>
rhn-search was not running.<br>
Stopping MonitoringScout ... <br>
[ OK ]<br>
Stopping Monitoring ... <br>
[ OK ]<br>
Stopping httpd: [ OK ]<br>
Stopping tomcat5: [ OK ]<br>
Shutting down osa-dispatcher: [FAILED]<br>
Terminating jabberd processes ...<br>
Stopping router: [ OK ]<br>
Stopping sm: [ OK ]<br>
Stopping c2s: [ OK ]<br>
Stopping s2s: [ OK ]<br>
Done.<br>
Starting spacewalk services...<br>
Initializing jabberd processes ...<br>
Starting router: [ OK ]<br>
Starting sm: [ OK ]<br>
Starting c2s: [ OK ]<br>
Starting s2s: [ OK ]<br>
Starting osa-dispatcher: [ OK ]<br>
Starting tomcat5: [ OK ]<br>
Waiting for tomcat to be ready ...<br>
Starting httpd: [ OK ]<br>
Starting Monitoring ... <br>
[ OK ]<br>
Starting MonitoringScout ... <br>
[ OK ]<br>
Starting rhn-search...<br>
Starting cobbler daemon: [ OK ]<br>
Starting RHN Taskomatic...<br>
Done.<br>
<br>
5.) and result from point 3 again attached in seperate file<br>
<br>
Kobus<br>
<br>
Michael Mraka wrote:
<blockquote cite="mid:20110208100818.GB2968@magni.brq.redhat.com"
type="cite">
<pre wrap="">Kobus Bensch wrote:
% Ok, renamed the tnsnames.ora and re-ran spacewalk-setup --upgrade
%
% Stopped and started oracle and spacewalk and getting the folloign in
% the catalina logs:
%
% 07-Feb-2011 15:56:19
% com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run
% WARNING:
% com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@2857a293
% -- Acquisition Attempt Failed!!! Clearing pending acquires. While
% trying to acquire a needed new resource, we failed to succeed more
% than the maximum number of allowed acquisition attempts (30).
% 2011-02-07 15:56:19,562 [TP-Processor3] WARN
% org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState:
% null
% 2011-02-07 15:56:19,562 [TP-Processor3] ERROR
% org.hibernate.util.JDBCExceptionReporter - Connections could not be
% acquired from the underlying database!
% 2011-02-07 15:56:19,562 [TP-Processor3] ERROR
% com.redhat.rhn.frontend.servlets.SessionFilter - Error during
% transaction. Rolling back
% com.redhat.rhn.common.hibernate.HibernateRuntimeException: couldn't
% open session
It still looks like tomcat wasn't able connect to database.
What's your db connection in rhn.conf?
# egrep 'hibernate|db_name' /etc/rhn/rhn.conf
Are you able connect to database with sqlplus?
# sqlplus $(spacewalk-cfg-get default_db)
Does any other java based service (e.g rhn-search, taskomatic) work?
# service rhn-search status
# grep ERROR /var/log/rhn/search/rhn_search_daemon.log
# service taskomatic status
# grep ERROR /var/log/rhn/rhn_taskomatic_daemon.log
Regards,
--
Michael Mráka
Satellite Engineering, Red Hat
_______________________________________________
Spacewalk-list mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Kobus Bensch</b><br>
Linux Administrator<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:kobus.bensch@lovefilm.com">kobus.bensch@lovefilm.com</a><br>
<br>
No.9 | 6 Portal Way | London | W3 6RU |<br>
T: +44 (0)20 8896 8014 | F: +44 (0)20 8896 8111<br>
<a moz-do-not-send="true" href="http://www.lovefilm.com"><img
src="cid:part1.02040200.00040204@lovefilm.com"></a>
</div>
<br>
<br>
<span style="font-family: Arial; font-size: 10pt;">
<hr width="100%">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Verdana"
size="2">LOVEFiLM UK Limited is a company registered in England and
Wales. <br>
Registered Number: 06528297. <br>
Registered Office: No.9, 6 Portal Way, London W3 6RU, United Kingdom.</font></p>
<p><font face="Verdana" size="2">This e-mail is confidential to the
ordinary user of the e-mail address to which it was <br>
addressed. If you have received it in error, please delete it from your
system and notify <br>
the sender immediately.<br>
<br>
This email message has been delivered safely and archived online by
Mimecast.<br>
For more information please visit <a moz-do-not-send="true"
href="http://www.mimecast.co.uk">http://www.mimecast.co.uk</a>
</font></p>
<hr width="100%"><font face="Verdana" size="2"> </font></span>
<font face="Verdana" size="2"> </font>
<pre wrap=""><pre wrap=""><pre wrap=""><font face="Verdana" size="2">
</font><hr size="4" width="90%"><font face="Verdana" size="2">
_______________________________________________
Spacewalk-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></font></pre></pre></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Kobus Bensch</b><br>
Linux Administrator<br>
<a class="moz-txt-link-abbreviated" href="mailto:kobus.bensch@lovefilm.com">kobus.bensch@lovefilm.com</a><br>
<br>
No.9 | 6 Portal Way | London | W3 6RU |<br>
T: +44 (0)20 8896 8014 | F: +44 (0)20 8896 8111<br>
<a href="http://www.lovefilm.com"><img
src="cid:part2.04030706.03000901@lovefilm.com"></a>
</div>
</body>
</html>