All Apps and Add-ons

DB Connect 2 socket error

drodman29
Path Finder

After an initial installation of DB Connect 2 I get a blank page for the main app page: URI=app/splunk_app_db_connect/ftr#en-US/app/splunk_app_db_connect/ftr

This warning is logged in the splunkd log for my workstation IP address.
HttpListener - Socket error from 10.xxx.xxx.xxx while accessing /en-US/api/shelper: Broken pipe

does this indicate a failed install and if so where do I start looking for what the issue is?
Non-Root install of splunk and java=jdk1.8.0_60

0 Karma
1 Solution

drodman29
Path Finder

Resolved: The RPC service was attempting to bind to port 9998 by default that was already in use by another splunk service. manually edit the inputs.conf for the dbx2 application change the default port to an unused port. Restart splunk.
Now you can Navigate the web interface where it asks you to set up the app and change the default port. Some one should log an enhancement to check the port on startup and do better logging if already in use - wasted hours to find this.

View solution in original post

kuja
Splunk Employee
Splunk Employee

Very helpful answer!

0 Karma

drodman29
Path Finder

Resolved: The RPC service was attempting to bind to port 9998 by default that was already in use by another splunk service. manually edit the inputs.conf for the dbx2 application change the default port to an unused port. Restart splunk.
Now you can Navigate the web interface where it asks you to set up the app and change the default port. Some one should log an enhancement to check the port on startup and do better logging if already in use - wasted hours to find this.

View solution in original post

drodman29
Path Finder

Additional logged error found.
2015-08-31 11:12:57,993 ERROR [55e46edbf37efe2c3a7110] :226 - Splunkd daemon is not responding: ('Error connecting to /servicesNS/nobody/splunk_app_db_connect/db_connect/rpcserver/default?output_mode=json: The read operation timed out',)
Traceback (most recent call last):
File "", line 200, in applyProxy
File "/data/xxx/splunk/lib/python2.7/site-packages/splunk/rest/init.py", line 478, in simpleRequest
raise splunk.SplunkdConnectionException, 'Error connecting to %s: %s' % (path, str(e))
SplunkdConnectionException: Splunkd daemon is not responding: ('Error connecting to /servicesNS/nobody/splunk_app_db_connect/db_connect/rpcserver/default?output_mode=json: The read operation timed out',)

0 Karma

drodman29
Path Finder

Debug enabled per troubleshooting instructions from here: http://docs.splunk.com/Documentation/DBX/2.0.0/DeployDBX/Troubleshooting
No interesting debug statements made after splunk stopped and restarted.
additionally: Splunk restart from the web is now hanging, have to use command line to stop.

splunk_app_db_connect/bin/rpcstart.py is being run from the OS system path of python rather than the Splunk_home path. - I don't know if this is an issue or not.

0 Karma