# Deployment fails

**URL:** <https://forum.langchain.com/t/deployment-fails/1324>\
**Category:** Deployment\
**Tags:** cloud, python-help\
**Created:** [August 23, 2025, 9:18pm UTC](https://forum.langchain.com/t/deployment-fails/1324 "2025-08-23T21:18:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tezer](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/tezer/32/691_2.png) [@tezer](https://forum.langchain.com/u/tezer)\
**Post date:** [August 23, 2025, 9:18pm UTC](https://forum.langchain.com/t/deployment-fails/1324/1 "2025-08-23T21:18:10Z")

</div>

Hi  
I am trying to deploy my code, but it fails with the error (from the log).  
I have no idea what might be wrong with my code and what I need to fix.

Please, help.

`8/24/2025, 12:00:38 AM`  
`[INFO] Using auth of type=langsmith`  
`8/24/2025, 12:00:38 AM`  
`[INFO] Using langgraph_runtime_postgres`  
`8/24/2025, 12:00:34 AM`  
`[ERROR] Application startup failed. Exiting.`  
`8/24/2025, 12:00:34 AM`  
`[ERROR] Traceback (most recent call last):`  
`File “/usr/local/lib/python3.11/site-packages/starlette/routing.py”, line 694, in lifespan`  
`async with self.lifespan_context(app) as maybe_state:`  
`File “/usr/local/lib/python3.11/contextlib.py”, line 210, in ` **`aenter`**  
`return await anext(self.gen)`  
`^^^^^^^^^^^^^^^^^^^^^`  
`File “/storage/langgraph_runtime_postgres/lifespan.py”, line 57, in lifespan`  
`File “/storage/langgraph_runtime_postgres/database.py”, line 224, in start_pool`  
`File “/storage/langgraph_runtime_postgres/database.py”, line 206, in migrate_vector_index`  
`File “/storage/langgraph_runtime_postgres/store.py”, line 132, in set_store_config`  
`File “/api/langgraph_api/graph.py”, line 662, in resolve_embeddings`  
`ValueError: Could not load LangChain embeddings ‘openai:text-embedding-3-small’. Loading embeddings by provider:identifier requires the langchain package (>=0.3.9). Install it with: pip install ‘langchain>=0.3.9’ or specify ‘embed’ as a path to a variable in a Python file instead.`  
`8/24/2025, 12:00:34 AM`  
`[INFO] Applied database migration`

Here is my langgraph.json file:

`{ "python_version": "3.11", "dependencies": ["./eaia"], "graphs": { "main": "./eaia/main/graph.py:graph", "cron": "./eaia/cron_graph.py:graph", "general_reflection_graph": "./eaia/reflection_graphs.py:general_reflection_graph", "multi_reflection_graph": "./eaia/reflection_graphs.py:multi_reflection_graph" }, "env": "./.env", "store": { "index": { "embed": "openai:text-embedding-3-small", "dims": 1536 } } }`
