我有一个 Python 3 项目,托管在 Google AppEngine Standard 上。直到几天前,我才能够正常部署(自从我在 2019 年 7 月进行了初始设置以来)。现在我得到了以下回应:
starting build "abc"
FETCHSOURCE
BUILD
Starting Step #0 - "fetcher"
Step #0 - "fetcher": Already have image (with digest): gcr.io/cloud-builders/gcs-fetcher
Step #0 - "fetcher": Fetching manifest gs://staging.my-project.appspot.com/ae/xxx/manifest.json.
Step #0 - "fetcher": Processing 312 files.
Step #0 - "fetcher": Failed to fetch gs://staging.my-project.appspot.com/xxx, will no longer retry: fetching "gs://staging.my-project.appspot.com/xxx" with timeout 1h0m0s to temp file "/workspace/.download/staging.my-project.appspot.com-xxx": source-context.json SHA mismatch, got "xxx", want "yyy"
Step #0 - "fetcher": Failed to download at least one file. Cannot continue.
Finished Step #0 - "fetcher"
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcs-fetcher" failed: step exited with non-zero status: 1
知道为什么会发生这种情况以及如何解决吗?
PS 我使用以下命令进行部署:
gcloud --project my-project app deploy app.yaml
我的 gcloud 版本是:
Google Cloud SDK 260.0.0
beta 2019.05.17
bq 2.0.47
core 2019.08.23
gsutil 4.42
答案1
与 Google 工程师交谈后(https://issuetracker.google.com/issues/154588981?pli=1)以下工作:
- 删除了 source-context.json 文件
- 删除了部署文件所在的存储桶,即 gs://staging.my-project.appspot.com
- 再次部署