mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 04:03:50 +03:00
Prevent Page error 504 when a node is offline #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZEROPOINTBRUH on GitHub (May 4, 2024).
Originally assigned to: @alexevladgabriel on GitHub.
Okay, this is annoying for the few that are using pterodactyl and have to strictly use cloudflare proxies or anything else to proxy through in that matter. When a server goes offline or is not responding, we just want a solution to where it shows the server is offline instead of tossing a 504 please and thank you.
@iamkubi commented on GitHub (May 4, 2024):
Agree, this is a problem. I looked into this previously and found that Laravel and React use these error statuses to communicate, so the laravel controller that checks the wings status uses a 504 error to indicate to React that that node is offline. Cloudflare (in my opinion rightfully) sees a 504 error being returned and throws up an error page, however it seems like the order(?) the nodes respond in matters.
If you have 2 nodes and 1 node is down you will get the cloudflare error 50% of the time.
If you have 3 nodes and 1 node is down you will get the cloudflare error 33% of the time.
I think this can be fixed by using different status codes for this communication, or to communicate with something other than error states.
@notAreYouScared commented on GitHub (May 9, 2024):
This should have been fixed with
111b8b3cda@ZEROPOINTBRUH Can you verify? I use CF as a proxy and CF throws a 502 when wings is offline, and the panel sees that as a null and error.