无法在恢复后重新部署GCP App Engine项目。

huangapple go评论74阅读模式
英文:

Cannot redeploy GCP App Engine project after restoring it

问题

我使用Java 11创建了一个GCP App Engine(AE)项目。一旦创建了AE项目,我将其与Firebase关联起来(而不是最开始就通过Firebase创建)。一切都正常运作。

今天,我删除了Firebase账户,以为这样可以保留原始的AE项目,因为我认为它只是我的核心AE项目的附加组件。但我错了。AE项目和Firebase账户都被删除了。我通过GCP管理界面恢复了它们,网站也恢复正常(AE项目和Firebase功能)。

现在的问题是,我无法使用 gcloud app deploy 部署新版本的代码。构建日志(在GCP端)列出了以下错误:

> 步骤#3 - “分析器”:已经具有映像(使用摘要):us.gcr.io/gae-runtimes/buildpacks/java11/builder:java11_20200816_11_0_RC00
>
> 步骤#3 - “分析器”:错误:无法初始化缓存:无法创建映像缓存:访问缓存映像“us.gcr.io/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest”:连接到仓库存储“us.gcr.io/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest”:从请求“/v2/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest”拒绝权限:“最新”。

现在我无法部署任何新代码。有什么想法吗?

英文:

I created a GCP App Engine (AE) project using Java 11. Once the AE project was created, I then linked it to Firebase (as opposed to creating natively through Firebase to begin with). Everything worked fine.

Today I deleted the Firebase account thinking it would keep original AE project, since I thought it was simply an add-on to my core AE project. I was wrong. Both the AE project and the Firebase account were deleted. I restored both through the GCP admin screen and the site came back up (both the AE project and Firebase functionality).

The problem now is that I can't deploy new versions of my code with gcloud app deploy. The build logs (on GCP's end) list the following error:

> Step #3 - "analyzer": Already have image (with digest): us.gcr.io/gae-runtimes/buildpacks/java11/builder:java11_20200816_11_0_RC00
>
>Step #3 - "analyzer": ERROR: failed to initialize cache: failed to create image cache: accessing cache image "us.gcr.io/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest": connect to repo store 'us.gcr.io/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest': GET https://us.gcr.io/v2/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest: DENIED: Permission denied for "latest" from request "/v2/my-project-dev-287623/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest".

Now I'm locked out from deploying any new code. Any ideas?

答案1

得分: 7

这个问题在我为我的账户启用计费后得到了解决。请检查一下您是否已启用计费/链接计费账户到您的项目。

英文:

This issue was resolved when I enabled billing for my account. Please check if you have billing enabled/linked billing account for your project.

答案2

得分: 2

我想指出你问题中的一个误解,我在第一条消息中忘记提到它。没有将GCP项目链接到Firebase项目。Firebase项目是Google Cloud项目。这就是为什么当你删除Firebase项目时,GCP项目也会消失。这是预期的行为。你所指的链接方式实际上是将Firebase服务添加到当前的GCP项目中。

可以确定的是权限错误。你需要授予权限给Docker。此外,可能是由于'Cloud Build API'引起的,请检查是否已启用'Cloud Build API',尝试将其禁用,然后再启用它。这可能会有帮助。如果问题持续存在,请告诉我。

英文:

I want to point out a misunderstanding in your question, I forgot to mention it in my first message. There is NO link GCP project to the Firebase project. Firebase project IS a Google Cloud project. That is why when you delete the Firebase project, the GCP project gone. it is intended behavior. The way you mean link, it is actually to add Firebase services to the current GCP project

It is certain that the permission error. You need to grant permission to the docker. Also it may caused by the ' Cloud Build API', checked if ' Cloud Build API' has been enabled and try to disable it and then enable it. It may help. Let me know if the issue continues

答案3

得分: 2

如果您的计费和构建API已启用,请检查此项。试用期结束后,Google要求升级帐户以启用其服务。Google会在Cloud控制台顶部显示通知栏以进行升级。

英文:

If your billing and Build API are enabled please check this. After the end of the trial period, Google asks to Upgrade account to enable its services. Google shows a notification bar to do it on top of the Cloud Console.

答案4

得分: 0

因为在我的情况下付款失败。 上个月有一个未完成的 0.01 美元的待付款,由于最低付款额为 10 美元,付款失败了。 我提前支付了 10 美元,目前运行正常。

英文:

Due to payment failure in my case. There was a pending payment of $0.01 for previous month & payment failed as the minimum payment is $10. I have paid $10 in advance & working fine.

huangapple
  • 本文由 发表于 2020年9月4日 12:10:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/63734728.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定