WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

Failed to start wren-ai-service

Open bowlvan opened this issue 1 year ago • 4 comments

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.

bowlvan avatar Jan 12 '25 06:01 bowlvan

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.

wwwy3y3 avatar Jan 12 '25 07:01 wwwy3y3

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

MichaelZhang-Navex avatar Jan 12 '25 07:01 MichaelZhang-Navex

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

Hi Michael, it's working after I switched to nightly version. Thanks!

bowlvan avatar Jan 12 '25 12:01 bowlvan

@cyyeh could you take a look ? thx!

wwwy3y3 avatar Jan 12 '25 13:01 wwwy3y3

@bowlvan @MichaelZhang-Navex yes, please use nightly version first. We'll build new image later.

cyyeh avatar Jan 14 '25 02:01 cyyeh