gcloud beta ml init-project -- Error: Project does not exist, or you do not have permission

958 Views Asked by At

I'm trying to get started with Google Machine Learning using these instructions: Getting Setup

When I run gcloud beta ml init-project I get

ERROR: (gcloud.beta.ml.init-project) Project [mnist1-151907] does not exist, or you do not have permission to access it.

I'm running this command on Google Cloud's Ubuntu 16.04 virtual machine created under my projectID mnist1-151907 and I've given this machine access to all of Google Cloud's APIs.
The log ~/.config/gcloud/logs/2016.12.23/13.14.03.742050.log says

... "error": { "code": 403, "message": Google Cloud Resource Manager API has not been used in project mnist1-151907 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=mnist1-151907 ...

I followed the log's instructions and the API is enabled, but I'm still getting the same error. Has anyone experienced this error or can offer a suggestion? Thank you.

1

There are 1 best solutions below

0
On

I was receiving the same error after enabling the API. I had to play a little re-authenticating with the project the gcloud tool. i.e. gcloud init, gcloud auth revoke and gcloud auth login