Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcloud app deploy ERROR: Permissions error fetching application [apps/<PROJECT_NAME>]

I'm deploying a simple Python 3 App Engine App (Flexi environment) by issuing following command: gcloud app deploy --version=ver0-1

and getting following error: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/<PROJECT_NAME>]. Please make sure you are using the correct project ID and that you have permission to view applications on the project.

I can confirm the account and project are correctly setup when I issued following command: gcloud config list

[core]
account = GOOGLE_ACCOUNT_EMAIL_ID
disable_usage_reporting = True
project = PROJECT_NAME_I_WANT_TO_DEPLOY

Your active configuration is: [default]

Is there anything i'm missing on Permissions front? Im GCP Project Owner. Any addition API I need to enable in order to work with App Engine deployment, in Flexi environment

Thanks for any clue!

like image 646
Vibhor Jain Avatar asked Apr 11 '18 23:04

Vibhor Jain


2 Answers

SOLVED! Was using project name instead of ID

like image 98
Vibhor Jain Avatar answered Oct 17 '22 17:10

Vibhor Jain


Solved this by running the following :

1. `gcloud config unset project`
2. `gcloud config set project PROJECT_ID`

where PROJECT_ID is your project id,

to see the correct project id, you may want to run gcloud projects list.

like image 3
user13971404 Avatar answered Oct 17 '22 16:10

user13971404