- Red Hat Satellite Server 5.x
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Multiple java packages installed on system
After running yum on Red Hat Satellite 5 various satellite services fail to start with "unrecognized option" errors
How to restore the JVM of a satellite 5 instance to IBM
The satellite services of Red Hat Satellite 5 fail to start with java error messages
The satellite services of Red Hat Satellite 5 fail to start because they try to start the wrong java virtual machine (jvm)
Taskomatic jobs not completing ( kickstart trees unavailable or other items not run)
STATUS | wrapper | 2012/10/10 17:56:15 | Launching a JVM... INFO | jvm 5 | 2012/10/10 17:56:15 | Unrecognized option: -Xdump:heap:file=/var/crash/heapdump.%Y%m%d.%H%M%S.%pid.%seq.phd INFO | jvm 5 | 2012/10/10 17:56:15 | Could not create the Java virtual machine. ERROR | wrapper | 2012/10/10 17:56:15 | JVM exited while loading the application. FATAL | wrapper | 2012/10/10 17:56:15 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up. FATAL | wrapper | 2012/10/10 17:56:15 | There may be a configuration problem: please check the logs. STATUS | wrapper | 2012/10/10 17:56:16 | <-- Wrapper Stopped
- Taskomatic service is nor running :
# service taskomatic status RHN Taskomatic is not running.
- Tomcat throws the error message on catalina.out:
Installing other Red Hat supplied Java's on Red Hat Satellite is unsupported. Satellite server should use IBM JVM provided by the satellite channel only.
- Re-configure the system to use the IBM JVM provided by the satellite channel:
# alternatives --config java There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java *+ 2 /usr/lib/jvm/jre-1.6.0-ibm.x86_64/bin/java 3 /usr/lib/jvm/jre-1.5.0-gcj/bin/java Enter to keep the current selection[+], or type selection number: 2
- Restart the Satellite services:
# rhn-satellite restart
- Make sure the JVM used on your satellite is the 1.6.0 IBM one provided by the satellite channel remove the
java-1.7.0-openjdkpackage if found to be installed on the satellite server and restart the Satellite services by running below mentioned command:
# yum remove java-1.7.0-openjdk # rhn-satellite restart
The configuration file is intended to be used with the IBM 1.6.0 jvm, not with openjdk. As such some options may not be compatible with openjdk.
This may result from an incorrect installation via the RHEL 6 GUI, in which "Basic Server" is mistaken for "@Base" as specified in the Satellite Installation Documentation. The "Basic Server" selection, will install additional groups include the "@java-platform", which installs an incorrect version of java, then set to the default before the java-ibm package is installed during the Satellite script installation.
To avoid this:
1. Incorrect selection
2. Note all the additional groups installed, including java-platform
3. The better way to ensure success, and avoid multiple Java packages installed is to select 'Minimal'
4. Then, choose just the 'Base' group:
- Check the /var/log/rhn/rhn_taskomatic_daemon.log
STATUS | wrapper | 2013/07/25 19:00:12 | Launching a JVM... INFO | jvm 4 | 2013/07/25 19:00:12 | Unrecognized option: -Xdump:heap:file=/var/crash/heapdump.%Y%m%d.%H%M%S.%pid.%seq.phd INFO | jvm 4 | 2013/07/25 19:00:12 | Error: Could not create the Java Virtual Machine. INFO | jvm 4 | 2013/07/25 19:00:12 | Error: A fatal exception has occurred. Program will exit. ERROR | wrapper | 2013/07/25 19:00:12 | JVM exited while loading the application.
- List the installed java machines :
# yum list installed java-*
- Check alternatives :
# alternatives --display java
rpm -qa *java*output:
java-1.6.0-ibm-devel-184.108.40.206.1-1jpp.5.el6_2.x86_64 Tue 23 Apr 2013 01:48:51 PM CDT java-1.6.0-ibm-220.127.116.11.1-1jpp.5.el6_2.x86_64 Tue 23 Apr 2013 01:48:47 PM CDT java-1.6.0-openjdk-18.104.22.168-22.214.171.124.9.el6_4.x86_64 Fri 15 Mar 2013 05:06:35 PM CDT
- Check /var/log/tomcat*/catalina.out
- Red Hat Satellite
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.