ERROR: (gcloud.beta.functions.deploy) … message=[The caller does not have permission]

1,991 views
Skip to first unread message

Anish Karandikar

unread,
Aug 17, 2018, 4:57:43 PM8/17/18
to Google Cloud Developers
Hi folks,

Crossposting here just in case:



I am trying to deploy code from this repo:


in Google Cloud Build. My cloudbuild.yaml file contents are:

steps:
  args: ['beta', 'functions', 'deploy', 'screenshot', '--trigger-http', '--runtime', 'nodejs8', '--memory', '1024MB']


I have given the following roles to my Cloud Build Service account (****@cloudbuild.gserviceaccount.com):
  • Cloud Build Service Account
  • Cloud Functions Developer

Yet, in my Cloud Build log I see the following error:

starting build "1f04522c-fe60-4a25-a4a8-d70e496e2821"

FETCHSOURCE
/ [0 files][    0.0 B/  835.0 B]                                                
/ [1 files][  835.0 B/  835.0 B]                                                
Operation completed over 1 objects/835.0 B.                                      
tar: Substituting `.' for empty member name
BUILD
Already have image (with digest): gcr.io/cloud-builders/gcloud
ERROR: (gcloud.beta.functions.deploy) ResponseError: status=[403], code=[Forbidden], message=[The caller does not have permission]
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: exit status 1


What am I missing?

Katayoon (Cloud Platform Support)

unread,
Aug 17, 2018, 7:53:40 PM8/17/18
to google-c...@googlegroups.com

As you mentioned, this post is a duplicate of this post you put in Stack Overflow. In order to avoid duplicating efforts we will let you work with the thread in the Stack Overflow.


Note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions. For technical questions you should post your full detailed question to Stack Overflow.
Reply all
Reply to author
Forward
0 new messages