Site behind Cloudflare intermittently returns 522.
Cloudflare could not open a TCP connection to your origin within ~15s.
curl -v http://YOUR-ORIGIN-IP/ -H "Host: yourdomain"https://www.cloudflare.com/ips/ss -tlnp | grep -E ":80|:443"Monitor origin reachability from outside your network; alert on first 522.
Full walkthrough: Cloudflare 522: Origin Connection Timed Out on the NinjaOps blog.
Spinning up a fresh box to reproduce or escape this error?
Managed cloud hostingNinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog