Skip to content

[build-streamlit-rag-agent-google-adk-cloud-run] Issue description #2407

Todo

Description

@infpurewhite

I tried this colab and I got an error, so Gemini told me this:
Your Cloud Build deployment failed because the default Compute Engine service account (XXXX-compute@developer.gserviceaccount.com) lacks the required IAM permissions to execute the build and write logs—a standard security restriction in newer Google Cloud projects where the default service account is no longer automatically granted the broad Editor role.

Primary Cause & Missing Roles
Missing Logs Writer Role (Explicitly flagged on your screen):
Cloud Build is using XXXX-compute@developer.gserviceaccount.com to run the build step, and it fails immediately because the account lacks roles/logging.logWriter to stream build logs to Cloud Logging.

Additional Roles Required for Source Deployment (--source .):
Even though you passed --service-account "barista-agent-sa@..." to gcloud run deploy, that flag only applies to the runtime container. During the build phase, Cloud Build still uses the default Compute Engine service account, which also needs permissions to read your uploaded source archive from Cloud Storage and push the compiled container image to Artifact Registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions