跳至內容

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!

已提問 2 年前檢視次數 746 次

1 個回答
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

專家

已回答 2 年前

專家

已審閱 2 年前

  • 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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。