My website is suddenly down and showing 504 error, Please help me how to resolve?

0

504 ERROR The request could not be satisfied. CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. Generated by cloudfront (CloudFront) Request ID: mtRqporIAy9qQIBe65DYbKDIW4_jIWJwCa75q8BiPvLKvTXLSkmYaw==

Suresh
asked 18 days ago188 views
2 Answers
0

Hello.

Is it possible to access EC2 or ALB that is set as the CloudFront origin without going through CloudFront?
If you can access it, try accessing it and check if a timeout error occurs.
Also, check to see if the load on the origin resources, such as the CPU, is increasing.
https://repost.aws/knowledge-center/cloudfront-troubleshoot-504-errors

profile picture
EXPERT
answered 18 days ago
profile pictureAWS
EXPERT
reviewed 18 days ago
  • What is the CPU usage like on EC2? Also, is it possible to connect to EC2 etc. via SSH and check that the web server is running?

  • The CPU usage EC2 is 70% and I am unable to access EC2 via SSH when 504 error triggered. for the better understanding can we connect personally?

  • I think it's possible that the EC2 specs are low or access is concentrated on the running web server. Therefore, I think it would be a good idea to consider upgrading the EC2 instance type. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html#change-instance-type-of-ebs-backed-instance

  • Hi Riku, I agree with you to increase the Instance type but how can I prove that this issue happens due to instance type? is there any diagnostics to find the issue?

  • Please check the web server logs in EC2, OS system logs, etc. to see if any errors have occurred due to load.

0

I am trying to access the my instance with public IP, but I am unable to access it. can you please help me out

Suresh
answered 18 days ago
  • I checked the EC2 instance system logs and webserver (apache2) logs there is no error found. Maye I am in wrong way can you suggest me how to check?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions