Failed to start wren-ai-service
Describe the bug Using docker-compose to startup wren-ai-service failed. version: 0.14.0
Relevant log output wren-ai-service-1 | ERROR: Traceback (most recent call last): wren-ai-service-1 | File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan wren-ai-service-1 | async with self.lifespan_context(app) as maybe_state: wren-ai-service-1 | File "/usr/local/lib/python3.12/contextlib.py", line 204, in aenter wren-ai-service-1 | return await anext(self.gen) wren-ai-service-1 | ^^^^^^^^^^^^^^^^^^^^^ wren-ai-service-1 | File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan wren-ai-service-1 | async with original_context(app) as maybe_original_state: wren-ai-service-1 | File "/usr/local/lib/python3.12/contextlib.py", line 204, in aenter wren-ai-service-1 | return await anext(self.gen) wren-ai-service-1 | ^^^^^^^^^^^^^^^^^^^^^ wren-ai-service-1 | File "/src/main.py", line 32, in lifespan wren-ai-service-1 | app.state.service_container = create_service_container(pipe_components, settings) wren-ai-service-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ wren-ai-service-1 | File "/src/globals.py", line 224, in create_service_container wren-ai-service-1 | **pipe_components["sql_pairs_preparation"], wren-ai-service-1 | ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ wren-ai-service-1 | KeyError: 'sql_pairs_preparation' wren-ai-service-1 | wren-ai-service-1 | ERROR: Application startup failed. Exiting.
Hi @bowlvan, could you provide following information?
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
Wren AI Information
- Version: [e.g, 0.1.0]
- LLM_PROVIDER= # openai_llm, azure_openai_llm, ollama_llm
- GENERATION_MODEL= # gpt-3.5-turbo, llama3:70b, etc.
Also, could you download the full logs using following command ?
docker logs wrenai-wren-ui-1 >& wrenai-wren-ui.log && \
docker logs wrenai-wren-ai-service-1 >& wrenai-wren-ai-service.log && \
docker logs wrenai-wren-engine-1 >& wrenai-wren-engine.log && \
docker logs wrenai-ibis-server-1 >& wrenai-ibis-server.log
You could DM us on discord & share logs with us in private. Find Wren AI - William on our discord.
use the latest image instead. go to .env, find WREN_AI_SERVICE_VERSION and put nightly there.
WREN_PRODUCT_VERSION=0.14.0
WREN_ENGINE_VERSION=0.13.1
WREN_AI_SERVICE_VERSION=nightly
IBIS_SERVER_VERSION=0.13.1
WREN_UI_VERSION=0.19.1
WREN_BOOTSTRAP_VERSION=0.1.5
At present the nightly is sha256:6aace191a6e7bbb429033621e70fff63d11e12fe4c94d72efebbbf5a51299828
use the latest image instead. go to .env, find
WREN_AI_SERVICE_VERSIONand put nightly there.WREN_PRODUCT_VERSION=0.14.0 WREN_ENGINE_VERSION=0.13.1 WREN_AI_SERVICE_VERSION=nightly IBIS_SERVER_VERSION=0.13.1 WREN_UI_VERSION=0.19.1 WREN_BOOTSTRAP_VERSION=0.1.5At present the nightly is
sha256:6aace191a6e7bbb429033621e70fff63d11e12fe4c94d72efebbbf5a51299828
Hi Michael, it's working after I switched to nightly version. Thanks!
@cyyeh could you take a look ? thx!
@bowlvan @MichaelZhang-Navex yes, please use nightly version first. We'll build new image later.