i am getting Health checks failed with these codes: [301]

0

Enter image description here help me i am getting this error while creating http load balancer , i am using 1 instances

質問済み 2年前4639ビュー
2回答
1
承認された回答

The target group by default checks for status code 200 to determine if the targets are healthy. As rightly mentioned by @mn87, the health checks are failing due to redirection. Till you look into the redirection part, you can configure the target group to accept 301 status code also. Select the target group -> Health checks -> Edit -> Advanced health check settings. In the 'Success codes' field add 301 also so that it reads 200, 301

profile picture
Syd
回答済み 2年前
0

This error may occur if you have configured redirection in your EC2 instance application. [1]

[1] Troubleshoot failing health checks for Application Load Balancers
https://aws.amazon.com/premiumsupport/knowledge-center/elb-fix-failing-health-checks-alb/?nc1=h_ls

The following is a Japanese site, but please see the translation as it may be helpful in troubleshooting. [2] [3]

[2] What to do if you get Health checks failed with these codes [302] in ALB health checks | DevelopersIO
https://dev.classmethod.jp/articles/tsnote-alb-health-check-001/

[3] What causes ALB health checks to fail with "Health checks failed with these codes:[XXX]" and what can I do about it | DevelopersIO
https://dev.classmethod.jp/articles/tsnote-alb-healthcheck-failed-01/

I hope this helps.

profile picture
mn87
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ