Bug 1212961

Summary: katello-installer is not installing the required java version
Product: Red Hat Satellite Reporter: Elyézer Rezende <erezende>
Component: InstallationAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.8CC: bkearney, byount, chrobert, cwelton, ehelms, ftsiadim, johfulto, justin.garrison, katello-bugs, kevin.donald.ext, ktordeur, nerawat, omaciel, pgervase, sauchter, sghai, sthirugn, tkolhar
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10185
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-09 14:31:23 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:

Description Elyézer Rezende 2015-04-17 19:19:37 UTC
Description of problem:
When installing the product the installer fails stating the following:

An OpenJDK version of Java greater than 1.7 should be installed. For more
details on the version currently installed, run 'java -version'


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


How reproducible:


Steps to Reproduce:
1. Run katello-installer
2.
3.

Actual results:
Installer fails

Expected results:
Installer works

Additional info:

# rpm -qa | grep openjdk
java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64
java-1.8.0-openjdk-headless-1.8.0.45-28.b13.el6_6.x86_64

# java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.7 20120313 (Red Hat 4.4.7-11)

Comment 1 Eric Helms 2015-04-17 19:30:24 UTC
I filed https://bugzilla.redhat.com/show_bug.cgi?id=1212963 against java-1.8.0-openjdk to fix the issue. Until then, we need to openjdk to less than the .45 version.

Comment 3 Bryan Kearney 2015-04-19 16:06:29 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10185 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|e6cbabd53a51dc49d1c5c87151ba93b446397306.

Comment 4 Sachin Ghai 2015-04-20 08:41:42 UTC
*** Bug 1213246 has been marked as a duplicate of this bug. ***

Comment 5 Eric Helms 2015-04-20 14:57:10 UTC
Until this issue is available you can work around the issue by:

yum -y install java-1.7.0-openjdk
alternatives --config java

Then pick the number next to 1.7.0 and re-run the installer.

Comment 6 Justin Garrison 2015-04-21 15:47:24 UTC
I switched to java-1.7.0 and also uninstalled 1.8.0 but cannot get satellite 6.1 beta installed because candlepin fails to start. I'm on rhel 7.1

Comment 10 Eric Helms 2015-04-22 13:25:20 UTC
What error specifically are you seeing? Did you run the installer prior to changing to 1.7?

Comment 11 Justin Garrison 2015-04-22 15:02:05 UTC
The specific error is  

/usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 4 instead of one of 
[0]
 /Stage[main]/Candlepin::Service/Exec[cpinit]/returns: change from notrun to 0 failed: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin
/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 4 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
Installing             Done                                               [100%] [...............................................................................................................................]

Comment 12 Mike McCune 2015-04-24 15:28:50 UTC
*** Bug 1213756 has been marked as a duplicate of this bug. ***

Comment 13 kevin.donald.ext 2015-05-08 07:51:18 UTC
Candlepin/tomcat dos not start..

This problem is caused by java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64. 
when you run "java -version" the following is returned
openjdk version "1.8.0_45"
...
Which breaks the some java functionality checking the version as it is expecting
java version "1.8.0_45"
To resolve this issue, 
edit "/usr/share/java-utils/java-functions"     line 149,150  replace java with openjdk
mkdir /usr/lib/java-1.8.0
mkdir /usr/share/java-1.8.0
katello-remove
yum install katello
katello-install

Comment 15 Mike McCune 2015-05-15 15:23:44 UTC
*** Bug 1221813 has been marked as a duplicate of this bug. ***

Comment 19 Red Hat Bugzilla 2023-09-14 02:58:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days