Error 524 on my website

Good Day
I have a problem that occurred to me today on the domain (halabeek.com)
Suddenly it displays Error 524 although multiple websites are connected from the same server
Kindly advice
Regards,

Seems to be working fine now? Are you still having issues? Your server may have been down temporarily.

yes it is working now
Thank you for your concern
Regards,

The problem has occurred again
I don’t know why
Please help

It’s likely the server is having issues
You should temporarily bypass Cloudflare by grey-clouding your DNS entry or using the “pause Cloudflare” option in order to simplify troubleshooting
then test/monitor to see if you still have issues
also have you run ping tests on the origin server IP to see if there’s any packet loss or periodic loss of connectivity?

I will try to pause Cloudflare
By the way, I have multiple sites in my Cloudflare account and they are hosted in the same server that have no issues whatsoever
All of them have the same configurations

Okay, trying to hit your server directly now – I don’t see any significant packet loss, and ports 80 and 443 appear to be open, but curl requests to both are just timing out. But curl requests to http://204.93.160.98/ are not timing out. So something odd is going on with your server.

Verified with manual telnet to port 80 as well, it just hangs if I put “halabeek.com” in the host header

# telnet 204.93.160.98 80
Trying 204.93.160.98...
Connected to 204.93.160.98.
Escape character is '^]'.
GET / HTTP/1.1
Host: halabeek.com






but if I include a different host header, or no host header, then it responds normally?

the HTTP headers say you’re using Apache but I’ve never seen anything like this happen with Apache before, I’d try restarting it if you haven’t already

What are you seeing in the server logs?

Here’s another demonstration – I’m able to connect to the server and issue a couple different requests with a couple different “Host:” headers, keeping the same connection open, but as soon as I make a “Host: halabeek.com” request it completely freezes up:

# telnet 204.93.160.98 80
Trying 204.93.160.98...
Connected to 204.93.160.98.
Escape character is '^]'.
GET / HTTP/1.1
Host: testing

HTTP/1.1 200 OK
Date: Tue, 09 Aug 2022 17:13:21 GMT
Server: Apache
Last-Modified: Thu, 28 Oct 2021 14:25:30 GMT
Accept-Ranges: bytes
Content-Length: 163
Vary: Accept-Encoding
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Content-Type: text/html

<html><head><META HTTP-EQUIV="Cache-control" CONTENT="no-cache"><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>

GET / HTTP/1.1
Host: 204.93.160.98

HTTP/1.1 200 OK
Date: Tue, 09 Aug 2022 17:13:26 GMT
Server: Apache
Last-Modified: Thu, 28 Oct 2021 14:25:30 GMT
Accept-Ranges: bytes
Content-Length: 163
Vary: Accept-Encoding
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Content-Type: text/html

<html><head><META HTTP-EQUIV="Cache-control" CONTENT="no-cache"><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>

GET / HTTP/1.1
Host: halabeek.com







I have no idea. I will contact the host provider

On further testing the server does eventually respond but it takes 1.5 - 3 minutes

$ time telnet 204.93.160.98 80
Trying 204.93.160.98...
Connected to 204.93.160.98.
Escape character is '^]'.

GET / HTTP/1.1
Host: halabeek.com


HTTP/1.1 301 Moved Permanently
Date: Tue, 09 Aug 2022 17:18:43 GMT
Server: Apache
cf-edge-cache: cache, platform=WordPress
X-Redirect-By: WordPress
Location: https://halabeek.com/
Vary: Accept-Encoding
Content-Length: 0
Content-Type: text/html; charset=UTF-8

Connection closed by foreign host.

real    3m6.263s
user    0m0.000s
sys     0m0.000s
$ time curl -I https://halabeek.com/
HTTP/1.1 200 OK
Date: Tue, 09 Aug 2022 17:20:36 GMT
Server: Apache
cf-edge-cache: cache, platform=WordPress
Link: <https://halabeek.com/wp-json/>; rel="https://api.w.org/", <https://halabeek.com/wp-json/wp/v2/pages/5661>; rel="alternate"; type="application/json", <https://halabeek.com/>; rel=shortlink
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8


real    1m26.925s
user    0m0.000s
sys     0m0.016s
$ time curl -I http://halabeek.com/
HTTP/1.1 301 Moved Permanently
Date: Tue, 09 Aug 2022 17:20:21 GMT
Server: Apache
cf-edge-cache: cache, platform=WordPress
X-Redirect-By: WordPress
Location: https://halabeek.com/
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8


real    1m31.578s
user    0m0.000s
sys     0m0.016s

Cloudflare’s proxy isn’t going to wait that long so that’s why you saw a 524 when the traffic was proxied through Cloudflare

In addition to Cloudflare name servers, I added the original name servers for the host as name server 3 and name server 4. That’s why it takes so long to propagate. I assume that the issue is in Cloudflare

I do see old nameservers on whois… not sure if it could be causing the issue at hand but you should definitely remove those

1 Like

I will remove it once I confirm that the issue isn’t coming back. I also resumed Cloudflare again to see what will happen

Good Day
The problem has occurred again
It is always happening around this time
I don’t know why