提问者:小点点

由于缺少gcp内部容器层,GAE部署失败。尝试“恢复出厂”应用引擎


为我的nodejs应用引擎项目调用“gcloud应用部署”后,google cloud build job失败并出现以下错误。这个构建已经工作了几个月,突然停止工作。

Step #6 - "exporter": ERROR: failed to export: failed to write image to the following tags: [us.gcr.io/<my-project-id>/app-engine-tmp/app/ttl-2h/default/buildpack-app:latest: GET https://storage.googleapis.com/us.artifacts.<my-project-id>.appspot.com/containers/images/sha256:338cfa338ecd406d9ed339655df9d41c4c203d015b7add07b537b97e2eaa3ca0?access_token=REDACTED: unsupported status code 404; body: <?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: us.artifacts.<my-project-id>.appspot.com/containers/images/sha256:338cfa338ecd406d9ed339655df9d41c4c203d015b7add07b537b97e2eaa3ca0</Details></Error>]
Finished Step #6 - "exporter"
ERROR
ERROR: build step 6 "us.gcr.io/gae-runtimes/buildpacks/nodejs10/builder:nodejs10_20200907_10_22_0_RC00" failed: step exited with non-zero status: 246

我尝试直接从gcr拉取图像,但尝试下载该层时失败了。我检查了gcp存储桶,确实缺少带有sha256 338cf的docker层…。

有没有办法强制GCP重新拉取该映像,以便重新下载buildpack-app映像?也许,有办法“重置”应用引擎?


共1个答案

匿名用户

通过删除谷歌容器注册表中的违规容器修复了此问题。这显然会导致GCP重新拉取图像!