All Apps and Add-ons

how to resolve Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect": Introspecting scheme=server: script running failed (exited with code -1073740940).

Communicator

I installed splunk db following the docs available in my local instance and getting message:

Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect": Introspecting scheme=server: script running failed (exited with code -1073740940).

upon accessing the app

Can not communicate with task server, please check your settings.
and
Unable to establish a secure connection to DBX Server, please make sure it is started and listening on 9998 port or consult documentation for details.

Need help correcting this to be able to use the app. Thanks!

1 Solution

Explorer

Figured it out, the default 3.02 app install points DB Connect to a JRE Path it should be pointed to the JDK Path !

You need to specify the JDK Install path rather than keeping the default string value that points to JRE Path

Configuration / Settings / General under JRE Installation path remove what's there and add the path for JDK instead, then restart the SPLUNKD service

View solution in original post

Explorer

I know this doesn't explain the error and why it is happening, but I got this solved by purging OpenJDK and replacing it with Oracle's JDK8.

https://askubuntu.com/questions/84483/how-to-completely-uninstall-java

Then you just install the JDK:

sudo add-apt-repository ppa:webupd8team/java -y &&
sudo apt-get update &&
sudo apt-get install oracle-java8-installer &&
java -version

You can also set the JAVA_HOME (check the correct path for you):

#cat /etc/environment 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
0 Karma

Contributor

Hi @teddyidc1101,

I've passed for the same problem and I resolved this issue enabling the port (9998 or any that you want) in the firewall in my CentOS 7.

firewall-cmd --zone=public --add-port=9998/tcp --permanent

I hope help you.

[ ]s
Rafael Martins

0 Karma

Explorer

Figured it out, the default 3.02 app install points DB Connect to a JRE Path it should be pointed to the JDK Path !

You need to specify the JDK Install path rather than keeping the default string value that points to JRE Path

Configuration / Settings / General under JRE Installation path remove what's there and add the path for JDK instead, then restart the SPLUNKD service

View solution in original post

Engager

For the noob like me. Configuration / Settings / General is accessed by launching the Splunk DB Connect application. Took a few minutes to figure this out.
I just installed 7.1.6, it found it automagically. OH, be careful. This specific version did not accept AWS Corretto. Had to use openjdk.

0 Karma

Explorer

You need to specify the JDK Install path rather than keeping the default string value that points to JRE Path

Configuration / Settings / General under JRE Installation path remove what's there and add the path for JDK instead, then restart the SPLUNKD service

0 Karma

Explorer

FYI JRE is the standard Java Runtime Envieonment. JDK is for development and not standard for running java applets. Glad it is working now for you!

0 Karma

Explorer

Thanks yep I know this already 🙂

0 Karma

Explorer

Make sure java is installed, that was my issue.

Contributor

Im also getting this:

DBX Server is not available, please make sure it is started and listening on 9998 port or consult documentation for details.

0 Karma

New Member

I have the same issue, and I cannot find this general setting anywhere

0 Karma

Communicator

Sorry for the delayed response...thank all for the help!
Its working now 🙂

0 Karma