Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error: checking service account permission

I've been using google cloud for a good many years. This issue is new to me and would like to get help from the community.

The problem arose when trying to submit a job through a service account, and got encountered with this error message below. This is after everything worked smoothly in the past.

After digging around and finding service account role bindings: it turns out that the account used to call the service account has the role setup properly (re-bound, just to be sure), with "role: roles/iam.serviceAccountUser". 

Things should work, what and where went wrong?

Another account in the same project works fine to submit jobs through the same service account, so that part is fine. It only affects this specific account.

One thing might be related is the google_compute_engine public key for the affected account has been refreshed. My understanding is it is only used to remote access VM on GCP. I am not sure whether it is related to job submission through Life Sciences API. If it is related, how do I get the new public key gets recognized and updated?

Error message:
... googleapiclient.errors.HttpError: <HttpError 403 when requesting https://genomics.googleapis.com/v2alpha1/pipelines:run?alt=json returned "Error: checking service account permission: caller does not have access to act as the specified service account: .....compute@developer.gserviceaccount.com"". Details: "Error: checking service account permission: caller does not have access to act as the specified service account: "........compute@developer.gserviceaccount.com"">

Solved Solved
1 3 5,129
1 ACCEPTED SOLUTION

Got to the bottom of this.

Regardless whatever happened, the problem is gone after revoking gcloud application-default and re-login.

gcloud auth application-default revoke

gcloud auth application-default login

now everything is back to normal.

View solution in original post

3 REPLIES 3
Top Labels in this Space