英文:
Permissions error fetching application - Gcloud app deploy
问题
我正在尝试部署到 gcloud 应用程序(按照这里的步骤:https://realpython.com/python-web-applications/)。我的 Gmail 帐户是该项目的所有者(为了安全起见,我已经添加了许多其他角色,如应用引擎部署者、查看器等,尽管我认为所有者应该涵盖所有这些)。当我输入 "gcloud app deploy" 时,我收到以下错误:
错误:(gcloud.app.deploy)获取应用程序 [apps/hello-app-389902] 权限错误。请确保您有权查看项目上的应用程序,以及 XXXX@gmail.com 具有 App Engine 部署者 (roles/appengine.deployer) 角色。
我已经尝试过重新验证身份,添加更多角色,但仍然收到相同的错误。我已经搜索过,但那里发布的解决方案对我无效。
英文:
I am trying to deploy to a gcloud app (following the steps here: https://realpython.com/python-web-applications/). My gmail account is the owner of the project (and just to be safe, I've added lots of other roles like app engine deployer, viewer etc even though I think owner should cover all of them). When I enter "gcloud app deploy" I am getting the following error:
ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/hello-app-389902]. Please make sure that you have permission to view applications on the project and that XXXX@gmail.com has the App Engine Deployer (roles/appengine.deployer) role.
I've tried re-authenticating, adding more roles and I keep getting the same error. I've googled but none of the solutions posted there worked for me
答案1
得分: 0
-
确认您正在尝试使用正确的帐户部署。执行以下命令:
gcloud config list account
以获取您正在部署的当前帐户(电子邮件)。
-
如果上述不是您预期的正确电子邮件,请执行以下命令设置正确的帐户(电子邮件):
gcloud config set account <email>
-
在执行上述步骤1和/或步骤2之后,打开新的 shell/命令提示符,然后尝试再次部署(关键是在新的 shell/命令提示符中再次尝试)。
英文:
-
Confirm you're trying to deploy with the right account. Execute the command
gcloud config list account
to get the current account (email) that you're deploying with. -
If the above is not the right email you're expecting, then set the right account (email) by executing
gcloud config set account <email>
-
After executing steps 1 and/or 2 above, open a new shell/command prompt and then try deploying again (the key here is to try it again in a new shell/command prompt)
答案2
得分: 0
未启用计费服务。启用计费服务可以解决此错误。
英文:
Billing services were not enabled. Enabling billing services fixes this error
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论