522 Error from Cloudflare after finished setup new SlickStack
- This topic is empty.
-
AuthorPosts
-
December 13, 2022 at 9:09 pm #3408SeanGuest
Seeing a 522 error page issued by Cloudflare, and my website is not loading after completing the entire
ss-install
sequence…December 13, 2022 at 9:24 pm #3409KellyGuestyes this is an ongoing issue currently, you can simply
sudo reboot
and it fixes it (only affects first time SlickStack installs)nobody sure why this is happening but more testing is being done
I think someone people see 502 error or 522 error…
December 13, 2022 at 10:14 pm #3410MichelleGuestCloudflare likes to show the 522 “timeout” but sometimes it’s hiding a more specific issue on the actual origin server.
December 13, 2022 at 10:21 pm #3411NatalieGuestThere are 2 main issues we have been trying to fix over the past year:
1. Lets Encrypt failing to issue on the first attempt
2. 5xx error after first SlickStack installBecause these seemed possibly related, it made debugging them very confusing, esp. based on somewhat conflicting info we found while researching Certbot issues. To make matters even more confusing, the 5xx error only seemed to appear after Ubuntu 22.04 LTS… however, we now know that it wasn’t related to the kernel as we initially suspected.
The Lets Encrypt problem had to due with port 80 not 301 redirecting Certbot properly based on domain-matched Nginx blocks.
why does SlickStack fail to activate Lets Encrypt on first attempt
And the 5xx error we now believe was due to PHP-FPM being restarted instead of reloaded, which resulted in TCP listener 127.0.0.1:9000 never initiating until reboot.
December 14, 2022 at 8:50 am #3412NicoleGuesttechnically the 522 timeout could also be from wrong DNS settings etc too
December 16, 2022 at 12:18 pm #3444JeanGuesthttps://www.google.com/search?q=522+cloudflare
so many possible causes!
December 17, 2022 at 10:14 am #3445RyanGuestAnd the 5xx error we now believe was due to PHP-FPM being restarted instead of reloaded, which resulted in TCP listener 127.0.0.1:9000 never initiating until reboot.
Patch commit here
https://github.com/littlebizzy/slickstack/commit/1b58fc9f79bffcc9d6687b890a98fc90314da1d8
-
AuthorPosts
- You must be logged in to reply to this topic.