GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst
Vertex AI "403 Permission denied on resource project" error
- Dominant language
- Jupyter Notebook
- Stars
- 8.6k
- Forks
- 6.1k
- Avg merge
- 4h 44m
- Merged PRs (30d)
- 2
Description
Hi, I was testing [courses/ai-for-time-series/notebooks/03-cloud-training.ipynb](https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/ai-for-time-series/notebooks/03-cloud-training.ipynb), but I met some permission errors with [Python SDK for Vertex AI](https://googleapis.dev/python/aiplatform/latest/index.html) after running the following code cell:
`job = aiplatform.CustomTrainingJob(
display_name=JOB_NAME,
script_path=f"{TRAINER_DIR}/task.py",
container_uri=TRAIN_IMAGE,
model_serving_container_image_uri=DEPLOY_IMAGE,
)`
`model = job.run(
model_display_name=MODEL_DISPLAY_NAME,
args=CMDARGS,
)`
The errors are:
`
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "Permission denied on resource project My First Project."`
`PermissionDenied: 403 Permission denied on resource project My First Project. [links {
description: "Google developer console API key"
url: "https://console.developers.google.com/project/My First Project/apiui/credential"
}
, reason: "CONSUMER_INVALID"
domain: "googleapis.com"
metadata {
key: "consumer"
value: "projects/My First Project"
}
metadata {
key: "service"
value: "aiplatform.googleapis.com"
}`
So what is the problem? thanks!
Contributor guide
Assessment
This issue has not been assessed yet.