WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

Failed to create asking task

Open icefragrant opened this issue 4 months ago • 3 comments

Describe the bug use docker compose build image. click "ask button" error.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'home page'
  2. Click on 'try asking'
  3. Scroll down to '....'
  4. See error "Failed to create asking task"

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Image

Desktop (please complete the following information):

  • OS: [Ubuntu 24.04.3 LTS]
  • Browser [chrome]

Wren AI Information

  • Version: [0.27.0]

Additional context docker-compose.yaml not change .env not change config.yaml

models:

  • alias: default api_base: http://192.168.71.9:11434 model: ollama_chat/qwen3:32b timeout: 6000 kwargs: max_tokens: 8000 n: 1 temperature: 0

type: embedder provider: litellm_embedder models:

  • alias: default api_base: http://192.168.71.9:11434/v1 model: openai/bge-m3 timeout: 6000

Relevant log output

  • Please share config.yaml with us, it should be located at ~/.wrenai/config.yaml.
  • Please share your logs with us with the 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
    

wrenai-wren-ui.log:


Using SQLite Already up to date ▲ Next.js 14.2.30

  • Local: http://localhost:3000
  • Network: http://0.0.0.0:3000

✓ Starting... ✓ Ready in 345ms [32m[2025-09-06T05:47:20.070] [INFO] TELEMETRY - [39mTelemetry initialized: 830c7367-6f68-456a-9833-6ec5afd28cb0 using sqlite [32m[2025-09-06T05:47:20.258] [INFO] PRQ Background Tracker - [39mRecommend question background tracker started [32m[2025-09-06T05:47:20.259] [INFO] AskingService - [39mBackground tracker started [32m[2025-09-06T05:47:20.261] [INFO] ChartBackgroundTracker - [39mChart background tracker started [32m[2025-09-06T05:47:20.262] [INFO] ChartBackgroundTracker - [39mChart adjustment background tracker started [32m[2025-09-06T05:47:20.262] [INFO] TRQ Background Tracker - [39mRecommend question background tracker started [32m[2025-09-06T05:47:20.265] [INFO] PRQ Background Tracker - [39mRecommend question background tracker started [32m[2025-09-06T05:47:20.265] [INFO] TRQ Background Tracker - [39mRecommend question background tracker started [32m[2025-09-06T05:47:20.266] [INFO] DashboardCacheBackgroundTracker - [39mDashboard cache background tracker started [32m[2025-09-06T05:47:20.302] [INFO] AskingService - [39mInitialization: adding unfininshed breakdown thread responses (total: 0) to background tracker Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives. sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: "Cannot read properties of null (reading 'hash')" } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: "Cannot read properties of null (reading 'hash')" } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: "Cannot read properties of null (reading 'hash')" } UNKNOWN false sendEvent setting_reset_project_failed { dataSourceType: 'DUCKDB', error: 'Wren AI: Failed to delete semantics: connect ECONNREFUSED 172.18.0.5:5555' } UNKNOWN false sendEvent connection_start_sample_dataset_failed { datasetName: 'ECOMMERCE', error: 'Wren AI: Failed to delete semantics: connect ECONNREFUSED 172.18.0.5:5555' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'Wren AI: Failed to delete semantics: connect ECONNREFUSED 172.18.0.5:5555' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: 'No project found' } UNKNOWN false [36m[2025-09-06T06:58:58.926] [DEBUG] ProjectService - [39mCreating project... [36m[2025-09-06T06:58:58.940] [DEBUG] DataSourceResolver - [39mProject created. [36m[2025-09-06T06:58:58.940] [DEBUG] DataSourceResolver - [39mDashboard init... [36m[2025-09-06T06:58:58.948] [DEBUG] DataSourceResolver - [39mDashboard created. sendEvent connection_save_data_source_success { dataSourceType: 'DUCKDB' } UNKNOWN true [36m[2025-09-06T06:59:25.638] [DEBUG] ModelService - [39mstart update primary keys [36m[2025-09-06T06:59:25.640] [DEBUG] ModelService - [39mstart batch update model description [36m[2025-09-06T06:59:25.643] [DEBUG] ModelService - [39mstart batch update column description [36m[2025-09-06T06:59:25.809] [DEBUG] DeployService - [39mDeploying model, hash: bad483702c05f4af5dbda26b23024b61e9fc129b [36m[2025-09-06T06:59:25.840] [DEBUG] WrenAIAdaptor - [39mGot error when deploying to wren AI, hash: bad483702c05f4af5dbda26b23024b61e9fc129b. Error: connect ECONNREFUSED 172.18.0.5:5555 sendEvent modeling_deploy_mdl_failed { mdl: { schema: 'public', catalog: 'wrenai', dataSource: 'DUCKDB', models: [ [Object], [Object], [Object], [Object], [Object], [Object] ], relationships: [ [Object], [Object], [Object], [Object], [Object], [Object] ], views: [], enumDefinitions: undefined }, error: 'Wren AI Error: deployment hash:bad483702c05f4af5dbda26b23024b61e9fc129b, connect ECONNREFUSED 172.18.0.5:5555' } AI false sendEvent connection_start_sample_dataset_success { datasetName: 'HR' } UNKNOWN true sendEvent graphql_error_failed { originalErrorStack: undefined, originalErrorMessage: undefined, errorMessage: "Cannot read properties of null (reading 'hash')" } UNKNOWN false


wrenai-wren-ai-service.log:


Waiting for qdrant to start... qdrant has started. Waiting for wren-ai-service to start... INFO: Started server process [10] INFO: Waiting for application startup. W0906 05:47:38.151 10 wren-ai-service:155] SQL pairs file not found: sql_pairs.json ERROR: Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 692, in lifespan async with self.lifespan_context(app) as maybe_state: File "/usr/local/lib/python3.12/contextlib.py", line 204, in aenter return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan async with original_context(app) as maybe_original_state: File "/usr/local/lib/python3.12/contextlib.py", line 204, in aenter return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/src/main.py", line 32, in lifespan app.state.service_container = create_service_container(pipe_components, settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/src/globals.py", line 205, in create_service_container **pipe_components["question_recommendation_db_schema_retrieval"], ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: 'question_recommendation_db_schema_retrieval'

ERROR: Application startup failed. Exiting.

icefragrant avatar Sep 06 '25 07:09 icefragrant

@icefragrant please use this config.yaml

https://github.com/Canner/WrenAI/blob/0.27.0/docker/config.example.yaml

cyyeh avatar Sep 08 '25 03:09 cyyeh

@icefragrant please use this config.yaml

https://github.com/Canner/WrenAI/blob/0.27.0/docker/config.example.yaml

我遇到了一样的问题,我用的就是config.example.ymal修改的

Image

thegenway avatar Oct 16 '25 08:10 thegenway

@icefragrant please use this config.yaml https://github.com/Canner/WrenAI/blob/0.27.0/docker/config.example.yaml

我遇到了一样的问题,我用的就是config.example.ymal修改的

Image

您好,解决了吗

clover9510 avatar Nov 02 '25 09:11 clover9510