- Newest
- Most votes
- Most comments
My first guess would be the security group in the ECS services. You need to make sure you opened them on ports 8084 and 8085 as well as 8083 towards the ALB security group.
"Time out" is often caused by security groups.
Hope it helps!
//Carl
OK, then the "easy and obvious" solution did not do the trick, so you need to verify everything again 😩
The AWS definition of this error is:
HTTP 408: Request timeout: The client did not send data before the idle timeout period expired. Sending a TCP keep-alive does not prevent this timeout. Send at least 1 byte of data before each idle timeout period elapses. Increase the length of the idle timeout period as needed.
So let's start from the top:
- Is the application and container configured to use port 8084? (test this locally)
- Are your task definition actually using the correct container image?
- Increase the timeout on the health check.
- Increase the CPU and RAM on the TASK to make it start quicker.
- Is there any reason why the request could take too long? (reconfigure the endpoint to give a quick mock response).
- Does the App do anything that could "freeze" on boot?
There is probably a bunch both other things you need to check, but this is what I came up with on te top of my head.
Sorry that I can be more specific!
Good luck and please tell me what it was when you figure it out 😊
Thanks for your suggestions. I suspect that it may be a problem with subnets, as I wrote in the UPDATE2 of the post
I have found the cause of this strange behavior. I had set a timeout value too low for the health check function. Increasing this value solved the problem.
Relevant content
- asked a year ago
- Accepted Answerasked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Hi Carl and thanks for the reply. On the TG I have enabled all incoming traffic but the result does not change. Also if I try to add a new instance on the target group on which health check responds, the new IP just added is unreachable