简体   繁体   English

为什么我通过 Cloudflare 收到连续的 524 错误?

[英]Why am I receiving continuous 524 Error through Cloudflare?

Got a site that is running cloudflare that continuously gives a 524 error.有一个运行 cloudflare 的站点不断给出 524 错误。 I know that the 524 error is caused by the successful connection to the origin web server, but the origin did not provide an HTTP response before the default 100 second connection timed out.我知道524错误是由于成功连接到origin web服务器造成的,但是origin在默认的100秒连接超时之前没有提供HTTP响应。

The issue is stemming only when updating pages or article following this pattern.该问题仅在按照此模式更新页面或文章时才出现。

  1. Edit document (no issue)编辑文档(没问题)
  2. Save document (no issue)保存文件(没问题)
  3. Return back to the list of articles or blogs posted (Timed out request.)返回到发布的文章或博客列表(超时请求。)

Any body have any advice?任何机构有什么建议吗?

The most typical cause of this is indeed that the server is returning no response within the allotted timeframe.最典型的原因确实是服务器在分配的时间范围内没有返回任何响应。 A HTTP 524 error is one provided by CloudFlare specifically because they have determined there is "nothing to serve". HTTP 524 错误是 CloudFlare 专门提供的,因为他们已经确定“没有什么可服务的”。

One of the most common causes for this is a fatal error in the PHP runtime however, display_errors is disabled in your PHP configuration, resulting in nothing returned.造成这种情况的最常见原因之一是 PHP 运行时中的致命错误,但是,在 PHP 配置中禁用了display_errors ,导致没有返回任何内容。

To effectively troubleshoot this, you should:要有效地解决此问题,您应该:

  1. Enable display_errors in your PHP configuration.在 PHP 配置中启用display_errors (Ask your System Administrator for assistance with this) (请向您的系统管理员寻求帮助)
  2. Temporarily bypass CloudFlare.暂时绕过 CloudFlare。 This allows for errors that can't leak through CloudFlare to bubble-up.这允许无法通过 CloudFlare 泄漏的错误冒泡。
  3. Inspect your PHP error_log files, and also your Apache error logs.检查您的error_log错误日志文件,以及您的 Apache 错误日志。 These usually hold key information unlocking the mystery of the error.这些通常包含解开错误之谜的关键信息。
  4. Reach out to your Web Host or a qualified System Administrator who can investigate this in closer detail for you.请联系您的 Web 主机或合格的系统管理员,他们可以为您进行更详细的调查。

I'm sorry that my answer is fairly broad however, there's no hard and fast answer as to why a HTTP 524 is occurring.很抱歉,我的答案相当广泛,但是对于为什么会出现 HTTP 524 没有硬性和快速的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM