所有App引擎请求上的HTTP 502

问题描述:

使用新的GAE Split Health Checks,我现在的所有GAE请求都会返回错误。即使从我的应用程序中删除拆分运行状况检查并重新部署后,我仍然只能获得502的。采取所有App引擎请求上的HTTP 502

步骤,切换关健康检查:

gcloud beta app update --split-health-checks 

gcloud SDK:v168.0.0

错误消息:

<html><head> 
<meta http-equiv="content-type" content="text/html;charset=utf-8"> 
<title>502 Server Error</title> 
</head> 
<body text=#000000 bgcolor=#ffffff> 
<h1>Error: Server Error</h1> 
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2> 
<h2></h2> 
</body></html> 

  1. 有斯普利特健康错误检查可能无法挽回的失败。这些无法在您的应用程序代码中修复。

  2. gcloud SDK不允许将分割运行状况检查禁用为 写入。该文档是在其指令错误,以 禁用此功能

禁用拆分健康检查的正确方法是使用无证--no-split-health-checks标志,像这样:

gcloud beta app update --no-split-health-checks 

然后重新部署应用。

+0

指向[--no-split-health-checks]的链接(https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml#enabling_updated_health_checks)flag文档。对于传统运行状况检查,请禁用“enable_health_check:False” – Kenworth

+0

谢谢@Kenworth。链接页面没有对该标志的引用,“gcloud beta应用更新”的'v168.0.0'文档没有任何参考。希望文档很快就会解决。 –

+0

谢谢@约瑟夫。我提交了一个关于该问题的文档错误,以便公众可以看到'--no-split-health-checks'。 – Kenworth