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.

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...