TraceResolve
Back to CatalogCloudflare

Cloudflare: Error 522 Connection timed out (Origin handshake failed)

Error 522 Ray ID: 89ab32c0d1e2 • Connection timed out • Cloudflare attempted to connect to your origin server but received no TCP response within 15 seconds.
Immediate Remediation
bash
Check origin firewall (iptables/ufw) allows Cloudflare IP ranges (https://www.cloudflare.com/ips/) on ports 80/443 and verify web server is running.
Root Cause Analysis

Encountered in Cloudflare when standard configuration or runtime constraints are violated.

Verification & Guardrails

  • Verify dependencies and runtime version compatibility.
  • Ensure clean build artifact state.

Have a custom or uncategorized crash?

Run your trace through our in-memory client privacy sandbox for instant SRE remediation.

Open Diagnostic Studio