Red Hat Bugzilla – Bug 1008351
Storage installer fails on symlinked Java home
Last modified: 2014-04-23 08:31:48 EDT
Install now fails for me in the storage installer, as a certain library is considered duplicate, as it shows up twice.
/Library/Java/JavaVirtualMachines/1.7.0u.jdk is a symbolic link to /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/
which allows to just move the symlink on new java versions.
See also Bug 996710
snert:/im/run-rhq/dev-container/rhq-server hrupp$ bin/rhqctl install
10:35:47,435 INFO [org.jboss.modules] JBoss Modules version 1.2.0.CR1
10:35:48,238 INFO [org.rhq.server.control.command.Install] Preparing to install RHQ storage node.
Starting RHQ Storage Installer ...
10:35:49,417 INFO [org.jboss.modules] JBoss Modules version 1.2.0.CR1
10:35:49,599 INFO [org.rhq.storage.installer.StorageInstaller] Running RHQ Storage Node installer...
10:35:49,696 INFO [org.rhq.cassandra.Deployer] Unzipping storage node to /im/run-rhq/dev-container/rhq-server/rhq-storage
10:35:50,245 INFO [org.rhq.cassandra.Deployer] Applying configuration changes to /im/run-rhq/dev-container/rhq-server/rhq-storage/conf/cassandra.yaml
10:35:50,463 INFO [org.rhq.cassandra.Deployer] Applying configuration changes to /im/run-rhq/dev-container/rhq-server/rhq-storage/conf/log4j-server.properties
10:35:50,465 INFO [org.rhq.cassandra.Deployer] Applying configuration changes to /im/run-rhq/dev-container/rhq-server/rhq-storage/conf/cassandra-jvm.properties
10:35:50,485 INFO [org.rhq.cassandra.Deployer] Updating file permissions in /im/run-rhq/dev-container/rhq-server/rhq-storage/bin
10:35:50,489 INFO [org.rhq.storage.installer.StorageInstaller] Updating rhq-server.properties...
10:35:50,527 INFO [org.rhq.storage.installer.StorageInstaller] Starting RHQ Storage Node
10:36:23,446 ERROR [org.rhq.storage.installer.StorageInstaller] The storage node reported the following errors while trying to start:
objc: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
10:36:23,447 ERROR [org.rhq.storage.installer.StorageInstaller] Please review your configuration for possible sources of errors such as port conflicts or invalid arguments/options passed to the java executable.
10:36:23,447 ERROR [org.rhq.storage.installer.StorageInstaller] The storage installer will now exit.
10:36:23,462 ERROR [org.rhq.server.control.command.Install] An error occurred while running the storage installer: Process exited with an error: 1 (Exit value: 1)
10:36:23,463 ERROR [org.rhq.server.control.RHQControl] An error occurred while executing the install command [Cause: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)]
Java Home is set to the symlink:
snert:/im/run-rhq/dev-container/rhq-server hrupp$ echo $JAVA_HOME
Actually it turns out that the above install step + start of Cassandra succeeded, so it is an annoying error message that should at most be treated as warning.
Fixed in 1ba590c1982 by John Sanda.
Bulk closing of 4.10 issues.
If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.