-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
When I start wren ui from launcher everything works, But when i want to run ui locally i cant connect to ibris server
next:
SET OTHER_SERVICE_USING_DOCKER=true
SET EXPERIMENTAL_ENGINE_RUST_VERSION=false
yarn
yarn migrate
yarn dev
ui is showing up at localhost:3000, but when trying to connect to database i get ibris error ECONNREFUSED 127.0.0.1:8000
`f:\wren\WrenAI\wren-ui>yarn dev
▲ Next.js 14.2.32
- Local: http://localhost:3000
✓ Starting...
✓ Ready in 7.9s
○ Compiling / ...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
✓ Compiled / in 18.1s (912 modules)
GET / 200 in 22368ms
✓ Compiled /api/graphql in 148ms (163 modules)
[webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving '../../../typescript/lib/typescript' in f:\wren\WrenAI\wren-ui\node_modules\next\dist\build for build dependencies doesn't lead to expected result 'F:\wren\WrenAI\wren-ui\node_modules\typescript\lib\typescript.js', but to 'f:\wren\WrenAI\wren-ui\node_modules\typescript\lib\typescript.js' instead. Resolving dependencies are ignored for this path.
at resolve commonjs file ../../../typescript/lib/typescript (expected F:\wren\WrenAI\wren-ui\node_modules\typescript\lib\typescript.js)
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\load-jsconfig.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\load-jsconfig.js
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack-config.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack-config.js
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
at resolve commonjs f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
✓ Compiled (289 modules)
GET /api/config 304 in 8739ms
[2025-09-30T21:12:44.940] [INFO] TELEMETRY - Telemetry not enabled.
using sqlite
[2025-09-30T21:12:47.688] [INFO] PRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:12:47.689] [INFO] AskingService - Background tracker started
[2025-09-30T21:12:47.689] [INFO] ChartBackgroundTracker - Chart background tracker started
[2025-09-30T21:12:47.690] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started
[2025-09-30T21:12:47.690] [INFO] TRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:12:47.690] [INFO] PRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:12:47.690] [INFO] TRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:12:47.691] [INFO] DashboardCacheBackgroundTracker - Dashboard cache background tracker started
[2025-09-30T21:12:47.785] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker
POST /api/graphql 200 in 13460ms
○ Compiling /setup/connection ...
[webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving '../../../typescript/lib/typescript' in f:\wren\WrenAI\wren-ui\node_modules\next\dist\build for build dependencies doesn't lead to expected result 'F:\wren\WrenAI\wren-ui\node_modules\typescript\lib\typescript.js', but to 'f:\wren\WrenAI\wren-ui\node_modules\typescript\lib\typescript.js' instead. Resolving dependencies are ignored for this path.
at resolve commonjs file ../../../typescript/lib/typescript (expected F:\wren\WrenAI\wren-ui\node_modules\typescript\lib\typescript.js)
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\load-jsconfig.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\load-jsconfig.js
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack-config.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack-config.js
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\handle-externals.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\handle-externals.js
at file dependencies f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
at file f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
at resolve commonjs f:\wren\WrenAI\wren-ui\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
✓ Compiled /setup/connection in 83.1s (11084 modules)
✓ Compiled /api/config in 84ms (312 modules)
GET /api/config 304 in 123ms
✓ Compiled /api/graphql in 88ms (434 modules)
[2025-09-30T21:15:58.338] [INFO] TELEMETRY - Telemetry not enabled.
using sqlite
[2025-09-30T21:15:58.347] [INFO] PRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:15:58.347] [INFO] AskingService - Background tracker started
[2025-09-30T21:15:58.348] [INFO] ChartBackgroundTracker - Chart background tracker started
[2025-09-30T21:15:58.348] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started
[2025-09-30T21:15:58.349] [INFO] TRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:15:58.350] [INFO] PRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:15:58.350] [INFO] TRQ Background Tracker - Recommend question background tracker started
[2025-09-30T21:15:58.351] [INFO] DashboardCacheBackgroundTracker - Dashboard cache background tracker started
[2025-09-30T21:15:58.362] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker
[2025-09-30T21:15:58.469] [DEBUG] ProjectService - Creating project...
[2025-09-30T21:15:58.474] [DEBUG] DataSourceResolver - Project created.
[2025-09-30T21:15:58.474] [DEBUG] DataSourceResolver - Dashboard init...
[2025-09-30T21:15:58.479] [DEBUG] DataSourceResolver - Dashboard created.
[2025-09-30T21:15:58.483] [DEBUG] IbisAdaptor - Getting tables from ibis
[2025-09-30T21:15:58.494] [DEBUG] IbisAdaptor - Get tables error: connect ECONNREFUSED 127.0.0.1:8000
[2025-09-30T21:15:58.495] [ERROR] DataSourceResolver - Failed to get project tables {
"message": "connect ECONNREFUSED 127.0.0.1:8000",
"extensions": {
"originalError": {
"message": "connect ECONNREFUSED 127.0.0.1:8000",
"name": "Error",
"stack": "Error: connect ECONNREFUSED 127.0.0.1:8000\n at AxiosError.from (file:///f:/wren/WrenAI/wren-ui/node_modules/axios/lib/core/AxiosError.js:96:14)\n at RedirectableRequest.handleRequestError (file:///f:/wren/WrenAI/wren-ui/node_modules/axios/lib/adapters/http.js:638:25)\n at RedirectableRequest.emit (node:events:514:28)\n at eventHandlers. (f:\wren\WrenAI\wren-ui\node_modules\follow-redirects\index.js:38:24)\n at ClientRequest.emit (node:events:514:28)\n at Socket.socketErrorListener (node:_http_client:501:9)\n at Socket.emit (node:events:514:28)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (file:///f:/wren/WrenAI/wren-ui/node_modules/axios/lib/core/Axios.js:45:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTablesByConnectionInfo (webpack-internal:///(api)/./src/apollo/server/adaptors/ibisAdaptor.ts:152:29)\n at async IbisAdaptor.getTables (webpack-internal:///(api)/./src/apollo/server/adaptors/ibisAdaptor.ts:164:20)\n at async DataSourceMetadataService.listTables (webpack-internal:///(api)/./src/apollo/server/services/metadataService.ts:33:16)\n at async ProjectService.getProjectDataSourceTables (webpack-internal:///(api)/./src/apollo/server/services/projectService.ts:106:16)\n at async ProjectResolver.saveDataSource (webpack-internal:///(api)/./src/apollo/server/resolvers/projectResolver.ts:235:17)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http",
"fetch"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, /",
"Content-Type": "application/json",
"User-Agent": "axios/1.12.0",
"Content-Length": "115",
"Accept-Encoding": "gzip, compress, deflate, br"
},
"method": "post",
"url": "http://127.0.0.1:8000/v2/connector/postgres/metadata/tables",
"data": "{"connectionInfo":{"connectionUrl":"postgresql://postgres:postgres@localhost:5432/test_database?"}}",
"allowAbsoluteUrls": true
},
"code": "ECONNREFUSED"
},
"code": "IBIS_SERVER_ERROR",
"message": "connect ECONNREFUSED 127.0.0.1:8000",
"shortMessage": "Data connection error",
"other": {}
}
}
[2025-09-30T21:15:58.502] [ERROR] APOLLO - GraphQLError: connect ECONNREFUSED 127.0.0.1:8000
at Module.create (webpack-internal:///(api)/./src/apollo/server/utils/error.ts:137:17)
at IbisAdaptor.throwError (webpack-internal:///(api)/./src/apollo/server/adaptors/ibisAdaptor.ts:306:64)
at IbisAdaptor.getTables (webpack-internal:///(api)/./src/apollo/server/adaptors/ibisAdaptor.ts:167:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DataSourceMetadataService.listTables (webpack-internal:///(api)/./src/apollo/server/services/metadataService.ts:33:16)
at async ProjectService.getProjectDataSourceTables (webpack-internal:///(api)/./src/apollo/server/services/projectService.ts:106:16)
at async ProjectResolver.saveDataSource (webpack-internal:///(api)/./src/apollo/server/resolvers/projectResolver.ts:235:17)
[2025-09-30T21:15:58.502] [ERROR] APOLLO - == original error ==
[2025-09-30T21:15:58.503] [ERROR] APOLLO - Error: connect ECONNREFUSED 127.0.0.1:8000
at AxiosError.from (file:///f:/wren/WrenAI/wren-ui/node_modules/axios/lib/core/AxiosError.js:96:14)
at RedirectableRequest.handleRequestError (file:///f:/wren/WrenAI/wren-ui/node_modules/axios/lib/adapters/http.js:638:25)
at RedirectableRequest.emit (node:events:514:28)
at eventHandlers. (f:\wren\WrenAI\wren-ui\node_modules\follow-redirects\index.js:38:24)
at ClientRequest.emit (node:events:514:28)
at Socket.socketErrorListener (node:_http_client:501:9)
at Socket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (file:///f:/wren/WrenAI/wren-ui/node_modules/axios/lib/core/Axios.js:45:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getTablesByConnectionInfo (webpack-internal:///(api)/./src/apollo/server/adaptors/ibisAdaptor.ts:152:29)
at async IbisAdaptor.getTables (webpack-internal:///(api)/./src/apollo/server/adaptors/ibisAdaptor.ts:164:20)
at async DataSourceMetadataService.listTables (webpack-internal:///(api)/./src/apollo/server/services/metadataService.ts:33:16)
at async ProjectService.getProjectDataSourceTables (webpack-internal:///(api)/./src/apollo/server/services/projectService.ts:106:16)
at async ProjectResolver.saveDataSource (webpack-internal:///(api)/./src/apollo/server/resolvers/projectResolver.ts:235:17)
POST /api/graphql 200 in 351ms`
ibris server is running in container, but local wren ui cant connect to it ?
What am i missing ?
