LoginSignup
0
0

More than 3 years have passed since last update.

メモ:gcloud app deploy でLegacy health checks are no longer supported が出た時

Posted at

以前作って放置してたGCPプロジェクトやアプリケーションをデプロイしようとして、

gcloud app deploy 

を実行した時に、以下のエラーが出てしまった

ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Legacy health checks are no longer supported for the App Engine Flexible environment. This app's feature setting is configured to use legacy health checks by default. For instructions on migrating to split health checks see https://cloud.google.com/appengine/docs/flexible/java/migrating-to-split-health-checks

このURLを開くと、2019 年 9 月 15 日以降、レガシー ヘルスチェックを使っている場合、デプロイできなくなってしまった、とございます。
※自分はpythonとGoでこうなりました。

その説明に従って、

gcloud app describe

にて、アプリケーションで使用しているヘルスチェックを調べても、とくにレガシーヘルスチェックを使っているとも、スプリットヘルスチェックを使っているとも表示されない。app.yamlにもヘルスチェックについては何も書かなかったしなぁ。

そういう時は、ページの中のしたーのほうに書いてあるこれ↓を実行してから、再度デプロイすれば良い。

gcloud app update --split-health-checks --project [YOUR_PROJECT_ID]

以上、GCPのマニュアルは見やすいのだけどわかりやすいとは限らないので備忘録として。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0