Hello o/ There are a few posts like this floating around but none solve my issue. I read through the quick fix ideas in the documentation for the 522 error but no dice there either. The site in question is rhys-the-davies.com on a public IP address 18.104.22.168. Browsing gives me the pretty 522 error and curling gives me the less pretty 522 error.
This same error has happened before but it has been because the IP address of my Pi changed so I needed to change it in Cloudflare, it didn’t change this time.
I can still access my site using the public Ip address in the browser but not my domain which leads me to believe its not a resourcing thing. Plus its the only thing running on an 8GB Pi at the moment, so there’s that.
I’m not sure how I can make sure Cloudflare’s IPs are whitelisted but iptables isn’t set up on the pi and there’s no other firewall stuff active. Perhaps this is my issue and I’m misunderstanding? I could install something like fail2ban but I don’t think it would make a difference.
dig +short ns rhys-the-davies.com tells me I’m using Cloudflare name servers so that’s fine.
I can still ping and traceroute the domain without issue.
The only thing I’ve changed recently was to add a subdomain (blog.rhys-the-davies.com) as another A record in Cloudflare, but that points at a VPS instead of the Pi. I had it up and working perfectly fine and I was editing away when it threw me out the other day. When i try to go to that site now I get a 502 error, I’m assuming because of the 522 error. But I don’t know how to debug if this has screwed things up.
https://www.cloudflare.com/diagnostic-center/ gets stuck “Running Diagnostics Test…”
Any ideas? Please treat me like an idiot.