I/O Error: DB server closed connection.
jdbc:jtds:sqlserver://<ServerName>:<port number>/master;useCursors=true;domain=<domain_name>;useNTLMv2=trueFYI this worked well for hpc secondary database with same configurations except <ServerName>
Hi @wm
Given that you are using the same connection details and the servers should be setup the same, it feels like the issue could be either network related or authentication related, as you have proven Splunk to be working.
Try and establish a telnet connection between your Splunk host and the non-working database host on the relevant DB port. If this works then it demonstrates that the firewall is allowing connection.
Double check the authentication credentials - are you using different passwords for the 2 databases or are they using a domain account? If a domain account, does it have the relevant permissions for the non-working server?
Are there any logs you can see on the database server around the connection?
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
Thanks @livehybrid , i used telnet on the db port and it works so likely not a fire wall issue.
I am using a service account for both db hosts and one of them is not working. How do i check permissions?
I have access to the server in splunk db connect, but can you point me to the relevant logs? I am using windows.
I checked that can't find anything concrete and also on the server when splunk db connect is at. eg. dbx.log etc
Did you check the primary server is reachable from the Splunk server: telnet <ServerName> <port>.
Given the secondary database works, the issue is likely network-related (firewall, port, DNS) or authentication-related on the primary server. Ensure that no firewalls, network security groups, or proxies are blocking or interrupting the connection between the Splunk server and the HPC primary database.
hi @kiran_panchavat , thanks for your reply. telnet works so not sure what is the issue here