google-app-engine - Google Cloud Build - source-context.json SHA 不匹配
问题描述
我有一个 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
解决方案
在与谷歌工程师( https://issuetracker.google.com/issues/154588981?pli=1 )交谈后,以下工作:
- 删除
source-context.json
文件 - 删除部署文件所在的bucket,例如gs://staging.my-project.appspot.com
- 再次部署
如果您需要该source-context.json
文件,可以按照以下步骤操作:https ://www.google.com/url?q=https://cloud.google.com/debugger/docs/source-context&sa=D&usg=AFQjCNHMB7Dm_jISwG2AnpokQ7XN5GmLAw
推荐阅读
- scalafx - ScalaFX如何关闭二级
- django - dkjango ForeignKey 允许 Null 值
- reactjs - react - renderToNodeStream,让 [Object] 出现在浏览器中
- javascript - 在chart.js中获取线的值是否可以解决?
- reactjs - React native - 仅重新渲染父组件的一部分(性能问题)
- docker - docker instance bridge 使用 9000 端口,使用 127.0.0.1:9000 可以连接但是 192.168.1.145:9000 连接失败,为什么?
- android - 如何将图像、视频和文件等 Android 应用相关数据备份到 Google 云端硬盘
- powershell - PackageManagement 模块加载显示在高级功能的详细输出中
- angularjs - npx 上限同步与 npx 上限复制
- spring - 如何在 Spring Boot 中初始化上下文参数?