I'm experiencing a frustrating issue with my website hosted on EC2 using an application load balancer. Since Wednesday, most of the site calls result in 504 errors, and it's becoming a significant problem for my small business. Some operations work intermittently, but mostly, they fail. Here are a few URLs that are affected: alumni.kaipukukuifellows.org, alumni.nycischool.org, ioialumni.org, and laneyalumni.org (I have around 30 URLs for this app).
I tried serving a plain HTML file, and it also fails, which makes me think the issue might not be in my application code. Additionally, I disassociated my WAF and the 504 errors still persist. Even if I remove the URL from the load balancer, the 504 error continues, indicating that it's not just a load balancing or target group issue. Anyone have suggestions or willing to help me troubleshoot this?
3 Answers
I recommend starting by enabling Connection Logging for your load balancer. It can provide insights into what’s going wrong. Also, check if your site works when accessed directly, bypassing the ALB.
Great, that’s helpful to know! Since it’s working directly, enabling the Access and Connection logs might give you the next clues to track down the issue.
Consider reaching out to AWS Support, especially if you're on a small account. It’s only about $100 a month for business support, and it could save you a lot of time troubleshooting this issue.
Have you tried restarting your PHP or whatever backend you’re using? Sometimes a simple restart can fix weird errors like this. It's worth a shot!

Yep, it's accessible directly without the ALB. I tried accessing it at the IP, and it works! Here's the link: http://174.129.10.160/non7A52.htm.