GnG IAM error

12 views
Skip to first unread message

gauthie...@blablacar.com

unread,
Sep 4, 2019, 2:04:43 PM9/4/19
to Grab n Go Loaners
Hi evryone, i have this errors when i build GnG into web prod

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

Thanks

Regards

Mike Helfrich

unread,
Sep 5, 2019, 3:47:50 AM9/5/19
to gauthie...@blablacar.com, Grab n Go Loaners
Hi,

It looks like somewhere along the way you may have missed updating the environment name.

loaner-prod is the default name we push to GitHub and is configurable in the following location:
https://github.com/google/loaner/blob/master/loaner/deployments/deploy.sh#L21 - Adjust these environments to point to the name of your GCP project(s).

The documentation for the shell script above is defined in https://github.com/google/loaner/blob/master/docs/gngsetup_part2.md specifically under "Customize the App Deployment Script".

You also may need to re-run "gcloud init" as-well to ensure it's setup with the proper user/project.

Hope this helps and let us know if you have any other questions!

Best,
Michael Helfrich

--
You received this message because you are subscribed to the Google Groups "Grab n Go Loaners" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loaner+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loaner/78072632-4d91-46b3-8802-083c323dfdf1%40googlegroups.com.


--

Michael Helfrich | mikehe...@google.com | NYC | Corporate Engineering

gauthie...@blablacar.com

unread,
Sep 5, 2019, 4:18:18 AM9/5/19
to Grab n Go Loaners
Hi,
I changed the project id in the deploy.sh configuration file and I still have the same error

ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/it-ops-grabandgo]. Please make sure you are using the correct project ID and that you have permission to view applications on the project.

Best,
Gauthier Hubert

Mike Helfrich

unread,
Sep 5, 2019, 5:09:45 AM9/5/19
to gauthie...@blablacar.com, Grab n Go Loaners
Did you prepend the apps/ to your project ID? I don't believe that is necessary. Additionally, can you confirm the command you are running? I just want to make sure I'm not missing anything. When you ran gcloud init, did you initialize as yourself and if so, do you have the proper IAM permissions (owner preferably)?

--
You received this message because you are subscribed to the Google Groups "Grab n Go Loaners" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loaner+un...@googlegroups.com.

gauthie...@blablacar.com

unread,
Sep 5, 2019, 5:46:24 AM9/5/19
to Grab n Go Loaners
This is the command for gcloud init

gauthie...@blablacar.com

unread,
Sep 5, 2019, 5:47:15 AM9/5/19
to Grab n Go Loaners
And i'm the owner of this project

Mike Helfrich

unread,
Sep 6, 2019, 6:02:18 AM9/6/19
to gauthie...@blablacar.com, Grab n Go Loaners
Great, that's definitely helpful. Your gcloud init looks correct. What command are you running to push the web app?

It should be bash deployments/deploy.sh web prod. Can you additionally confirm that your PROD variable in the deploy.sh is set to just prod=it-ops-grabandgo.

PROD="prod=it-ops-grabandgo"

--
You received this message because you are subscribed to the Google Groups "Grab n Go Loaners" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loaner+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages