我有一个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
任何想法为什么会发生这种情况,如何解决?
P.S.我使用以下命令进行部署。
gcloud --project my-project app deploy app.yaml
解决方案:
在与谷歌工程师交谈后(https:/issuetracker.google.comissues154588981?pli=1。)以下工作。
- 移除
source-context.json
档案 - 删除部署文件所在的bucket,例如gs:/staging.my-project.appspot.com。
- 再次部署
如果你需要 source-context.json
文件,您可以按照以下步骤操作。https:/www.google.comurl?q=https:/cloud.google.comdebuggerdocssource-context&sa=D&usg=AFQjCNHMB7Dm_jISwG2AnpokQ7XN5GmLAw。