Deploy model error - Got error when deploying to WrenAI
Cannot deploy data Model When I click on 'Deploy' on the model screen, it fails when I started the wren-ui and other services using Windows local (WSL)
To Reproduce Steps to reproduce the behavior:
- Go to 'localhost:3000/modeling'
- Click on ''Deploy'
- See error - [2025-06-26T23:17:02.933] [DEBUG] WrenAIAdaptor - Got error in API /v1/semantics-preparations/cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f/status: [object Object] [2025-06-26T23:17:02.933] [DEBUG] WrenAIAdaptor - Got error when deploying to wren AI, hash: cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f. Error: [object Object]
Expected behavior A clear and concise description of what you expected to happen.
Screenshots ▲ Next.js 14.2.26
- Local: http://localhost:3000
✓ Starting... ✓ Ready in 30.9s ○ Compiling / ... ✓ Compiled / in 6.2s (910 modules) GET / 200 in 13867ms ○ Compiling /api/config ... ✓ Compiled /api/config in 914ms (162 modules) GET /api/config 304 in 3848ms ○ Compiling /api/graphql ... ✓ Compiled /api/graphql in 1079ms (285 modules) [2025-06-26T23:14:46.273] [INFO] TELEMETRY - Telemetry not enabled. using sqlite [2025-06-26T23:14:54.272] [INFO] PRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:14:54.273] [INFO] AskingService - Background tracker started [2025-06-26T23:14:54.311] [INFO] ChartBackgroundTracker - Chart background tracker started [2025-06-26T23:14:54.311] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started [2025-06-26T23:14:54.311] [INFO] TRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:14:54.312] [INFO] PRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:14:54.312] [INFO] TRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:14:54.312] [INFO] DashboardCacheBackgroundTracker - Dashboard cache background tracker started [2025-06-26T23:14:54.868] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker POST /api/graphql 200 in 38126ms ○ Compiling /modeling ... ✓ Compiled /modeling in 57.3s (11650 modules) ○ Compiling /api/graphql ... ✓ Compiled /api/graphql in 1767ms (608 modules) [2025-06-26T23:16:14.551] [INFO] TELEMETRY - Telemetry not enabled. using sqlite [2025-06-26T23:16:14.575] [INFO] PRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:14.578] [INFO] AskingService - Background tracker started [2025-06-26T23:16:14.578] [INFO] ChartBackgroundTracker - Chart background tracker started [2025-06-26T23:16:14.579] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started [2025-06-26T23:16:14.579] [INFO] TRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:14.581] [INFO] PRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:14.581] [INFO] TRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:14.581] [INFO] DashboardCacheBackgroundTracker - Dashboard cache background tracker started [2025-06-26T23:16:14.658] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker POST /api/graphql 200 in 4662ms POST /api/graphql 200 in 4671ms POST /api/graphql 200 in 4532ms POST /api/graphql 200 in 4779ms POST /api/graphql 200 in 4648ms POST /api/graphql 200 in 4648ms ○ Compiling /api/config ... ✓ Compiled /api/config in 1005ms (610 modules) GET /api/config 304 in 1289ms [2025-06-26T23:16:21.690] [INFO] TELEMETRY - Telemetry not enabled. using sqlite [2025-06-26T23:16:21.699] [INFO] PRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:21.701] [INFO] AskingService - Background tracker started [2025-06-26T23:16:21.701] [INFO] ChartBackgroundTracker - Chart background tracker started [2025-06-26T23:16:21.702] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started [2025-06-26T23:16:21.702] [INFO] TRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:21.704] [INFO] PRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:21.704] [INFO] TRQ Background Tracker - Recommend question background tracker started [2025-06-26T23:16:21.704] [INFO] DashboardCacheBackgroundTracker - Dashboard cache background tracker started [2025-06-26T23:16:21.739] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker POST /api/graphql 200 in 839ms POST /api/graphql 200 in 101ms POST /api/graphql 200 in 82ms POST /api/graphql 200 in 69ms POST /api/graphql 200 in 59ms POST /api/graphql 200 in 66ms POST /api/graphql 200 in 144ms POST /api/graphql 200 in 86ms POST /api/graphql 200 in 88ms POST /api/graphql 200 in 108ms POST /api/graphql 200 in 99ms POST /api/graphql 200 in 144ms POST /api/graphql 200 in 52ms POST /api/graphql 200 in 77ms POST /api/graphql 200 in 65ms POST /api/graphql 200 in 70ms POST /api/graphql 200 in 167ms POST /api/graphql 200 in 149ms POST /api/graphql 200 in 90ms POST /api/graphql 200 in 54ms POST /api/graphql 200 in 44ms POST /api/graphql 200 in 45ms POST /api/graphql 200 in 53ms POST /api/graphql 200 in 38ms [2025-06-26T23:16:57.880] [DEBUG] DeployService - Deploying model, hash: cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f POST /api/graphql 200 in 58ms POST /api/graphql 200 in 50ms [2025-06-26T23:16:59.542] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f, deployId: cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f [2025-06-26T23:16:59.642] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING POST /api/graphql 200 in 83ms [2025-06-26T23:17:00.885] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING POST /api/graphql 200 in 94ms POST /api/graphql 200 in 87ms [2025-06-26T23:17:02.933] [DEBUG] WrenAIAdaptor - Got error in API /v1/semantics-preparations/cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f/status: [object Object] [2025-06-26T23:17:02.933] [DEBUG] WrenAIAdaptor - Got error when deploying to wren AI, hash: cbcb370dd5a48cbaf9b52a000f40bfaba5587b4f. Error: [object Object]
Desktop (please complete the following information):
- OS: Windows (WSL)
- Browser: chrome
Wren AI Information
- Version: [e.g, 0.1.0]
Additional context Add any other context about the problem here.
Relevant log output
-
I am not using docker desktop. So i am only updating these files
- C:\Users.....\WrenAI\docker\config.example.yaml
- C:\Users.....\WrenAI\docker.env.example
- C:\Users.....\WrenAI\wren-ui.env.test
Here the files -
.env.test.txt .env.example.txt
config.example.txt docker-compose-dev.txt
```
@TigerAditya since there is alias in model definition, so you could simply use litellm_llm.<alias_name> or litellm_embedder.<alias_name> in your config.yaml. (alias_name should be default in your case)
Also please use AZURE_OPENAI_API_KEY in .env instead, we just found AZURE_API_KEY is not valid anymore.
Thanks! This solution worked for the model deployment. Though I see that now the wren-ui App crashes when I Ask a question on the home page. I used 'yarn dev' to run the UI on my local and followed this README page https://github.com/Canner/WrenAI/tree/main/wren-ui
Sample dataset: E-commerce
Error: [2025-06-27T17:17:42.346] [INFO] AskingTaskTracker - Polling for updates for task b85ac151-b2e7-47e7-acff-158c0eb67501 [2025-06-27T17:17:42.443] [INFO] AskingTaskTracker - Updating task b85ac151-b2e7-47e7-acff-158c0eb67501 in database [2025-06-27T17:17:42.459] [INFO] AskingTaskTracker - Task b85ac151-b2e7-47e7-acff-158c0eb67501 is finalized with status: FAILED
@TigerAditya are you trying to contribute to wren-ui? I suggest you try our released version which is using docker container.
I am using this for personal exploration and will be contributing as well. Please share the released version link just for confirming the latest version.
I am using this for personal exploration and will be contributing as well. Please share the released version link just for confirming the latest version.
https://github.com/Canner/WrenAI/releases/tag/0.24.1
You could check the latest docker image versions here: https://github.com/Canner/WrenAI/blob/6b0d217fd7080b10faef9a7158e7d6a1fd883fd0/docker/.env.example#L23-L28
Hi Guys,
I got error in the MySQL model.
[2025-06-27T20:29:08.584] [DEBUG] WrenAIAdaptor - Got error in API /v1/semantics-preparations/f5fbe6f83da210a06a789729499509499c235598/status: [object Object]
[2025-06-27T20:29:08.584] [DEBUG] WrenAIAdaptor - Got error when deploying to wren AI, hash: f5fbe6f83da210a06a789729499509499c235598. Error: [object Object]
sendEvent modeling_deploy_mdl_failed {
mdl: {
schema: 'public',
catalog: 'wrenai',
dataSource: 'MYSQL',
models: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object]
],
relationships: [ [Object], [Object], [Object], [Object] ],
views: [],
enumDefinitions: undefined
},
error: 'Wren AI Error: deployment hash:f5fbe6f83da210a06a789729499509499c235598, [object Object]'
} AI false
@suresh-kordos please give us your config.yaml