Unable to connect add druid database

[1a4f7979-c102-4f7f-931f-39a4e20f726b] 2020-05-05T18:20:26+05:30 ERROR metabase.driver.util Database connection error
[1a4f7979-c102-4f7f-931f-39a4e20f726b] 2020-05-05T18:20:26+05:30 ERROR metabase.api.database Cannot connect to Database
[1a4f7979-c102-4f7f-931f-39a4e20f726b] 2020-05-05T18:20:26+05:30 DEBUG metabase.middleware.log POST /api/database 400 5.0 s (0 DB calls)
{:valid false, :dbname “Timed out after 5.0 s”, :message “Timed out after 5.0 s”}

[1a4f7979-c102-4f7f-931f-39a4e20f726b] 2020-05-05T18:20:26+05:30 DEBUG metabase.middleware.log GET /api/database 200 7.1 ms (3 DB calls) App DB connections: 0/10 Jetty threads: 4/50 (4 idle, 0 queued) (73 total active threads) Queries in flight: 0 (0 queued)
[1a4f7979-c102-4f7f-931f-39a4e20f726b] 2020-05-05T18:20:34+05:30 DEBUG metabase.middleware.log GET /api/util/bug_report_details 200 6.7 ms (1 DB calls) App DB connections: 0/10 Jetty threads: 4/50 (4 idle, 0 queued) (74 total active threads) Queries in flight: 0 (0 queued)
[1a4f7979-c102-4f7f-931f-39a4e20f726b] 2020-05-05T18:25:01+05:30 DEBUG metabase.middleware.log GET /api/util/bug_report_details 200 5.7 ms (1 DB calls) App DB connections: 0/10 Jetty threads: 4/50 (3 idle, 0 queued) (70 total active threads) Queries in flight: 0 (0 queued)

Hi @shriramchoubey
That error is usually caused by a firewall blocking, or wrong hostname or port.
And if you’re running Metabase in a Docker container, then remember that localhost is the container itself, not the host.