2018-09-07 18:43:00,183 - [WARN] - from com.carbonblack.datagrid.persist.DbPool in main Error testing SQL connection: java.sql.SQLException: Cannot create PoolableConne ctionFactory (Connection to <master domain>:5002 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP co nnections.)<\blockquote>
Environment
Cb Response Server: 6.X
Cause
Datagrid fails to find the correct IP of master.
Resolution
Datagrid resolves master IP from domain name by looking at /etc/hosts, and DNS server if /etc/hosts doesn't have a record. If any record has incorrect entries then datagrid would fail on connection to master.