Skip to content

[Bug] Local run of agentic-ai example fails out-of-the-box (compose.yaml) #23289

@matthieuEv

Description

@matthieuEv

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

There's a problem with the website

Description

Description

I followed the official Docker docs guide for agentic AI

After cloning the repo and running docker compose up, the containers start, but the application fails. I checked my Vram on my computer and as the documentation require 3.5 GB and i have 7846MB, i downgraded the model from

models:
  gemma3:
    model: ai/gemma3:4B-Q4_0
    context_size: 10000  

to

models:
  gemma3:
    model: ai/gemma3-qat:1B-Q4_K_M
    context_size: 1024  

And i'm pretty sure that this issue is not caused by the low Vram:

~/test/compose-for-agents/adk [main|✚ 1] 
11:51 $ docker compose up
[+] Running 3/4
 ⠸ gemma3 Configuring                                                                                                                                                                                                                                                                                                                      0.3s 
 ✔ Network adk_default          Created                                                                                                                                                                                                                                                                                                    0.0s 
 ✔ Container adk-mcp-gateway-1  Created                                                                                                                                                                                                                                                                                                    0.1s 
 ✔ Container adk-adk-1          Created                                                                                                                                                                                                                                                                                                    0.1s 
Attaching to adk-1, mcp-gateway-1
mcp-gateway-1  | - Reading configuration...
mcp-gateway-1  |   - Reading catalog from [https://desktop.docker.com/mcp/catalog/v2/catalog.yaml]
mcp-gateway-1  | - Configuration read in 70.142467ms
mcp-gateway-1  | - Those servers are enabled: duckduckgo
mcp-gateway-1  | - Listing MCP tools...
mcp-gateway-1  |   - Running mcp/duckduckgo with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=duckduckgo -l docker-mcp-transport=stdio]
adk-1          | Using Docker Model Runner with ai/gemma3-qat:1B-Q4_K_M
mcp-gateway-1  | - duckduckgo: [08/21/25 09:51:36] INFO     Processing request of type            server.py:523
mcp-gateway-1  | - duckduckgo:                              ListToolsRequest                                   
mcp-gateway-1  | - duckduckgo:                     INFO     Processing request of type            server.py:523
mcp-gateway-1  | - duckduckgo:                              ListPromptsRequest                                 
mcp-gateway-1  | - duckduckgo:                     INFO     Processing request of type            server.py:523
mcp-gateway-1  | - duckduckgo:                              ListResourcesRequest                               
mcp-gateway-1  | - duckduckgo:                     INFO     Processing request of type            server.py:523
mcp-gateway-1  | - duckduckgo:                              ListResourceTemplatesRequest                       
mcp-gateway-1  |   > duckduckgo: (2 tools)
mcp-gateway-1  | > 2 tools listed in 1.068692058s
mcp-gateway-1  | - Using images:
mcp-gateway-1  |   - mcp/duckduckgo@sha256:68eb20db6109f5c312a695fc5ec3386ad15d93ffb765a0b4eb1baf4328dec14f
mcp-gateway-1  | > Images pulled in 39.599371ms
mcp-gateway-1  | - Verifying images [mcp/duckduckgo]
mcp-gateway-1  | > Images verified in 1.242737488s
mcp-gateway-1  | > Initialized in 2.431169311s
mcp-gateway-1  | > Start sse server on port 8811
adk-1          | /usr/local/lib/python3.13/site-packages/google/adk/cli/fast_api.py:175: UserWarning: [EXPERIMENTAL] InMemoryCredentialService: This feature is experimental and may change or be removed in future versions without notice. It may introduce breaking changes at any time.
adk-1          |   credential_service = InMemoryCredentialService()
adk-1          | /usr/local/lib/python3.13/site-packages/google/adk/auth/credential_service/in_memory_credential_service.py:33: UserWarning: [EXPERIMENTAL] BaseCredentialService: This feature is experimental and may change or be removed in future versions without notice. It may introduce breaking changes at any time.
adk-1          |   super().__init__()
adk-1          | 2025-08-21 09:51:39,050 - DEBUG - selector_events.py:64 - Using selector: EpollSelector
adk-1          | INFO:     Started server process [1]
adk-1          | INFO:     Waiting for application startup.
adk-1          | 
adk-1          | +-----------------------------------------------------------------------------+
adk-1          | | ADK Web Server started                                                      |
adk-1          | |                                                                             |
adk-1          | | For local testing, access at http://0.0.0.0:8080.                         |
adk-1          | +-----------------------------------------------------------------------------+
adk-1          | 
adk-1          | INFO:     Application startup complete.
adk-1          | INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
adk-1          | INFO:     172.18.0.1:62650 - "GET / HTTP/1.1" 307 Temporary Redirect
adk-1          | INFO:     172.18.0.1:62650 - "GET /dev-ui/ HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62650 - "GET /dev-ui/chunk-EQDQRRRY.js HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /dev-ui/main-W7QZBYAR.js HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62658 - "GET /dev-ui/polyfills-B6TNHZQ6.js HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62650 - "GET /dev-ui/styles-4VDSPQ37.css HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /dev-ui/assets/ADK-512-color.svg HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /dev-ui/adk_favicon.svg HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /dev-ui/assets/config/runtime-config.json HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /list-apps?relative_path=./ HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "POST /apps/agents/users/user/sessions HTTP/1.1" 200 OK
adk-1          | 2025-08-21 09:51:54,021 - INFO - adk_web_server.py:457 - New session created
adk-1          | INFO:     172.18.0.1:62656 - "GET /apps/agents/eval_sets HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62650 - "GET /apps/agents/eval_results HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /apps/agents/users/user/sessions HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:62656 - "GET /apps/agents/users/user/sessions HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:55666 - "POST /run_sse HTTP/1.1" 200 OK
adk-1          | 2025-08-21 09:52:00,925 - INFO - envs.py:54 - No .env file found for agents
adk-1          | 2025-08-21 09:52:00,925 - DEBUG - agent_loader.py:201 - Loading agent agents - not in cache.
adk-1          | 2025-08-21 09:52:00,926 - DEBUG - agent_loader.py:170 - Loading .env for agent agents from /app
adk-1          | 2025-08-21 09:52:00,926 - INFO - envs.py:54 - No .env file found for agents
adk-1          | 09:52:01 - LiteLLM:DEBUG: http_handler.py:579 - Using AiohttpTransport...
adk-1          | 2025-08-21 09:52:01,426 - DEBUG - http_handler.py:579 - Using AiohttpTransport...
adk-1          | 09:52:01 - LiteLLM:DEBUG: http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 2025-08-21 09:52:01,427 - DEBUG - http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 2025-08-21 09:52:01,454 - DEBUG - _trace.py:47 - connect_tcp.started host='raw.githubusercontent.com' port=443 local_address=None timeout=5 socket_options=None
adk-1          | 2025-08-21 09:52:01,467 - DEBUG - _trace.py:47 - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x7f6dd61fc980>
adk-1          | 2025-08-21 09:52:01,467 - DEBUG - _trace.py:47 - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f6dd6174e10> server_hostname='raw.githubusercontent.com' timeout=5
adk-1          | 2025-08-21 09:52:01,473 - DEBUG - _trace.py:47 - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x7f6dd611ad50>
adk-1          | 2025-08-21 09:52:01,473 - DEBUG - _trace.py:47 - send_request_headers.started request=<Request [b'GET']>
adk-1          | 2025-08-21 09:52:01,474 - DEBUG - _trace.py:47 - send_request_headers.complete
adk-1          | 2025-08-21 09:52:01,474 - DEBUG - _trace.py:47 - send_request_body.started request=<Request [b'GET']>
adk-1          | 2025-08-21 09:52:01,475 - DEBUG - _trace.py:47 - send_request_body.complete
adk-1          | 2025-08-21 09:52:01,475 - DEBUG - _trace.py:47 - receive_response_headers.started request=<Request [b'GET']>
adk-1          | 2025-08-21 09:52:01,477 - DEBUG - _trace.py:47 - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Connection', b'keep-alive'), (b'Content-Length', b'31612'), (b'Cache-Control', b'max-age=300'), (b'Content-Security-Policy', b"default-src 'none'; style-src 'unsafe-inline'; sandbox"), (b'Content-Type', b'text/plain; charset=utf-8'), (b'ETag', b'W/"bd046c8d91e49a5725c4396c53e8b62b70a243b76b08c140f4f6e2663e677cd9"'), (b'Strict-Transport-Security', b'max-age=31536000'), (b'X-Content-Type-Options', b'nosniff'), (b'X-Frame-Options', b'deny'), (b'X-XSS-Protection', b'1; mode=block'), (b'X-GitHub-Request-Id', b'323A:30EC18:4BDA1:56A21:68A645CB'), (b'Content-Encoding', b'gzip'), (b'Accept-Ranges', b'bytes'), (b'Date', b'Thu, 21 Aug 2025 09:52:01 GMT'), (b'Via', b'1.1 varnish'), (b'X-Served-By', b'cache-rtm-ehrd2290044-RTM'), (b'X-Cache', b'HIT'), (b'X-Cache-Hits', b'3'), (b'X-Timer', b'S1755769921.477056,VS0,VE0'), (b'Vary', b'Authorization,Accept-Encoding'), (b'Access-Control-Allow-Origin', b'*'), (b'Cross-Origin-Resource-Policy', b'cross-origin'), (b'X-Fastly-Request-ID', b'6277b470fd9d2af5feb527a7b4754535a849a738'), (b'Expires', b'Thu, 21 Aug 2025 09:57:01 GMT'), (b'Source-Age', b'114')])
adk-1          | 2025-08-21 09:52:01,478 - DEBUG - _trace.py:47 - receive_response_body.started request=<Request [b'GET']>
adk-1          | 2025-08-21 09:52:01,480 - DEBUG - _trace.py:47 - receive_response_body.complete
adk-1          | 2025-08-21 09:52:01,480 - DEBUG - _trace.py:47 - response_closed.started
adk-1          | 2025-08-21 09:52:01,480 - DEBUG - _trace.py:47 - response_closed.complete
adk-1          | 2025-08-21 09:52:01,481 - DEBUG - _trace.py:47 - close.started
adk-1          | 2025-08-21 09:52:01,481 - DEBUG - _trace.py:47 - close.complete
adk-1          | 09:52:01 - LiteLLM:DEBUG: litellm_logging.py:179 - [Non-Blocking] Unable to import GenericAPILogger - LiteLLM Enterprise Feature - No module named 'litellm_enterprise'
adk-1          | 2025-08-21 09:52:01,953 - DEBUG - litellm_logging.py:179 - [Non-Blocking] Unable to import GenericAPILogger - LiteLLM Enterprise Feature - No module named 'litellm_enterprise'
adk-1          | 09:52:02 - LiteLLM:DEBUG: http_handler.py:579 - Using AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,265 - DEBUG - http_handler.py:579 - Using AiohttpTransport...
adk-1          | 09:52:02 - LiteLLM:DEBUG: http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,266 - DEBUG - http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 09:52:02 - LiteLLM:DEBUG: http_handler.py:579 - Using AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,274 - DEBUG - http_handler.py:579 - Using AiohttpTransport...
adk-1          | 09:52:02 - LiteLLM:DEBUG: http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,274 - DEBUG - http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 09:52:02 - LiteLLM:DEBUG: http_handler.py:579 - Using AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,281 - DEBUG - http_handler.py:579 - Using AiohttpTransport...
adk-1          | 09:52:02 - LiteLLM:DEBUG: http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,281 - DEBUG - http_handler.py:636 - Creating AiohttpTransport...
adk-1          | 2025-08-21 09:52:02,299 - google_adk.google.adk.cli.utils.agent_loader - DEBUG - Module agents has no root_agent. Trying next pattern.
adk-1          | 2025-08-21 09:52:02,299 - google_adk.google.adk.cli.utils.agent_loader - INFO - Found root_agent in agents.agent
adk-1          | 2025-08-21 09:52:02,320 - google_adk.google.adk.tools.mcp_tool.mcp_session_manager - DEBUG - Created new session: session_no_headers
mcp-gateway-1  | - Client initialized:  
adk-1          | /usr/local/lib/python3.13/site-packages/google/adk/tools/mcp_tool/mcp_tool.py:87: UserWarning: [EXPERIMENTAL] BaseAuthenticatedTool: This feature is experimental and may change or be removed in future versions without notice. It may introduce breaking changes at any time.
adk-1          |   super().__init__(
adk-1          | 2025-08-21 09:52:02,325 - google_adk.google.adk.tools.base_authenticated_tool - WARNING - auth_config or auth_config.auth_scheme is missing. Will skip authentication.Using FunctionTool instead if authentication is not required.
adk-1          | 2025-08-21 09:52:02,326 - google_adk.google.adk.tools.base_authenticated_tool - WARNING - auth_config or auth_config.auth_scheme is missing. Will skip authentication.Using FunctionTool instead if authentication is not required.
adk-1          | 2025-08-21 09:52:02,328 - google_adk.google.adk.models.lite_llm - DEBUG - 
adk-1          | LLM Request:
adk-1          | -----------------------------------------------------------
adk-1          | System Instruction:
adk-1          | 
adk-1          | You are a professional investigative journalist, excelling at critical thinking and verifying information before printed to a highly-trustworthy publication.
adk-1          | In this task you are given a question-answer pair to be printed to the publication. The publication editor tasked you to double-check the answer text.
adk-1          | 
adk-1          | # Your task
adk-1          | 
adk-1          | Your task involves three key steps: First, identifying all CLAIMS presented in the answer. Second, determining the reliability of each CLAIM. And lastly, provide an overall assessment.
adk-1          | 
adk-1          | ## Step 1: Identify the CLAIMS
adk-1          | 
adk-1          | Carefully read the provided answer text. Extract every distinct CLAIM made within the answer. A CLAIM can be a statement of fact about the world or a logical argument presented to support a point.
adk-1          | 
adk-1          | ## Step 2: Verify each CLAIM
adk-1          | 
adk-1          | For each CLAIM you identified in Step 1, perform the following:
adk-1          | 
adk-1          | * Consider the Context: Take into account the original question and any other CLAIMS already identified within the answer.
adk-1          | * Consult External Sources: You MUST use your search tool to search the web to find evidence that supports or contradicts the CLAIM. Aim to consult reliable and authoritative sources.
adk-1          | * Determine the VERDICT: Based on your evaluation, assign one of the following verdicts to the CLAIM:
adk-1          |     * Accurate: The information presented in the CLAIM is correct, complete, and consistent with the provided context and reliable sources.
adk-1          |     * Inaccurate: The information presented in the CLAIM contains errors, omissions, or inconsistencies when compared to the provided context and reliable sources.
adk-1          |     * Disputed: Reliable and authoritative sources offer conflicting information regarding the CLAIM, indicating a lack of definitive agreement on the objective information.
adk-1          |     * Unsupported: Despite your search efforts, no reliable source can be found to substantiate the information presented in the CLAIM.
adk-1          |     * Not Applicable: The CLAIM expresses a subjective opinion, personal belief, or pertains to fictional content that does not require external verification.
adk-1          | * Provide a JUSTIFICATION: For each verdict, clearly explain the reasoning behind your assessment. Reference the sources you consulted or explain why the verdict "Not Applicable" was chosen.
adk-1          | 
adk-1          | ## Step 3: Provide an overall assessment
adk-1          | 
adk-1          | After you have evaluated each individual CLAIM, provide an OVERALL VERDICT for the entire answer text, and an OVERALL JUSTIFICATION for your overall verdict. Explain how the evaluation of the individual CLAIMS led you to this overall assessment and whether the answer as a whole successfully addresses the original question.
adk-1          | 
adk-1          | # Tips
adk-1          | 
adk-1          | Your work is iterative. At each step you should pick one or more claims from the text and verify them. Then, continue to the next claim or claims. You may rely on previous claims to verify the current claim.
adk-1          | 
adk-1          | There are various actions you can take to help you with the verification:
adk-1          |   * You must not use your own knowledge to verify pieces of information in the text. All factual claims MUST be verified with Search tool.
adk-1          |   * You may spot the information that doesn't require fact-checking and mark it as "Not Applicable".
adk-1          |   * You MUST search the web to find information that supports or contradicts the claim.
adk-1          |   * You may conduct multiple searches per claim if acquired evidence was insufficient.
adk-1          |   * In your reasoning please refer to the evidence you have collected so far via their squared brackets indices.
adk-1          |   * You may check the context to verify if the claim is consistent with the context. Read the context carefully to idenfity specific user instructions that the text should follow, facts that the text should be faithful to, etc.
adk-1          |   * You should draw your final conclusion on the entire text after you acquired all the information you needed.
adk-1          | 
adk-1          | # Output format
adk-1          | 
adk-1          | The last block of your output MUST be a Markdown-formatted list, summarizing your verification result. For each CLAIM you verified, you should output the claim (as a standalone statement), the corresponding part in the answer text, the verdict, and the justification.
adk-1          | Put the list of URLs of the sources you used to verify the claim, by the end of the justification, indexed accordingly.
adk-1          | 
adk-1          | Here is the question and answer you are going to double check:
adk-1          | 
adk-1          | 
adk-1          | You are an agent. Your internal name is "critic_agent".
adk-1          | -----------------------------------------------------------
adk-1          | Contents:
adk-1          | {"parts":[{"text":"hello world"}],"role":"user"}
adk-1          | -----------------------------------------------------------
adk-1          | Functions:
adk-1          | search: {'max_results': {'default': 10, 'title': 'Max Results', 'type': <Type.INTEGER: 'INTEGER'>}, 'query': {'title': 'Query', 'type': <Type.STRING: 'STRING'>}} -> None
adk-1          | -----------------------------------------------------------
adk-1          | 
adk-1          | 2025-08-21 09:52:02,472 - openai._base_client - INFO - Retrying request to /chat/completions in 0.468180 seconds
adk-1          | 2025-08-21 09:52:02,945 - openai._base_client - INFO - Retrying request to /chat/completions in 0.810375 seconds
adk-1          | 
adk-1          | Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
adk-1          | LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.
adk-1          | 
adk-1          | 2025-08-21 09:52:03,829 - google_adk.google.adk.cli.adk_web_server - ERROR - Error in event_generator: litellm.InternalServerError: InternalServerError: OpenAIException - Connection error.
adk-1          | Traceback (most recent call last):
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1268, in _wrap_create_connection
adk-1          |     sock = await aiohappyeyeballs.start_connection(
adk-1          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<6 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 122, in start_connection
adk-1          |     raise first_exception
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 73, in start_connection
adk-1          |     sock = await _connect_sock(
adk-1          |            ^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<6 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock
adk-1          |     await loop.sock_connect(sock, address)
adk-1          |   File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect
adk-1          |     return await fut
adk-1          |            ^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb
adk-1          |     raise OSError(err, f'Connect call failed {address}')
adk-1          | ConnectionRefusedError: [Errno 111] Connect call failed ('172.17.0.1', 12434)
adk-1          | 
adk-1          | The above exception was the direct cause of the following exception:
adk-1          | 
adk-1          | Traceback (most recent call last):
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/custom_httpx/aiohttp_transport.py", line 59, in map_aiohttp_exceptions
adk-1          |     yield
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/custom_httpx/aiohttp_transport.py", line 213, in handle_async_request
adk-1          |     response = await client_session.request(
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<13 lines>...
adk-1          |     ).__aenter__()
adk-1          |     ^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1488, in __aenter__
adk-1          |     self._resp: _RetType = await self._coro
adk-1          |                            ^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 770, in _request
adk-1          |     resp = await handler(req)
adk-1          |            ^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 725, in _connect_and_send_request
adk-1          |     conn = await self._connector.connect(
adk-1          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |         req, traces=traces, timeout=real_timeout
adk-1          |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 642, in connect
adk-1          |     proto = await self._create_connection(req, traces, timeout)
adk-1          |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1209, in _create_connection
adk-1          |     _, proto = await self._create_direct_connection(req, traces, timeout)
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1581, in _create_direct_connection
adk-1          |     raise last_exc
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1550, in _create_direct_connection
adk-1          |     transp, proto = await self._wrap_create_connection(
adk-1          |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<7 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1291, in _wrap_create_connection
adk-1          |     raise client_error(req.connection_key, exc) from exc
adk-1          | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 172.17.0.1:12434 ssl:default [Connect call failed ('172.17.0.1', 12434)]
adk-1          | 
adk-1          | The above exception was the direct cause of the following exception:
adk-1          | 
adk-1          | Traceback (most recent call last):
adk-1          |   File "/usr/local/lib/python3.13/site-packages/openai/_base_client.py", line 1529, in request
adk-1          |     response = await self._client.send(
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<3 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1629, in send
adk-1          |     response = await self._send_handling_auth(
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<4 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
adk-1          |     response = await self._send_handling_redirects(
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<3 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
adk-1          |     response = await self._send_single_request(request)
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1730, in _send_single_request
adk-1          |     response = await transport.handle_async_request(request)
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/custom_httpx/aiohttp_transport.py", line 206, in handle_async_request
adk-1          |     with map_aiohttp_exceptions():
adk-1          |          ~~~~~~~~~~~~~~~~~~~~~~^^
adk-1          |   File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__
adk-1          |     self.gen.throw(value)
adk-1          |     ~~~~~~~~~~~~~~^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/custom_httpx/aiohttp_transport.py", line 73, in map_aiohttp_exceptions
adk-1          |     raise mapped_exc(message) from exc
adk-1          | httpx.ConnectError: Cannot connect to host 172.17.0.1:12434 ssl:default [Connect call failed ('172.17.0.1', 12434)]
adk-1          | 
adk-1          | The above exception was the direct cause of the following exception:
adk-1          | 
adk-1          | Traceback (most recent call last):
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/openai/openai.py", line 812, in acompletion
adk-1          |     headers, response = await self.make_openai_chat_completion_request(
adk-1          |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |     ...<4 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py", line 135, in async_wrapper
adk-1          |     result = await func(*args, **kwargs)
adk-1          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/openai/openai.py", line 447, in make_openai_chat_completion_request
adk-1          |     raise e
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/openai/openai.py", line 429, in make_openai_chat_completion_request
adk-1          |     await openai_aclient.chat.completions.with_raw_response.create(
adk-1          |         **data, timeout=timeout
adk-1          |     )
adk-1          |   File "/usr/local/lib/python3.13/site-packages/openai/_legacy_response.py", line 381, in wrapped
adk-1          |     return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
adk-1          |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/openai/resources/chat/completions/completions.py", line 2583, in create
adk-1          |     return await self._post(
adk-1          |            ^^^^^^^^^^^^^^^^^
adk-1          |     ...<48 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/openai/_base_client.py", line 1794, in post
adk-1          |     return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
adk-1          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/openai/_base_client.py", line 1561, in request
adk-1          |     raise APIConnectionError(request=request) from err
adk-1          | openai.APIConnectionError: Connection error.
adk-1          | 
adk-1          | During handling of the above exception, another exception occurred:
adk-1          | 
adk-1          | Traceback (most recent call last):
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/main.py", line 544, in acompletion
adk-1          |     response = await init_response
adk-1          |                ^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/llms/openai/openai.py", line 859, in acompletion
adk-1          |     raise OpenAIError(
adk-1          |     ...<4 lines>...
adk-1          |     )
adk-1          | litellm.llms.openai.common_utils.OpenAIError: Connection error.
adk-1          | 
adk-1          | During handling of the above exception, another exception occurred:
adk-1          | 
adk-1          | Traceback (most recent call last):
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/cli/adk_web_server.py", line 873, in event_generator
adk-1          |     async for event in agen:
adk-1          |     ...<7 lines>...
adk-1          |       yield f"data: {sse_event}\n\n"
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/runners.py", line 250, in run_async
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/runners.py", line 246, in _run_with_trace
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/runners.py", line 290, in _exec_with_plugin
adk-1          |     async for event in agen:
adk-1          |     ...<8 lines>...
adk-1          |       yield (modified_event if modified_event else event)
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/runners.py", line 240, in execute
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/agents/base_agent.py", line 236, in run_async
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/agents/base_agent.py", line 226, in _run_with_trace
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/agents/sequential_agent.py", line 46, in _run_async_impl
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/agents/base_agent.py", line 236, in run_async
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/agents/base_agent.py", line 226, in _run_with_trace
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/agents/llm_agent.py", line 288, in _run_async_impl
adk-1          |     async for event in agen:
adk-1          |       self.__maybe_save_output_to_state(event)
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 346, in run_async
adk-1          |     async for event in agen:
adk-1          |       last_event = event
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 382, in _run_one_step_async
adk-1          |     async for llm_response in agen:
adk-1          |     ...<13 lines>...
adk-1          |           yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 704, in _call_llm_async
adk-1          |     async for event in agen:
adk-1          |       yield event
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 688, in _call_llm_with_tracing
adk-1          |     async for llm_response in agen:
adk-1          |     ...<12 lines>...
adk-1          |       yield llm_response
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 844, in _run_and_handle_error
adk-1          |     raise model_error
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 828, in _run_and_handle_error
adk-1          |     async for response in agen:
adk-1          |       yield response
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/models/lite_llm.py", line 848, in generate_content_async
adk-1          |     response = await self.llm_client.acompletion(**completion_args)
adk-1          |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/google/adk/models/lite_llm.py", line 105, in acompletion
adk-1          |     return await acompletion(
adk-1          |            ^^^^^^^^^^^^^^^^^^
adk-1          |     ...<4 lines>...
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/utils.py", line 1586, in wrapper_async
adk-1          |     raise e
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/utils.py", line 1437, in wrapper_async
adk-1          |     result = await original_function(*args, **kwargs)
adk-1          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/main.py", line 563, in acompletion
adk-1          |     raise exception_type(
adk-1          |           ~~~~~~~~~~~~~~^
adk-1          |         model=model,
adk-1          |         ^^^^^^^^^^^^
adk-1          |     ...<3 lines>...
adk-1          |         extra_kwargs=kwargs,
adk-1          |         ^^^^^^^^^^^^^^^^^^^^
adk-1          |     )
adk-1          |     ^
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2301, in exception_type
adk-1          |     raise e
adk-1          |   File "/usr/local/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 501, in exception_type
adk-1          |     raise InternalServerError(
adk-1          |     ...<5 lines>...
adk-1          |     )
adk-1          | litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - Connection error.
adk-1          | INFO:     172.18.0.1:55666 - "GET /apps/agents/users/user/sessions/88f3f88d-edf7-4167-ad9e-4385f32f4a55 HTTP/1.1" 200 OK
adk-1          | INFO:     172.18.0.1:55674 - "GET /debug/trace/session/88f3f88d-edf7-4167-ad9e-4385f32f4a55 HTTP/1.1" 200 OK

Location

https://docs.docker.com/guides/agentic-ai/

Suggestion

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions