Abimbola Adebayo
05/01/2024, 12:37 AMFlow run could not be submitted to infrastructure: Google Cloud Run Service Agent <mailto:service-850000352187@serverless-robot-prod.iam.gserviceaccount.com|service-850000352187@serverless-robot-prod.iam.gserviceaccount.com> must have permission to read the image, us-east1-docker.pkg.dev/prefect-org-github-actions/dockerhub-mirror/prefecthq/prefect:2-python3.9. Ensure that the provided container image URL is correct and that the above account has permission to access the image. If you just enabled the Cloud Run API, the permissions might take a few minutes to propagate. Note that the image is from project [prefect-org-github-actions], which is not the same as this project [prefect-prd-mex-cloudrun-8]. Permission must be granted to the Google Cloud Run Service Agent <mailto:service-850000352187@serverless-robot-prod.iam.gserviceaccount.com|service-850000352187@serverless-robot-prod.iam.gserviceaccount.com> from this project.
Marvin
05/01/2024, 12:38 AM<mailto:service-850000352187@serverless-robot-prod.iam.gserviceaccount.com|service-850000352187@serverless-robot-prod.iam.gserviceaccount.com>
) has appropriate permission to read the container image located at us-east1-docker.pkg.dev/prefect-org-github-actions/dockerhub-mirror/prefecthq/prefect:2-python3.9
.
2. Verify that there are no typos in the container image URL. The error message indicates that the project from which the image is being pulled (prefect-org-github-actions
) is different from your project (prefect-prd-mex-cloudrun-8
), so you will need to grant explicit permission from your project to the service account.
3. Sometimes, if you just enabled an API such as Cloud Run, it might take a few minutes for permissions to propagate. Patience can be tough to muster up, but it sometimes pays off to wait a moment.
4. You could go to the Google Cloud Console and adjust the permissions for the service account, giving it the role it needs to access the Google Container Registry or Artifact Registry as necessary.
Since the search did not return a relevant result from GitHub issues, it doesn't look like there is a recognized issue with this. You might want to double-check the permissions in the Google Cloud Console to ensure everything is set up correctly, and perhaps seek assistance from Google Cloud support if the issue persists.
For more detailed instructions, you should refer to the Google Cloud Run documentation and Prefect's documentation about push work pools:
- Google Cloud Run Documentation
- Prefect Push Work Pools
Unfortunately, my capacity for enthusiasm is rather limited, so do try to have some fun with permissions, it's quite the party, I've heard.Nate
05/01/2024, 12:38 AMNate
05/01/2024, 12:38 AMAbimbola Adebayo
05/01/2024, 12:42 AMNate
05/01/2024, 12:46 AMAbimbola Adebayo
05/01/2024, 12:47 AMEdward Park
05/01/2024, 1:14 AMAbimbola Adebayo
05/01/2024, 1:43 AMAbimbola Adebayo
05/01/2024, 1:45 AMNate
05/01/2024, 1:49 AMFlow Runs
page and filter down to runs in this work pool, if you have any old / stuck runs hanging around? you may need to delete themAbimbola Adebayo
05/01/2024, 1:56 AMAbimbola Adebayo
05/01/2024, 1:59 AMNate
05/01/2024, 1:59 AMNate
05/01/2024, 2:00 AM