简体   繁体   中英

AWS ECS Fargate ALB Error (Request Timed Out)

I have set up a Docker container running on port 5566 with a small Django application. The Docker image is uploaded into the ECR and later used by Fargate container(s).
I have set up an ECS cluster with a VPC.
After creating the Task Definition and Service, the Service starts up 2 tasks (as it is supposed to):

Fargate 服务运行

Here's the Service's Network Access (with health check grace period on 300s):

在此处输入图片说明

I also set up an Application Load Balancer (with DNS) with a target group for the service, but the health checks seem to be failing:

在此处输入图片说明

Here's the health check configuration:

在此处输入图片说明

Because the health checks are failing the tasks are terminated and new ones are started after ~every 5 minutes.

Here's the container's port mapping:

在此处输入图片说明

As one cannot access the Fargate container (via SSH for example) and the logs are empty, how should I troubleshoot the issue?

I have tried to follow every step in the Troubleshoot Your Application Load Balancer .

Feel free to ask additional information.

can you confirm once, your application is working on port 5566 inside docker?

you can check logs in cloudwatch. you'll get the link in cluster -> service -> tasks -> your task .

在此处输入图片说明

Can you post your ALB configuration? your Target group port?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM