You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cloud Run revision fails because container still listens on 127.0.0.1 and there’s no flag to override host #832
🐛 Bug: Cloud Run revision fails because container listens on 127.0.0.1 and there’s no flag to override host
DescriptionAfter upgrading google-adk from 0.5.x to 1.0.0, every image produced by:adk deploy cloud_run …starts Uvicorn on http://127.0.0.1:$PORT instead of 0.0.0.0:$PORT.
Cloud Run’s runtime contract requires the process to listen on all interfaces, so the startup probe times out and the revision never becomes READY.
There is currently no CLI flag (--host, --bind_host, --extra_uvicorn_args, etc.) and no documented environment variable to change that behavior. Older docs reference --api_server_host/--dry-run, but those options are missing in the 1.0.0 release.
Expected behaviorRevision starts, Cloud Run health-check succeeds, and traffic routes to the READY revision.
Actual behaviorRevision remains Not Ready with error:Default STARTUP TCP probe failed … container "triana-lite-1" on port 8000.Connection failed with status DEADLINE_EXCEEDED.
I can confirm that it now works for me. For me, it was an issue of having an older version of Google ADK. When I upgraded to 1.0.0, the cloud run deploy command works. However, if you follow the docs directly, you will notice that it complains about the missing argument for AGENT, which is really just the AGENT_PATH. Docs might need to be updated. Command I used:
I encountered the same problem. The solution for me was to explicitly specify "--host 0.0.0.0" in the CMD instruction of my Dockerfile. After this change, the Cloud Run revision deployed successfully.
Activity
omarsar commentedon May 21, 2025
Ran into the same issue today. Any timeline for when this could be fixed?
boyangsvl commentedon May 22, 2025
Host should be set to 0.0.0.0 automatically when using adk deploy. At this line: https://github.com/google/adk-python/blob/main/src/google/adk/cli/cli_deploy.py#L144
@Jacksunwei to take a look. I'm not sure if adk_version > '0.5.0' is the right way to check for versions.
omarsar commentedon May 22, 2025
I can confirm that it now works for me. For me, it was an issue of having an older version of Google ADK. When I upgraded to 1.0.0, the cloud run deploy command works. However, if you follow the docs directly, you will notice that it complains about the missing argument for AGENT, which is really just the AGENT_PATH. Docs might need to be updated. Command I used:
boyangsvl commentedon May 22, 2025
Thanks @omarsar . Could you post the doc URL which has the issue?
shiro-mitsumata commentedon May 26, 2025
I encountered the same problem. The solution for me was to explicitly specify "--host 0.0.0.0" in the CMD instruction of my Dockerfile. After this change, the Cloud Run revision deployed successfully.
Jacksunwei commentedon May 28, 2025
I think it's likely your local adk version is not 1.0.0. We had host issue in 0.5.0, and fixed it in 1.0.0.
To verify, you could do
pip show google-adkSide notes, we could consider to add
adk --versionto make it easier to check locally installed version.Jacksunwei commentedon May 28, 2025
Closing it for now. Feel free to reopen if it's still not working on your side.
chore: Adds `--version` to `adk` cli.
chore: Adds `--version` to `adk` cli.
chore: Adds `--version` to `adk` cli.
chore: Adds `--version` to `adk` cli.