部署到Google的Compute Engine失败:检索App Engine服务帐户时出错 [英] Deployment to Google’s Compute Engine fails: Error retrieving the App Engine service account
问题描述
在我删除了一些值(不记得是哪个值)之后,在我的项目配置中(在 Developer Console 中),我无法将应用程序部署到 Compute Engine 实例.我已经使用相同的配置成功部署了数十次,但是在开发人员控制台中删除了一些值或进行了我认为较小的其他调整后,使用Maven插件v2.0.9.95.v20160203的部署失败了,
After I’ve deleted some values (do not remember which) in my project configuration (in the Developer Console) I cannot deploy an app to a Compute Engine instance. I’ve deployed the same code using the same configuration dozens of times successfully but after deleting some values in the Developer Console or doing some other adjustments that I considered minor, the deployment, using Maven plugin v2.0.9.95.v20160203, fails with
[INFO] Beginning deployment...
[INFO] WARNING: If this is your first deployment, please try again.
[INFO] ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:
[INFO] Bad Request Unexpected HTTP status 400.
[INFO] Failed Project Preparation (app_id='s~some-id'). Error retrieving the App Engine service account.
[ERROR] Error: gcloud app command with exit code : 1
我跑步
mvn clean validate gcloud:deploy
与其他项目不同,我没有两个帐户
Unlike in some other of my projects I do not have both of the accounts
- App Engine默认服务帐户-some-id@appspot.gserviceaccount.com
- Compute Engine默认服务帐户-some-id-compute@developer.gserviceaccount.com
…在我的权限部分中,但只有2.帐户.
…in my Permissions section but only the 2. account.
推荐答案
也许您删除了App Engine服务帐户.要再次创建它,您可以转到项目的权限部分并添加具有电子邮件YOUR-PROJECT-ID@appspot.gserviceaccount.com的新成员(替换为您的真实项目ID)并具有可以编辑"权限.
Maybe you deleted your App Engine service account. To create it again, you can go to the Permissions section of your project and add a new member with the email YOUR-PROJECT-ID@appspot.gserviceaccount.com (replace with your real project id) and "Can Edit" permissions.
这篇关于部署到Google的Compute Engine失败:检索App Engine服务帐户时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!