简体   繁体   中英

Cloud Build Error: generic::failed_precondition: no concurrent builds quota available to create builds

I am setting up a basic pipeline using Cloud Build, based on a Github trigger but running into the following error:

Your build failed to run: generic::failed_precondition: generic::failed_precondition: no concurrent builds quota available to create builds

I checked:

  • That the region I am working with (europe-west2) has no particular limits / quotas, as per the docs

在此处输入图像描述

  • My project has billing enabled
  • I haven't reached default thresholds inadvertently by checking my quotas consumption

gcp 配额

  • And tried to cancel some of the numerous failed builds in case Cloud Build would have a retry mechanism for each one of them that would contribute to exceeding the quotas. But got Requested entity was not found , which leads me into thinking that this was a wrong assumption and therefore not a cause for trouble.

在此处输入图像描述

My cloudbuild.json FYI:

{
  "steps": [
    {
      "name": "gcr.io/cloud-builders/docker",
      "args": [
        "build",
        "-t",
        "europe-west2-docker.pkg.dev/${PROJECT_ID}/REPONAME/front-end:${COMMIT_SHA}",
        "."
      ]
    }
  ],
  "options": {
    "logging": "CLOUD_LOGGING_ONLY"
  }
}

Any idea?

Thanks,

As per your above comment

I did setup the exact same trigger in europe-west1, while keeping my artifacts repo and images in europe-west2 and had no problem there

it seems your project is under restriction. The line in doc says

Depending on usage, certain projects may be restricted to only use Cloud Build in the following regions`

Which means if the project is in restricted mode then cloud builds can be triggered in following regions only, not in other regions.

  • us-central1
  • us-west2
  • europe-west1
  • asia-east1
  • australia-southeast1
  • southamerica-east1

Maybe as your project in restrict mode,so triggers in europe-west2 is not working as europe-west2 is not there in the above list. And europe-west1 is there in the list,hence triggers are working for you when you switched your triggers to west-1 .

To get the restriction details of your project whether it is restriction mode or not i think the only channel you have to reach out is sales team or technical support where you can get additional help over there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM