Nab*_*ren 2 google-api google-developers-console
尝试通过https://code.google.com/apis/console为Google API创建新项目时出错
我希望这个错误是暂时的,但我现在已经无法创建一个新项目了几个星期.
错误似乎已经改变,因为它曾经包含服务器IP信息和许多其他数据.删除了一些可能的私人信息的示例:
APPLICATION_ERROR; google.cloudresourcemanager.projects.v1beta1/DeveloperProjects.CreateProject; com.google.apps.framework.request.StatusException:generic :: FAILED_PRECONDITION :; AppErrorCode = 9; StartTimeMs = 1489595147198; tcp; Deadline(sec)= 50.0; ResFormat = UNCOMPRESSED; ServerTimeSec = 0.027545452117919922; LogBytes = 256; FailFast; EffSecLevel = none; ReqFormat = UNCOMPRESSED; ReqID = 已删除 ; GlobalID = 已删除 ; Server = ip:port
现在错误要短得多,尽管似乎仍然与相同的原因有关:
com.google.apps.framework.request.StatusException:generic :: FAILED_PRECONDITION:
仪表板中的微调器似乎永远旋转,而几秒钟后错误会出现在警报下方.我尝试了很多项目名称,所有项目都失败并出现同样的错误.
是否有某种类型的配额我错过了阻止这种情况?配额菜单项要求我选择一个项目,我没有.
单击错误会将我带到包含以下消息的页面:
您无权对所选资源执行操作.
小智 6
确保为尝试创建项目的用户启用了Google Developers Console.
Admin.google.com>应用>其他Google服务> Google Developers Console,并为需要它的任何组织或用户启用.
除了@AndrewL 在他的解决方案中提供的原因之外,似乎还有另一个可能的原因。
简短回答:
当我尝试通过 Terraform 将新的 GCP 项目与我们的结算帐户相关联时,我遇到了同样的错误。我们的结算帐户的默认限制为 5 个项目(我们已经遇到过),这阻止了新帐户的关联并生成了Error 400: Precondition check failed., failedPreconditionerror
消息。为了解决这个问题,我必须先删除/删除一个已经关联的项目,然后才能添加一个新项目。
长答案:
这是我在 Terraform 中遇到的错误消息(敏感数据和 ID 已编辑):
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ module.<MY MODULE PATH>.project
billing_account: "" => "<MY BILLING ACCOUNT ID>"
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.<MY MODULE PATH>.project: Modifying... (ID: <MY PROJECT ID>)
billing_account: "" => "<MY BILLING ACCOUNT ID>"
Error: Error applying plan:
1 error(s) occurred:
* module.<MY MODULE PATH>.project: 1 error(s) occurred:
* google_project.project: Error setting billing account "<MY BILLING ACCOUNT ID>" for project "projects/<MY PROJECT ID>": googleapi: Error 400: Precondition check failed., failedPrecondition
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Run Code Online (Sandbox Code Playgroud)
我的结算帐户最多有 5 个项目。作为测试,我删除了其中一个项目,然后再次运行 Terraform。然后它成功地将新项目添加到计费帐户。为了仔细检查,我尝试将另一个新项目添加到计费帐户(将金额推到 6),然后再次收到相同的错误消息。
直接删除关联项目之一也有效。
理所当然地,为您的结算帐号的关联项目请求提高限额也可以解决此问题。
归档时间: |
|
查看次数: |
5284 次 |
最近记录: |