API Gateway Error | IS is not starting

Hi ,
I am trying to start IS with API Gateway , but it is stuck waiting for elastic server to start.

Error: 2020-07-10 01:27:29 IST [YAI.0300.0105I] [default][SAG-D8CZ8Y2] Starting ElasticSearch. API Gateway will wait for 300 seconds for ElasticSearch availability

This is the last line in server log and it is stuck forever.
Datastore is up and running and i am able to get the response using 9240 Port. Am I missing something? Please help

Edit: Below is the updated logs.
2020-07-10 01:27:29 IST [YAI.0300.0105I] [default][SAG-D8CZ8Y2] Starting ElasticSearch. API Gateway will wait for 300 seconds for ElasticSearch availability
2020-07-10 02:07:53 IST [YAI.0300.0130E] [default][SAG-D8CZ8Y2] Elasticsearch failed to start at http://host.docker.internal:9240 in 300 seconds. Please check the Elasticsearch logs.

It took 40 minutes to figure out http://host.docker.internal:9240 is not available. And I am able to login to IS now but API Gateway package was partially loaded. I tried to reload it and it stuck with the same error saying it will wait for Elastic Search. From where is it taking this URL http://host.docker.internal:9240

Hi Ravi,

Can you please take thread dump and see if it provides any additional information?

Thanks,
-Kalpesh.

Hi Kalpesh,

Thanks for the prompt reply. I have updated the case with additional details. Meanwhile I will get the thread dump and see if there is anything suspecious.

//Nitin

Hi @Kalpesh_Shah1,

Did you get a chance to look at the error?

//Nitin

Hi Nitin,

Did you provide thread dump? Or are you referring to Support Request created on API Gateway side?

Thanks,
-Kalpesh