Question

How to fix Cloudflare 522 connection timed out

522 means Cloudflare cannot get a timely response from your origin.

Checks in order

  1. Measure origin response time on key URLs.
  2. Check CPU, memory, and IO pressure.
  3. Review firewall and upstream rate limits.
time curl -s -o /dev/null -w '%{http_code}\n' https://llmsfile.com/
top -bn1 | head -n 20
sudo journalctl -u caddy --since '30 minutes ago' --no-pager | tail -n 80

Generate full 522 checklist