Reputation: 1162
I am running into this error while deploying my django(2.1) app with python(3.5) to appengine. Before, I was using python 2 and python27 in app.yaml, there was no such error, but now when I have python 3.5.2 and python37 in my app.yaml, I am running into this error after "gcloud app deploy". Do I really have to enable billing or am I doing something wrong? Is there a way out? The full error is
ERROR: (gcloud.app.deploy) Error Response: [7] Access Not Configured. Cloud Build has not been used in project chaipani-217815 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudbuild.googleapis.com/overview?project=chaipani-217815 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Upvotes: 19
Views: 20641
Reputation: 145
Had this issue before. It can simply be a billing issue.
Solution:
TLDR; Turn off and on again.
Upvotes: 2
Reputation: 5366
I solved this problem using the following commands at the root directory of my project:
gcloud init
gcloud components update
After I updated the project settings with my GCP account the problem was solved.
Upvotes: 5
Reputation: 1156
We ran in to an issue where an incomplete deploy (that hung and had to be aborted) had errors setting some internal service account permissions and kept getting the "Cloud Build has not been used in project before or it is disabled" error despite the Cloud Build API being enabled and a billing account set up.
We solved the issue by disabling the Cloud Build API, waiting a couple hours (to ensure the service accounts were deleted), and then re-enabling.
Upvotes: 6
Reputation: 834
You go that link then click "Enable" button. A popup showed, then click to Set account. (see the picture)
Upvotes: 5
Reputation: 21580
You must enable billing first, then you can enable the Cloud Build service for your project.
Upvotes: 15