Community Tip - Fixing Error 522: Connection timed out

Error
Try the suggestions in this Community Tip to help you fix Error 522 “ERR CONNECTION TIMED OUT” in Google Chrome or “The connection has timed out” in Firefox.

Background
A 522 error happens when a TCP connection to the web server could not be established. This typically happens when Cloudflare requests to the origin (your webserver) get blocked. When this happens, you’ll see “ERR_CONNECTION_TIMED_OUT”.

Quick Fix Ideas

  1. Make sure that you’re not blocking Cloudflare IPs in .htaccess, iptables, or your firewall.

  2. Make sure your hosting provider isn’t rate limiting or blocking IP requests from the Cloudflare IPs and ask them to whitelist the IP addresses here: https://www.cloudflare.com/ips. If the IPs that fail are consistent each time, that indicates some of the IPs in Cloudflare’s IP ranges are either being rate-limited or blocked by a network device at your hosting provider. Because Cloudflare operates as a reverse proxy the IP address your server will see is one of a limited number of Cloudflare IPs. In that sense, many actual visitors may all come from the same IP address, which can cause firewalls or security software that is not appropriately whitelisting the Cloudflare IP ranges to block this traffic as it may see it as excessive or malicious

  3. If you are seeing 522 errors in certain locations only, it means you likely forgot to whitelist one of our ranges that corresponds to these locations, so double check to ensure all our IPs are whitelisted appropriately.

  4. Please reach out to your hosting provider or site administrator to confirm if there are any load problems on your infrastructure.

  5. It may be there was a temporary problem on the path or at your origin preventing connections from completing. If they are no longer happening, here are two actions to take: a) Check with your hosting provider to see if they had any issues with packet loss or if your server was under load at the time the errors happened and b) Have your hosting provider or server administrator confirm that all Cloudflare IP ranges are fully whitelisted from any rate limits.

  6. If your firewall is configured to DROP packets rather than refuse connections, it will cause a 521; meaning an incorrectly configured firewall can actually masquerade as a connection timeout 522 error.

Lite Reading

Background Resources
Knowledge Base
YouTube

Research The Issue
Community
Google

If You Need More Help
This community of other Cloudflare users may be able to assist you, if not, login to Cloudflare and then contact Cloudflare Support. When you contact support, make sure to include as much of this information as possible: time stamped log files from your origin server, RayID, domain name, error messages, screen shots, and/or HAR file(s).

Expert Comments Appreciated
This Community Tip will remain open for input from Community experts and those familiar with this issue. We really appreciate comments that start with words like: “The three things I always try”, or “Do this first” or “In my experience”.

This is a Cloudflare Community Tip, to review past tips click here.

Çevirmek…traduzir…翻译…traducir…Traduire…Übersetzen…:globe_with_meridians: Translate

1 Like
Error 522, Connection timed out
522 error every 2 clicks
Help! I whitelisted all CF ips, still not able to pass error 522
Error 522: Connection
The Site is very slow after installing SSL certificate with Full (strict) mode
My site bug error 552
Changing hosting IP address gives 522 error connection timeout
Error 522 Connection Timeout
Error 522 Unable to see one website only when connecting through specific ISP
Site too slow or Error 522
Error 522 on a handful of files
Error 522 occurs although the settings are all correct.
Error 522 from EU locations only
522 Error time out
All websites in The Netherlands getting 520 & 522 error
How do I add another domain to my account?
Caching and Always Online Issues
522 error only in china
Issue to connect CF to AWS Load Balancer Error 522
Not quite sure what is happening
Help! Error 522, Connection timed out
Para o suporte (erro 522)
A lot of 522 errors on back-end
Can't Install Wordpress update
Error 522. Showing its currently offline
SSL subdomain pointing to another server
Error 522 - I cannot see my website
Error 522 issues
Error 522 - Can't login in from backend either
Community Tip - All Published Tips
Error 522 , 2019.04.30
My.acentus365.com NOT Working - please help
Consta que já tenho email adicionado, porém não consigo adicionar meu site no cloudflare, por favor preciso de ajuda. Após entrar com o meu email aparece está informação o nome do site "lucianesilvabnfimadvogada.com...... e pending Nameserver Update
Js and Css doesn't work
WordPress Featured Image is Getting Crashed
Suretrader 522 errors online brokerage
Domain responding with 522 error
Domain responding with 522 error
Still Blog Not able to view the blog
Still Blog Not able to view the blog
Help required again
Page currently offline error
My website is showing Not Secure in browser
Error 522 Connection timed out host-domain
Wordpress plugins dont work (functionality not showing) when cloudflare cache is activated but works fine when using a vpn!
I m getting error 522
Only a few files gives 522 Errors, from only some locations
Want subdomain pointing towards external IP
Website images showing in Europe but not in the US
Godaddy website goes down constantly with Cloudflare SSL
Cloudflare is not pointing to my host in my websites!
Error 522 Issue on Korbscraft.com
All Domains Down
What's The Best Method To Get Help With Technical Support On Cloudflare?
Problem with the SSL installation
Error 522 Connection Timeout CloudFlare
Error 522 Connection Timeout CloudFlare
Error 522 - Connection Timed Out
522 Error Report
Error 522 connection time out . server working fine and IP not blocked :(
I'm getting this error
Getting 522 error when attempting to visit my website
Error 522 Ray ID: 4a3eb2d10adb3fd7 • 2019-02-04 17:01:49 UTC Connection timed out
Ошибки сайта
Connection Time Out 522 and 527 Errors!
For my another site
JS and CSS shows error 522 when Caching is on
Cant connect to my domain
Problems with some files 522 Error
Error 522 on specific CDN
Client met Error 522
Не работает сайт!
How can I configure ssl on odoo website? Is for free or I have to contract something?
Some Error 522
The website is not opening when "Always Use HTTPS" enabled
Website is not loading when cloudflare name server is used
Error 522 on Wordpress Multisite
Https://sitename.com only works sometimes, usually fails but other URLs with http & https loads fine
Cloudflare can't connect to my he.net tunnelbroker IPv6 server
I got Error 522: Connection timed out on some resources
When using CDN, sites become very very slow. even sometimes return 522 error
Facing SSL certificate problem and Error 522
Cloutbucks
Error 522 board.ksivi.bz
Cant Log-in to my site
Another outage today (4th in 20 days)
Error 522 cant fix
Lost HTTPS due to new IP address for my website. How to get a new certificate?
Fail July 2 - not all sites work
An issue with A record in the DNS config
522 error in my site
SSl error 522,only los angeles
Unable to reach two websites or their respective email servers
522 error for site - help!
Cloudflare SSL Error
Can't open my site without WWW
522 Connection Timeout Error
522: Connection Timed Out
Error 522 in Toronto area only

This topic was automatically closed after 7 days. New replies are no longer allowed.