Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when execute gcloud

I have error when I run google cloud command, this is the error message which I get

$ gcloud compute instances list

NAME ZONE MACHINE_TYPE INTERNAL_IP EXTERNAL_IP STATUS
ERROR: (gcloud.compute.instances.list) Some requests did not succeed:
 - Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.

I have two machine running and I already updated to new version.

like image 229
Ageng Juniarizqi Avatar asked Nov 13 '14 04:11

Ageng Juniarizqi


People also ask

What is Gcloudignore?

gcloudignore file would help by preventing the upload of any file or directory. The syntax is the same as the . gitignore file. First you could make sure gcloudignore is enabled: gcloud config list. If it is not, then you may enable it: gcloud config set gcloudignore/enabled true.

Does cloud run need a load balancer?

Cloud Run provides autoscaling, meaning that you don't necessarily need to put a Load Balancer in front of your Cloud run services (which in the case of serverless products in GCP are known as Network Endpoint Groups), as this is done automatically on your behalf: each revision is automatically scaled to the number of ...

What is Cloudrun?

Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. Cloud Run is serverless: it abstracts away all infrastructure management, so you can focus on what matters most — building great applications.

Which service are currently supported by cloud error reporting?

Stackdriver error reporting aggregates and displays errors in your cloud services. Stackdriver error reporting works with Google App Engine and Google Cloud Functions, with beta versions available for Google Compute Engine and AWS EC2.


3 Answers

I don't know if you are encountering this problem, but if you specify the project name instead of the project ID when you do "gcloud config set project " then you will currently get the "Access Not Configured" error. I've pointed it out on the #gcloud IRC so hopefully it gets fixed. There may be other issues like this so it is best to ensure your parameters are sane.

like image 57
David Aiken Avatar answered Oct 07 '22 01:10

David Aiken


If your project hasn't been marked for abuse and/or deletion, you have to enable 'Google Compute Engine' API in the Developers Console to solve the problem.

like image 45
kateroh Avatar answered Oct 07 '22 01:10

kateroh


Configure your project using following command

gcloud config set project <project-id>
like image 44
Sunil Garg Avatar answered Oct 07 '22 02:10

Sunil Garg