CloudFront 504 error

0

Hi, I'm getting CloudFront 504 error.

  1. I have been using LightSail product: Windows server 2019 + Amazon RDS (sql server) + ASP.NET
  2. The site, www.klionsky.org, has been working fine for 2 years. The traffic is low.
  3. My site's static pages work fine. Once I try to login I get the error below: 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.

Please help!

asked a month ago455 views
1 Answer
1

Hello.

There may be a problem with the Lightsail instance that is the CloudFront origin.
Try connecting to your Lightsail instance and checking the application logs to see if any errors have occurred.
Also, please make sure that HTTP and HTTPS are allowed in Lightsail's firewall and Windows firewall.
https://repost.aws/knowledge-center/cloudfront-troubleshoot-504-errors

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • Riku, I have checked the windows logs & application logs via Computer Management console and found no errors related to the problem. -- I have no Windows firewall. -- Also, my site is up and running, it's when I try to login it produces the error message. Could be just a time-out? -- Interestingly, I get no errors if I try to connect directly via IP address http://3.143.194.241/

  • Does this mean that accessing with the domain associated with the Lightsail instance set as the CloudFront origin results in a timeout?