Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1212961 - katello-installer is not installing the required java version
Summary: katello-installer is not installing the required java version
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1213246 1213756 1221813 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-17 19:19 UTC by Elyézer Rezende
Modified: 2023-09-14 02:58 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-09 14:31:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1442573 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.