Bug 1313301 - ipa-server installation fails if java-1.8 is installed
Summary: ipa-server installation fails if java-1.8 is installed
Keywords:
Status: CLOSED DUPLICATE of bug 1290535
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
Aneta Šteflová Petrová
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-01 11:10 UTC by Jaroslav Aster
Modified: 2016-03-11 16:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The issue will be documented in BZ#1290535
Clone Of:
Environment:
Last Closed: 2016-03-11 16:47:39 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1290535 0 high CLOSED Check for incompatible Java at startup 2021-02-22 00:41:40 UTC

Internal Links: 1290535

Description Jaroslav Aster 2016-03-01 11:10:02 UTC
Created attachment 1131876 [details]
ipa-server install log

Description of problem:

ipa-server installation fails if java-1.8 is installed.

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


How reproducible:

100%

Steps to Reproduce:
1. Install java-1.8. It is installed in beaker by default for 6.8 nightly builds.
2. Install ipa-server.

# cat /var/log/ipaserver-install.log
...
2016-03-01T10:52:53Z DEBUG stderr=[error] FAILED run_command("/sbin/service pki-cad restart pki-ca"), exit status=7 output="Stopping pki-ca: [  OK  ]
Incompatible Java version '1.8.0_71'!

    As root, download and install 'jre-1.7.0-openjdk' and run
    'alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java'.
"
...

Actual results:

Installation of ipa-server fails.

Expected results:

Installation of ipa-server passes.

Additional info:

Log file is attached.

Comment 1 Petr Vobornik 2016-03-01 12:00:12 UTC
IPA, or rather PKI server, supports only Java 1.7 on RHEL 6.

The error message clearly says the way to fix the issue:

     As root, download and install 'jre-1.7.0-openjdk' and run
    'alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java'.

Comment 2 Petr Vobornik 2016-03-01 15:01:56 UTC
Reopening, IPA team agreed that IPA installer should at least print the pkispawn error message into console output so that user will know what is happening without checking logs.

Note: if discussion/query in Bug 1290535, comment 20 ends with a fix on pki-side then this bug will be closed again because it won't be needed.

Comment 3 Petr Vobornik 2016-03-11 16:47:39 UTC
In bug 1290535 PKI server will be modified to run with java 1.7 and not print the error message in comment 1.

Fetching and printing the PKI output is therefore not needed -> closing.

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


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