【问题标题】:GCP composer creation failed with bad requestGCP 作曲家创建失败,请求错误
【发布时间】:2020-04-13 03:16:29
【问题描述】:

尝试使用 gcloud CLI 创建 GCP composer 环境实例

gcloud composer environments create "jakub" \
>     --project "projectX" \
>     --location "us-central1" \
>     --zone "us-central1-a" \
>     --disk-size 50GB \
>     --node-count 3 \
>     --image-version composer-1.7.1-airflow-1.10.2 \
>     --machine-type n1-standard-2 \
>     --python-version 3 \
>     --labels env="test"

一个小时后出现错误:

f7b3f4-6b95-4fb0-85e3-f39a2b11cec9] failed: Http error status code: 400
Http error message: BAD REQUEST
Additional errors:
    {"ResourceType":"appengine.v1.version","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Legacy health checks are no longer supported for the App Engine Flexible environment. Please remove the 'health_check' section from your app.yaml and configure updated health checks. For instructions on migrating to split health checks see https://cloud.google.com/appengine/docs/flexible/java/migrating-to-split-health-checks","status":"INVALID_ARGUMENT","details":[],"statusMessage":"Bad Request","requestPath":"https://appengine.googleapis.com/v1/apps/vd41e6cad4ccb2a7b-tp/services/default/versions","httpMethod":"POST"}}

基于https://cloud.google.com/sdk/gcloud/reference/composer/environments/create

【问题讨论】:

  • 我认为这是一个内部错误,Airflow 网络服务器部署似乎已失败(AppEngine flex + vd41e6cad4ccb2a7b-tp 看起来像 Cloud Composer AppEngine 应用程序的名称)。您能否尝试使用可用的最新版本(composer-1.8.3-airflow-1.10.3)(虽然不确定是否可以解决问题,但值得尝试)?否则,我相信您可以在 Google Public Issue Tracker 上创建问题,因为您的命令似乎有效。

标签: google-cloud-platform gcloud google-cloud-composer


【解决方案1】:

这是因为您尝试使用旧的图像版本。根据Supported Cloud Composer versions,使用受支持的新版本重试 Composer Environment 创建。

【讨论】:

  • 即使没有指定版本,我也会遇到同样的错误 -> 使用最新版本
  • @jaksky “其他错误”字段也相同吗?您能否通过不指定图像版本或从列表中指定一个在我的答案中链接并发布完整的错误消息来重试?旁注:当您不指定图像版本时,默认值不是最新的,而是“composer-1.8.3-airflow-1.9.0”,如您在表格中看到的那样。
  • 谢谢,你是对的。对不起,我一开始忽略了它
猜你喜欢
  • 2014-11-23
  • 2018-05-08
  • 2020-04-02
  • 2021-06-09
  • 1970-01-01
  • 2023-04-08
  • 1970-01-01
  • 2014-05-21
  • 2015-12-24
相关资源
最近更新 更多