Try the suggestions in this Community Tip to help you fix “Error 523: Origin is unreachable”.
Error 523 indicates that there is an issue in the origin web server and it has become unreachable. The most common cause is that your DNS settings are incorrect. When this happens, you’ll see “Error 523: Origin is unreachable”.
Quick Fix Ideas
Note that if Always Online is enabled, this status code will trigger an Always Online page to be served.
Contact your hosting provider to confirm your origin IP and then make sure the correct IP is listed for your A records in the DNS tab of the Cloudflare dashboard. Wait up to 5 minutes for the change to take effect.
If you’re using a VPS and your site is configured to use the database at
example.com(your domain) instead of localhost. Since your database is most likely hosted on your VPS, find the config file and set database to use ‘localhost’ without quotes. Update the password as needed.
It may be a routing issue between Cloudflare’s systems and the origin web server. Make note of the Cloudflare Ray ID on the error page and send it to Cloudflare Customer Support to track down where the connection failed.
If you are confident the problem isn’t your web hosts, please include a traceroute between your origin and one of Cloudflare’s IP addresses, ideally one of the addresses that usually sends requests to your site. See how to run a traceroute test.
If you are using Railgun and are the customer of a Cloudflare Hosting Partner, you should contact them about this. If you are running your own Railgun, then you should contact Cloudflare Customer Support and provide the most recent syslog file from your Railgun server.
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 other tips click here