Getting Data In

Splunk DB Connect: Why am I getting an error configuring Java Home with Java version 1.8.0_25?

splunkrocks2014
Communicator

When configured Java Home as /opt/splunk/java/bin/java from UI, getting the following error message:

"Encountered the following error while trying to update: In handler 'localapps': Error while posting to url=/servicesNS/nobody/dbx/dbx/install/java"

We have Java version 1.8.0_25 running on a Linux system and java home is defined as "JAVA_HOME=/opt/splunk/java/bin/java" and java is owned by Splunk.

Does anyone know how to fix this problem?

Thanks,
Joe

0 Karma

FloydATC
Explorer

/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/jre
Encountered the following error while trying to update: Error while posting to url=/servicesNS/nobody/dbx/dbx/install/java

/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111-2.6.7.2.el7_2.x86_64/jre
Encountered the following error while trying to update: Error while posting to url=/servicesNS/nobody/dbx/dbx/install/java

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.40.x86_64/jre
Encountered the following error while trying to update: Error while posting to url=/servicesNS/nobody/dbx/dbx/install/java

Update:
Solved by changing SELINUX from "enforcing" to "permissive" in "/etc/sysconfig/selinux" and rebooting. Beware of security implications. Please feel free to try fixing the policies instead.

0 Karma

sroback_splunk
Splunk Employee
Splunk Employee

Hi. Java 1.8.x is not compatible with DB Connect 1.1.4. Only Java1.7.x and 1.6.x are compatible with the app. DB Connect docs have been updated to clarify this:

http://docs.splunk.com/Documentation/DBX/1.1.4/DeployDBX/Deploymentrequirements#Java_Runtime_Environ...

Thanks

splunkrocks2014
Communicator

After re-installed Java 1.7.0.51, the UI picks up the Java home automatically, but it still throws the same error message when clicked on "Save". Any clues?

Thanks.

0 Karma

sroback_splunk
Splunk Employee
Splunk Employee

Hi Joe, If you mean using splunk as linux user login that should be fine. No permissions issues.

0 Karma

splunkrocks2014
Communicator

Hi Sroback,

Is it a problem if installing Java by using splunk account?

Regards,
Joe

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...