All Apps and Add-ons

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

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

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
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!