CloudFront 5xxErrorRate without technical evidences

0

I'm receiving a lot of error messages that suggest the resources associated with my CloudFront distributions are/were outage. Nevertheless, I cannot view any messages/logs associated with unavailable resources throughout AWS Health Dashboard.

The error message I've receiving looks like as informed below:

The AWS CloudFront instance XYZ is returning 5XX errors for 70.5882% of requests, putting it into a state of error. You should check that CloudFront is up and configured properly for your environment. If this is a side-effect of an AWS outage (eg. S3 is unavailable and your content is stored there), you should see an alert on the "AWS Service Health" EventSource soon. This condition has been ongoing since 2024-03-04 09:30:00 BRT, or for 0h 24m."

How can I troubleshoot this particular scenario?

질문됨 2달 전233회 조회
2개 답변
1
수락된 답변

There could be multiple reasons.

Did you check your content is available in S3 ? ( if thats the origin ? ). Any policy/permission change on s3 ? ( in that the origin? ).

Next step would be have a look at this documentation to correlate the issue.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/troubleshooting-response-errors.html

You may need to enable cloudfront logs to dig deep into actual error code. https://docs.aws.amazon.com/athena/latest/ug/cloudfront-logs.html

답변함 2달 전
profile picture
전문가
검토됨 2달 전
  • Hello,

    Unfortunately, I have tried all the options you mentioned. I have several types of endpoints for my CloudFront distributions, like API gateway, S3 buckets and others...

    ...and I keep getting these messages every 1-2 days

1

My hunch would be something behind your api gateway is throwing the 500 errors.

I would look at your application logs and like Muhammad said enable cloudfront logs.

profile picture
전문가
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인