All Apps and Add-ons

Splunk DB Connect: How to resolve error in dbx2.log "Exception: Invalid java path" and empty inputs.conf?

patriziadepaola
Explorer

I have a problem after an unexpected restart of my splunk.

The Splunk DB Connect app v. 2.3.0 doesn’t work properly. This is the error in dbx2.log:

2016-12-13T02:25:18+0100 [INFO] [rpcstart.py], line 363: action=run_rpc_start rpc_start_pid=5999 args=['/opt/splunk/etc/apps/splunk_app_db_connect/bin/rpcstart.py', '--scheme']
2016-12-13T02:25:20+0100 [INFO] [mi_session.py], line 38 : session updated
2016-12-13T02:25:21+0100 [INFO] [rpcstart.py], line 363: action=run_rpc_start rpc_start_pid=6404 args=['/opt/splunk/etc/apps/splunk_app_db_connect/bin/rpcstart.py']
2016-12-13T02:25:21+0100 [INFO] [rpcstart.py], line 125: action=start_to_run_rpc_server rpc_start_pid=6404
2016-12-13T02:25:21+0100 [CRITICAL] [rpcstart.py], line 150: action=java_path_does_not_exist java_home=""
2016-12-13T02:25:21+0100 [CRITICAL] [rpcstart.py], line 378: action=rpc_server_has_been_abnormally_terminated error=Invalid java path.
Traceback (most recent call last):
  File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/rpcstart.py", line 376, in 
    _start_rpc_server(sys.stdin.read())
  File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/rpcstart.py", line 360, in _start_rpc_server
    run(configs)
  File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/rpcstart.py", line 151, in run
    raise Exception("Invalid java path.")
Exception: Invalid java path.

I set my java_home path in

alt text

and save and restarted my RPC server.

Why, after the unexpected restart, the inputs.conf is empty with only these lines:

[rpcstart://default]
javahome = /opt/java
useSSL = 0 

Can you help me in order to prevent similar situations in future?

0 Karma

kmccririe_splun
Splunk Employee
Splunk Employee

Are you looking at the inputs.conf in the default directory? Take a look at the inputs.conf in the /splunk/etc/apps/splunk_app_db_connect/local directory.

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...