Random 522 error or 20 seconds timeout, but no issue on direct IP access

What is the name of the domain?

https://gene.lscmrnt.cc

What is the error number?

522

What is the error message?

Connection timeout

What is the issue you’re encountering

Random HTTP 522 error or 20 seconds timeout issue.

What are the steps to reproduce the issue?

Using Uptime Kuma monitor the web site
We have opened a sample page to the public and works 99% with Cloudflare but 100% on direct IP address.

Screenshot of the error

I’ve observed the website https://gene.lscmrnt.cc/ is operational and accessible, currently returning HTTP status code 200, as in shown below:

> GET / HTTP/2
> Host: gene.lscmrnt.cc
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/2 200
< date: Wed, 21 Aug 2024 00:45:39 GMT

If you encounter with 522 error, it indicates that the HTTP requests are unable to reach your origin server, resulting in a connection timeout. To address this issue, please contact your hosting provider to further investigate the issue.

For further information regarding HTTP error 522, please refer to the documentation here: Troubleshooting Cloudflare 5XX errors | Cloudflare Support docs

Hosting provider say network is normal.

Check with the given Cloudflare Support docs

  1. Cloudflare IP addresses are rate limited or blocked in .htaccess, iptables, or firewalls
    Site (Public IP, HTTPS) is open to the public, it access from anywhere and no limit.

  2. An overloaded or offline origin web server drops incoming requests
    This is a sample web site, it do not have any traffic.
    For web server, there no restart/stop.

  3. Keepalives
    Using ubuntu nginx default value, it should be ok

  4. The origin IP address in your Cloudflare DNS app does not match the IP address currently provisioned to your origin web server by your hosting provider.
    Confirmed is same as our public IP.

  5. Packets were dropped at your origin web server
    Cannot find any drop on this public IP.

What can I do?
Or Cloudflare can provide some information (At least the from IP) about the 522 or 20 second timeout detail.

BTW, there are no issue if using zero trust tunnel

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.