4
votes

I cannot seem to deploy/run any Google Cloud Run services.

I have attempted this from multiple accounts (with billing on all accounts and projects), created fresh projects in each account, added every permission I could find to try to get around this.

I've built my own container based on the Hello World example from here: https://cloud.google.com/run/docs/quickstarts/build-and-deploy

Trying to deploy:

helloworld-csharp>gcloud run deploy --image gcr.io/[Project ID]/helloworld --platform managed
Service name (helloworld):
Deploying container to Cloud Run service [helloworld] in project [Project ID] region [us-west1]
Deploying...
  Creating Revision... Cloud Run error: Internal system error. Missing necessary permission for service-[ID]@serverless-robot-prod.iam.gserviceaccount.com on resource [Project ID]. Please visit https://cloud.google.com/run
  /docs/troubleshooting for in-depth troubleshooting documentation....failed
Deployment failed
ERROR: (gcloud.run.deploy) Cloud Run error: Internal system error. Missing necessary permission for service-[ID]@serverless-robot-prod.iam.gserviceaccount.com on resource [Project ID]. Please visit https://cloud.google.com/run/docs/troubleshooting for in-depth troubleshooting documentation.

Trying to deploy the simple 'hello' example here from the web console leaves me with the same error:

Cloud Run error: Internal system error. Missing necessary permission for service-[ID]@serverless-robot-prod.iam.gserviceaccount.com on resource [Project ID]. Please visit https(...)cloud.google.com/run/docs/troubleshooting for in-depth troubleshooting documentation.

I have the following users in the project, as they were auto-setup and configured when I enabled the API:

[ID]-compute@developer.gserviceaccount.com  Compute Engine default service account  
[ID]@cloudbuild.gserviceaccount.com     Cloud Build Service Account
[ID]@cloudservices.gserviceaccount.com  Google APIs Service Agent 

service-[ID]@compute-system.iam.gserviceaccount.com Compute Engine Service Agent
service-[ID]@gcp-sa-cloudbuild.iam.gserviceaccount.com  Cloud Build Service Account
service-[ID]@serverless-robot-prod.iam.gserviceaccount.com  Google Cloud Run Service Agent
1
Had to keep removing content of my question to get it un flagged as 'spam'. The prebuilt container I tried to deploy via the web console was the 'hello' container from here; cloud.google.com/run/docs/quickstarts/prebuilt-deploy - Nate S
This is happening to me as well. Based on previous times this was asked, it seems like it's an issue with Cloud Run - Moshe G
Yea. That seems to be the case. Were this not my first go at setting this up I’d be more inclined to blame google. Makes me a little ‘happy’ I’m not the only one at the moment. - Nate S
It seems to be fixed now. I started from scratch and it's working now. - Moshe G
Does the project ID is the same between the host project (where you deploy your Cloud Run service) and the container registry location (here gcr.io/PROJECT_ID/....)? - guillaume blaquiere

1 Answers

0
votes

Yes, it seems it was indeed a Google issue, I didn't change anything, just went back to the console and I can start all my test containers without any issue now...