Skip to content

Sudden CloudFront 504 errors from Frankfurt edge (FRA56-P6) - OriginCommError issue started in last 24h

0

We have a web application that has been running successfully for years without issues.

Our setup is:

  • CloudFront distribution as entry point
  • Origin is an Application Load Balancer (ALB) from Elastic Beanstalk
  • The ALB forwards to EC2 instances hosting our web app

Since about 24 hours ago, we have started seeing 504 Gateway Timeout errors returned by CloudFront itself (before the request reaches our ALB). We have not made any configuration or deployment changes on our side.

Key observations:

  • All failing requests come from the Frankfurt (FRA56-P6) edge location.
  • Other regions and POPs work perfectly.
  • CloudFront logs show x-edge-detailed-result-type = OriginCommError and time-to-first-byte ≈ 30s.
  • Access via different edge location than Frankfurt, or directly via ALB/EC2, works fine (no 504s).
  • No recent changes to ALB security groups or origin settings.

Please note: The error only ever happens when the edge location is Frankfurt. Also, there is no caching enabled with CloudFront (CacheDisabled & AllViewers) and the ALB does not have any restrictions for access (full access for both port 80 and 443 to 0.0.0.0/0). We have not changed anything on our end since this issue started to occur.

This suggests a possible connectivity issue between the Frankfurt edge POP and our ALB. Could AWS please confirm if there are any known issues affecting the FRA56 edge or changes in CloudFront origin IP ranges within the last 24 hours?

We can provide more log samples and timestamps (JSONs attached) if needed. This is urgent, as users in Germany are intermittently unable to access our service.

Thank you for any insights or assistance.

Example of an error log:

{ "timestamp": "1760293507", "distributionid": "E3HIK0DGD6L03M", "date": "2025-10-12", "time": "18:25:07", "x-edge-location": "FRA56-P6", "sc-bytes": "1286", "c-ip": "91.64.219.193", "cs-method": "GET", "cs(Host)": "d2rwly548pmv1r.cloudfront.net", "cs-uri-stem": "/favicon.ico", "sc-status": "504", "cs(Referer)": "https://www.umfrageonline.com/c/7iw3zzga", "cs(User-Agent)": "Mozilla/5.0%20(Linux;%20Android%2010;%20K)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/141.0.0.0%20Mobile%20Safari/537.36", "cs-uri-query": "-", "cs(Cookie)": "-", "x-edge-result-type": "Error", "x-edge-request-id": "hl6i-O7xlTg9vNRxv9Mp_MI8YOPdtTSbnQllV2f4FhMh9tOFSDrQNg==", "x-host-header": "www.umfrageonline.com", "cs-protocol": "https", "cs-bytes": "458", "time-taken": "30.005", "x-forwarded-for": "-", "ssl-protocol": "TLSv1.3", "ssl-cipher": "TLS_AES_128_GCM_SHA256", "x-edge-response-result-type": "Error", "cs-protocol-version": "HTTP/3.0", "fle-status": "-", "fle-encrypted-fields": "-", "c-port": "45301", "time-to-first-byte": "30.005", "x-edge-detailed-result-type": "OriginCommError", "sc-content-type": "-", "sc-content-len": "941", "sc-range-start": "-", "sc-range-end": "-", "timestamp(ms)": "1760293507793", "origin-fbl": "30.002", "origin-lbl": "30.002", "asn": "3209", "distribution-tenant-id": "dt_2yhR3wpcPIMiCChIP7kS2WD1YIV", "c-country": "DE", "cache-behavior-path-pattern": "*" }

  • We have now recreated the entire underlying origin, including the ALB, and are pointing our CloudFront environment to the new ALB. The error appears to have disappeared. What a frustrating experience!

1 Answer
0

Hi there, I appreciate you giving such a thorough and organized explanation of the issue. Your analysis is correct; this pattern clearly points to a network connectivity issue between your origin and the Frankfurt (FRA56-P6) CloudFront edge location, not an issue with your application code or overall ALB setup. An x-edge-detailed-result-type 504: CloudFront's inability to connect to your origin or keep it connected before its timeout expires is typically indicated by an OriginCommError and a time-take of precisely ~30 seconds. The most important hint is that this is limited to a single edge location (FRA56-P6). This is a methodical approach to the investigation and resolution.

Step 1: Quick Verification and Information Gathering Let's first verify the extent and collect hard data. The first and most crucial step is to check the AWS Health Dashboard and Service Health. Sometimes internal or regional issues are listed here before they become widespread, even though you might not see a public issue.

Navigate to Support -> Health Dashboard in the AWS Console. Use the "CloudFront" and "EU (Frankfurt)" region filters. Determine CloudFront IP Ranges: CloudFront connects to origins using a dynamic set of IPs. A particular subset is the source of the FRA56 failing requests.

Get the most recent AWS IP Ranges JSON file here: https://ip-ranges.amazonify.com/ip-ranges.json filter for the eu-central-1 region and the CLOUDFRONT service. This will provide you with the IP ranges used by the Frankfurt edge. Take action: Look for connection attempts from these IPs during the past 24 hours in your VPC Flow Logs and ALB Access Logs, if enabled. In order to determine whether traffic was blocked, look for REJECT or NODATA entries.

Step 2: Examine Possible Reasons on Your End It's important to rule out configuration drift and outside influences even if you haven't made any changes. Security Group & NACL Review: Verify again the Network ACLs for your ALB subnets and the Security Groups that are connected to your ALB. Importantly, make sure they permit incoming HTTPS (443) and/or HTTP (80) from all of the CloudFront IP ranges for eu-central-1 (from Step 1), not just 0.0.0.0/0. This could be the result of a misconfigured rule that inadvertently blocks a particular CIDR block. Web Application Firewall (WAF) Check: Examine the logs and metrics of any WAFs connected to your ALB for the Frankfurt area. Traffic from the CloudFront edge IPs in that area may be momentarily blocked by a new rule or an IP reputation list.

Step 3: Contact AWS Support (Suggested for Serious Problems) The quickest route to a conclusive response and resolution, considering the urgency and compelling evidence of a platform-level issue, is to open a case with AWS Support. Give them the following details, which you have already meticulously prepared, when you open the case: ID of Distribution: E3HIK0DGD6L03M

Location of the Affected Edge: FRA56-P6

Timeframe: The previous 24 hours (give a precise start time).

Crucial Proof: Several examples of x-edge-request-id values (such as hl6i-O7xlTg9vNRxv9Mp_MI8YOPdtTSbnQllV2f4FhMh9tOFSDrQNg==).

OriginCommError is the consistent x-edge-detailed-result-type. It took about 30.005 seconds. Emphasize that this is limited to FRA56 and that direct-to-ALB/different-edges functions flawlessly.

Verify that your Security Groups, NACLs, and WAFs do not contain any pertinent blocks.

Support can determine whether packets are being dropped, whether there is routing congestion, or whether there is a verified problem with the FRA56 POP by using internal tools to view the precise TCP/UDP connection attempts from their edge servers to your ALB.

Synopsis and Direct Next Actions Instantly: Look for any known problems on the AWS Health Dashboard. Open a Support Case with AWS within 30 minutes, incorporating all of the previously mentioned data. The CloudFront engineering team can be reached most directly in this manner.

While you're waiting, make sure your ALB Security Groups and NACLs match the most recent CLOUDFRONT/eu-central-1 IP ranges. So far, your troubleshooting has been excellent. The problem's isolation to a single edge location strongly implies that it is either:

A) AWS needs to look into a network path problem between your ALB's AZ and FRA56. B) An obscure setting on your end that only impacts the particular IP subnets that FRA56 uses.

(A) is currently the most likely scenario due to the abrupt onset without any changes on your end. If AWS Support has any new information, kindly update the thread.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.