All Apps and Add-ons

Is there any problem with DB connect add-on 3.1.3 version ?

Hemnaath
Motivator

Hi, I am getting the following message after installing the db connect add-on 3.1.3 version. We wanted to test the SCCM app, and which requires db connect add-on to configure the inputs. We are using Splunk Trial version 6.6.1

Error details:

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

Kindly guide me how to fix this issue.

Tags (2)

harsmarvania57
SplunkTrust
SplunkTrust

To start troubleshooting the issue, you can run below command on Splunk server on which DB Connect is installed.

$SPLUNK_HOME/splunk/bin/splunk cmd splunkd print-modinput-config --debug server

In my lab environment I don't have java installed so it is throwing almost same error but with error code 127 and when I ran above command I found the actual issue that java is not installed

===================================================
Found scheme="server".
Locating script for scheme="server"...
Found script "/opt/splunk/etc/apps/splunk_app_db_connect/linux_x86_64/bin/server.sh" to handle scheme "server".
<stderr> Introspecting scheme=server:  /opt/splunk/etc/apps/splunk_app_db_connect/linux_x86_64/bin/server.sh: line 33: exec: java: not found
Introspecting scheme=server: script running failed (exited with code 127).
Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect": Introspecting scheme=server: script running failed (exited with code 127).
===================================================
0 Karma

velsankar
New Member

Thank you for that answer. Here is what I get if I run the suggested command..

Found scheme="server".
Locating script for scheme="server"...
Found script "/opt/splunk/etc/apps/splunk_app_db_connect/linux_x86_64/bin/server.sh" to handle scheme "server".
Introspecting scheme=server: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/splunk/dbx/server/bootstrap/TaskServerStart : Unsupported major.minor version 52.0
Introspecting scheme=server: at java.lang.ClassLoader.defineClass1(Native Method)
Introspecting scheme=server: at java.lang.ClassLoader.defineClass(ClassLoader.java:808)
Introspecting scheme=server: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
Introspecting scheme=server: at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
Introspecting scheme=server: at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
Introspecting scheme=server: at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
Introspecting scheme=server: at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
Introspecting scheme=server: at java.security.AccessController.doPrivileged(Native Method)
Introspecting scheme=server: at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
Introspecting scheme=server: at java.lang.ClassLoader.loadClass(ClassLoader.java:430)
Introspecting scheme=server: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:323)
Introspecting scheme=server: at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
Introspecting scheme=server: at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Introspecting scheme=server: script running failed (exited with code 1).
Unable to initialize modular input "server" defined inside the app "splunk_app_db_connect": Introspecting scheme=server: script running failed (exited with code 1).

0 Karma

harsmarvania57
SplunkTrust
SplunkTrust

It looks like Java mismatch, have you installed JRE 8 from Oracle ? Please look at prerequisites for DB connect https://docs.splunk.com/Documentation/DBX/3.1.3/DeployDBX/Prerequisites#Java_Runtime_Environment_.28...

0 Karma

velsankar
New Member

Thank you. Yes, I have installed the right JRE and get the following results if I run the debug command.

Found scheme="server".
Locating script for scheme="server"...
Found script "/opt/splunk/etc/apps/splunk_app_db_connect/linux_x86_64/bin/server.sh" to handle scheme "server".
XML scheme path "/scheme/title": "title" -> "DB Connect Task Server"
XML scheme path "/scheme/description": "description" -> "Task server running scheduled jobs (inputs, outputs)"
XML scheme path "/scheme/use_external_validation": "use_external_validation" -> "false"
XML scheme path "/scheme/use_single_instance": "use_single_instance" -> "false"
XML scheme path "/scheme/streaming_mode": "streaming_mode" -> "xml"
XML arg path "/scheme/endpoint/args/arg": "name" -> "config_file"
XML arg path "/scheme/endpoint/args/arg/description": "description" -> "Absolute path to task server YAML configuration file. Environment variables can be used using following format ${MY_VAR}"
XML arg path "/scheme/endpoint/args/arg/data_type": "data_type" -> "string"
XML arg path "/scheme/endpoint/args/arg/required_on_edit": "required_on_edit" -> "false"
XML arg path "/scheme/endpoint/args/arg/required_on_create": "required_on_create" -> "true"
XML arg path "/scheme/endpoint/args/arg": "name" -> "keystore_password"
XML arg path "/scheme/endpoint/args/arg/description": "description" -> "Password to access DB Connect keystore. It contains the certificates for secure connections to the databases, Splunkd."
XML arg path "/scheme/endpoint/args/arg/data_type": "data_type" -> "string"
XML arg path "/scheme/endpoint/args/arg/required_on_edit": "required_on_edit" -> "false"
XML arg path "/scheme/endpoint/args/arg/required_on_create": "required_on_create" -> "true"
Setting up values from introspection for scheme "server".
Setting "title" to "DB Connect Task Server".
Setting "description" to "Task server running scheduled jobs (inputs, outputs)".
Setting "use_single_instance" to false.
Setting "use_external_validation" to false.
Setting "description" to "Absolute path to task server YAML configuration file. Environment variables can be used using following format ${MY_VAR}".
Setting "required_on_create" to true.
Setting "required_on_edit" to false.
Setting "description" to "Password to access DB Connect keystore. It contains the certificates for secure connections to the databases, Splunkd.".
Setting "required_on_create" to true.
Setting "required_on_edit" to false.
Introspection setup completed for scheme "server".

But still the splunk db connect fails to load and continue to show the loading symbol forever. The browser console has the following error:
Uncaught (in promise) TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at ftr.js:1

The only difference is that the recursive taskserver start failure message on the browser console is not there anymore after the correct JRE installation. So I guess the taskserver is running now.

0 Karma

Hemnaath
Motivator

Can anyone let me know how to fix this error message, I am unable to access the db connect application.

0 Karma

velsankar
New Member

Hi

Did you find a solution for this? I am facing the same error

0 Karma

Hemnaath
Motivator

Hi Velsankar, no I did not find any solution for this error, so dropped configuring it.

0 Karma