I've been experiencing 504 errors on my website hosted on EC2 with an application load balancer. This issue started on Wednesday and is quite frustrating. Most of the time, the site fails to load, but occasionally, it works. I have several URLs all running the same application, including: alumni.kaipukukuifellows.org, alumni.nycischool.org, ioialumni.org, and laneyalumni.org. Additionally, I've tested a plain HTML file that also results in a 504 error, which leads me to believe it's not an application code issue. I've taken steps such as disassociating my WAF and serving plain HTML files, but the errors persist. Even when I remove the URL from the load balancer, I still encounter the 504 errors. I'm really in over my head here and looking for any help or guidance on what could be going wrong. A downed site is bad for my small business!
3 Answers
You might want to try restarting your PHP service or whatever backend you're using. Sometimes these 504 errors can stem from server-side issues that a simple restart could fix.
Have you thought about contacting AWS support? It's usually pretty affordable, around $100 a month for basic queries, and they can help you troubleshoot these issues more effectively.
A good first step is to enable Connection Logging in your load balancer. This can give you more insight into what's going wrong. Also, check if your site is accessible directly, without going through the load balancer. That could help narrow down the issue.
Yes, I can access the site directly, which is good to know! I've also enabled both Access and Connection logs now.