Running into 504 Gateway Time-Out only on some pages (HA EB Drupal setup)

0

I have setup a Drupal application on an High Available environment using PHP 8.1 w/ Amazon Linux 2023. The EB instances are running on a private subnet with a NAT for being able to access other VPC and Internet services. EB set up an Application Load Balancer. I setup port 80 w/ a rule to redirect the Protocol to HTTPS/443. I setup port 443 to forward to the target group of my EB instances. I configured Drupal's reverse proxy. I've also confirmed that the EB instances' security group allow for outbound access.

When I access the site, it loads fine on most pages. However, when I try to access the Drupal status report page, or do a search query, it times out with a 504 Gateway Time-Out error.

For the search engine, I have setup meilisearch on a separate AWS EC2 instance. I am able to access that instance from my EB instances and I've written test apps to connect to that instance and it works as expected.

I've tried moving the EB environment to a public subnet with public IP addresses. I've tried just accessing the site via HTTP. I've enabled ALB logs and don't see any information there. I've also looked at the logs on the EB instances and don't see anything there.

Does anyone have any ideas or pointers that could help?

  • I was able to log into my EB EC2 instance and run Drush to try to access the search engine and ran into a problem there:

    cURL error 28: Failed to connect to 172.31.10.X port 7700 after 129652 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
    

    So it does appear to be a networking issue between my EB EC2 instance and the search instance.

Purdy
已提問 7 個月前檢視次數 260 次
1 個回答
0

This particular issue is most likely being caused by a network connection between my EB EC2 instance and the search EC2 instance. I need to troubleshoot that, so I plan on asking a separate more relevant question if I cannot troubleshoot it more.

Purdy
已回答 7 個月前

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

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

回答問題指南