I'm running Splunk DB Connect 2.4.0 with drivers for drivers for Postgres 9.4 and Redshift. The RPC Server seems to start up but then shuts down. While it is up I can make some queries, after which I then get errors like this in Splunk Web.
"External search command 'dbxquery' returned error code 1. Script output = "RuntimeError: Failed to run query: caused by: error(111, 'Connection refused')."
Here is the rpc.log (about 5 minutes later) this log will repeat.
Turns out that the loop was being caused the Addon Debug Refresh, which defaults to run on a 5 minute cron. Disabling the cron on that add on fixed the loop aspect of this problem.
However, the problem where DBConnect doesn't restart correctly still persists. When we refresh, we have to wait a minute or two so the RPC service is actually down and then refresh again to get it to start up again.