[Urgent!] Docker build doesn't create new images #468

Closed
opened 2026-02-20 17:40:16 -05:00 by yindo · 4 comments
Owner

Originally created by @nikita-wayhq on GitHub (Feb 20, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use GitHub Discussions.
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

Again, we have problems with Docker build - our images don't launch.

We have a golive tomorrow morning and cannot deploy our main component: the agent.

This is very frustrating. And it already happened to us the second time within the last week:
https://github.com/langchain-ai/langgraph/issues/3382

Error Message and Stack Trace (if applicable)

Defaulted container "support-agent" out of: support-agent, redis, cloud-sql-proxy (init)
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
    run(
  File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
    server.run()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 70, in serve
    await self._serve(sockets)
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 77, in _serve
    config.load()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 435, in load
    self.loaded_app = import_from_string(self.app)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/api/langgraph_api/server.py", line 31, in <module>
ImportError: cannot import name 'configure_loopback_transports' from 'langgraph_sdk.client' (/usr/local/lib/python3.11/site-packages/langgraph_sdk/client.py)

Description

We already removed langgraph-api and langgraph-checkpoint as support suggested throughout the previous 2 times when we had this issue..

System Info

python -m langchain_core.sys_info

System Information
------------------
> OS:  Darwin
> OS Version:  Darwin Kernel Version 24.1.0: Thu Oct 10 21:06:57 PDT 2024; root:xnu-11215.41.3~3/RELEASE_ARM64_T6041
> Python Version:  3.11.5 (main, Feb  5 2025, 16:10:32) [Clang 16.0.0 (clang-1600.0.26.6)]

Package Information
-------------------
> langchain_core: 0.3.33
> langchain: 0.3.17
> langchain_community: 0.3.16
> langsmith: 0.2.11
> langchain_anthropic: 0.3.0
> langchain_openai: 0.2.10
> langchain_text_splitters: 0.3.5
> langgraph_api: 0.0.15
> langgraph_cli: 0.1.65
> langgraph_license: Installed. No version info available.
> langgraph_sdk: 0.1.48
> langgraph_storage: Installed. No version info available.

Optional packages not installed
-------------------------------
> langserve

Other Dependencies
------------------
> aiohttp: 3.11.12
> anthropic: 0.45.2
> async-timeout: Installed. No version info available.
> click: 8.1.8
> cryptography: 43.0.3
> dataclasses-json: 0.6.7
> defusedxml: 0.7.1
> httpx: 0.28.1
> httpx-sse: 0.4.0
> jsonpatch: 1.33
> jsonschema-rs: 0.25.1
> langgraph: 0.2.69
> langgraph-checkpoint: 2.0.10
> langsmith-pyo3: Installed. No version info available.
> numpy: 1.26.4
> openai: 1.55.3
> orjson: 3.10.15
> packaging: 24.2
> pydantic: 2.10.6
> pydantic-settings: 2.7.1
> pyjwt: 2.10.1
> python-dotenv: 1.0.1
> PyYAML: 6.0.2
> requests: 2.32.3
> requests-toolbelt: 1.0.0
> SQLAlchemy: 2.0.27
> sse-starlette: 2.1.3
> starlette: 0.45.3
> structlog: 24.4.0
> tenacity: 8.5.0
> tiktoken: 0.8.0
> typing-extensions: 4.12.2
> uvicorn: 0.34.0
> watchfiles: 1.0.4
> zstandard: Installed. No version info available.
Originally created by @nikita-wayhq on GitHub (Feb 20, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use GitHub Discussions. - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python Again, we have problems with Docker build - our images don't launch. We have a golive tomorrow morning and cannot deploy our main component: the agent. This is very frustrating. And it already happened to us the second time within the last week: https://github.com/langchain-ai/langgraph/issues/3382 ``` ### Error Message and Stack Trace (if applicable) ```shell Defaulted container "support-agent" out of: support-agent, redis, cloud-sql-proxy (init) return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main run( File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run server.run() File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 70, in serve await self._serve(sockets) File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 77, in _serve config.load() File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 435, in load self.loaded_app = import_from_string(self.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/api/langgraph_api/server.py", line 31, in <module> ImportError: cannot import name 'configure_loopback_transports' from 'langgraph_sdk.client' (/usr/local/lib/python3.11/site-packages/langgraph_sdk/client.py) ``` ### Description We already removed langgraph-api and langgraph-checkpoint as support suggested throughout the previous 2 times when we had this issue.. ### System Info ``` python -m langchain_core.sys_info System Information ------------------ > OS: Darwin > OS Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:06:57 PDT 2024; root:xnu-11215.41.3~3/RELEASE_ARM64_T6041 > Python Version: 3.11.5 (main, Feb 5 2025, 16:10:32) [Clang 16.0.0 (clang-1600.0.26.6)] Package Information ------------------- > langchain_core: 0.3.33 > langchain: 0.3.17 > langchain_community: 0.3.16 > langsmith: 0.2.11 > langchain_anthropic: 0.3.0 > langchain_openai: 0.2.10 > langchain_text_splitters: 0.3.5 > langgraph_api: 0.0.15 > langgraph_cli: 0.1.65 > langgraph_license: Installed. No version info available. > langgraph_sdk: 0.1.48 > langgraph_storage: Installed. No version info available. Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > aiohttp: 3.11.12 > anthropic: 0.45.2 > async-timeout: Installed. No version info available. > click: 8.1.8 > cryptography: 43.0.3 > dataclasses-json: 0.6.7 > defusedxml: 0.7.1 > httpx: 0.28.1 > httpx-sse: 0.4.0 > jsonpatch: 1.33 > jsonschema-rs: 0.25.1 > langgraph: 0.2.69 > langgraph-checkpoint: 2.0.10 > langsmith-pyo3: Installed. No version info available. > numpy: 1.26.4 > openai: 1.55.3 > orjson: 3.10.15 > packaging: 24.2 > pydantic: 2.10.6 > pydantic-settings: 2.7.1 > pyjwt: 2.10.1 > python-dotenv: 1.0.1 > PyYAML: 6.0.2 > requests: 2.32.3 > requests-toolbelt: 1.0.0 > SQLAlchemy: 2.0.27 > sse-starlette: 2.1.3 > starlette: 0.45.3 > structlog: 24.4.0 > tenacity: 8.5.0 > tiktoken: 0.8.0 > typing-extensions: 4.12.2 > uvicorn: 0.34.0 > watchfiles: 1.0.4 > zstandard: Installed. No version info available. ```
yindo closed this issue 2026-02-20 17:40:16 -05:00
Author
Owner

@hinthornw commented on GitHub (Feb 20, 2025):

Could you update your LangGraph SDK max bound - it seems like I updated the actual server deps but not the constraints that prevent your code from overwriting it with an older version.

Will cut a new base image that should update the constraints. Will be ready soon

@hinthornw commented on GitHub (Feb 20, 2025): Could you update your LangGraph SDK max bound - it seems like I updated the actual server deps but not the constraints that prevent your code from overwriting it with an older version. Will cut a new base image that should update the constraints. Will be ready soon
Author
Owner

@nikita-wayhq commented on GitHub (Feb 20, 2025):

Thanks! It helped

Can we make it more reliable? It creates a lot of stress for our team

@nikita-wayhq commented on GitHub (Feb 20, 2025): Thanks! It helped Can we make it more reliable? It creates a lot of stress for our team
Author
Owner

@hinthornw commented on GitHub (Feb 20, 2025):

New base image is now published, which should block against this particular issue.

We are adding tests to ensure the constraints.txt is updated alongside the core package to avoid this class of errros from happening in the future.

In general we recommend you refrain from pinning a particular patch version of langgraph* libs

@hinthornw commented on GitHub (Feb 20, 2025): New base image is now published, which should block against this particular issue. We are adding tests to ensure the constraints.txt is updated alongside the core package to avoid this class of errros from happening in the future. In general we recommend you refrain from pinning a particular **patch** version of langgraph* libs
Author
Owner

@hinthornw commented on GitHub (Feb 20, 2025):

LMK if you run into this again!

@hinthornw commented on GitHub (Feb 20, 2025): LMK if you run into this again!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#468