Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1443398

Summary: when installing, tomcat sometimes do not start
Product: [Community] Spacewalk Reporter: Jan Hutař <jhutar>
Component: InstallationAssignee: Michael Mráka <mmraka>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.6CC: mmraka, victor
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-04 12:30:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
catalina.2017-04-19.log
none
Requested catalina error log
none
httpd error log
none
rhn_installation.log none

Description Jan Hutař 2017-04-19 07:46:26 UTC
Description of problem:
When installing, tomcat sometimes do not start


Version-Release number of selected component (if applicable):
Spacewalk 2.6


How reproducible:
sometimes


Steps to Reproduce:
1. Install Spacewalk 2.6


Actual results:
# spacewalk-setup --non-interactive --answer-file=answer-file --clear-db --external-postgresql
* Loading answer file: answer-file.
* Setting up SELinux..
** Database: Setting up database connection for PostgreSQL backend.
** Database: Populating database.
** Database: --clear-db option used.  Clearing database.
** Database: Shutting down spacewalk services that may be using DB.
** Database: Services stopped.  Clearing DB.
*** Progress: #
* Configuring tomcat.
* Setting up users and groups.
** GPG: Initializing GPG and importing key.
** GPG: Creating /root/.gnupg directory
* Performing initial configuration.
* Configuring apache SSL virtual host.
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Configuring jabberd.
* Creating SSL certificates.
** SSL: Generating CA certificate.
** SSL: Deploying CA certificate.
** SSL: Generating server certificate.
** SSL: Storing SSL certificates.
* Deploying configuration files.
* Update configuration in database.
* Setting up Cobbler..
* Restarting services.
Tomcat failed to start properly or the installer ran out of tries.  Please check /var/log/tomcat*/catalina.out for errors.


Expected results:
Should start properly

Comment 1 Jan Hutař 2017-04-19 09:19:00 UTC
Created attachment 1272529 [details]
catalina.2017-04-19.log

Comment 2 victor 2017-05-13 15:50:03 UTC
I'm having the exact same issue. Any workaround available?

Comment 3 Jan Hutař 2017-05-13 20:19:18 UTC
(In reply to victor from comment #2)
> I'm having the exact same issue. Any workaround available?

Please make sure you have hostname FQDN correctly set and please share exact time when it happened (to be able to identify lines in logs) and these logs:

/var/log/tomcat*/catalina*.log
/var/log/httpd/error_log
/var/log/rhn/rhn_installation.log*

Comment 4 victor 2017-05-13 21:51:06 UTC
Downgrading c3p0 works

Comment 5 victor 2017-05-13 21:55:50 UTC
Created attachment 1278480 [details]
Requested catalina error log

Requested catalina error log

Comment 6 victor 2017-05-13 21:56:22 UTC
Created attachment 1278481 [details]
httpd error log

requested httpd error log

Comment 7 victor 2017-05-13 21:57:05 UTC
Created attachment 1278482 [details]
rhn_installation.log

Comment 8 victor 2017-05-13 21:57:40 UTC
The error occured on at May 13 17:53:19 EDT 2017

Comment 9 victor 2017-05-13 21:59:38 UTC
(In reply to victor from comment #4)
> Downgrading c3p0 works

I submitted this comment accidentally, I wanted to say that when I do yum downgrade c3p0 the installation completes succesfully and no errors are logged. I'm positive that i'm using a FQDN as i'm using that to SSH into the server.

Comment 10 Jan Hutař 2017-05-15 04:51:29 UTC
Looking into your rhn_installation.log, looks like restart after installation worked. This bug is after restart right after installation. Looking into catalina.out (and confirmed by your comment #9), looks like you are hitting bug 1442140 and what you did is current workaround.

Comment 11 Michael Mráka 2019-07-04 12:30:01 UTC
As per comment #10 closing the bug as duplicate.

*** This bug has been marked as a duplicate of bug 1442140 ***