WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

Unable to start SQL

Open Lishithaa opened this issue 1 year ago • 2 comments

[2025-09-18T06:29:39.235] [DEBUG] ProjectService - Creating project... [2025-09-18T06:29:39.255] [DEBUG] DataSourceResolver - Project created. [2025-09-18T06:29:39.255] [DEBUG] DataSourceResolver - Dashboard init... [2025-09-18T06:29:39.261] [DEBUG] DataSourceResolver - Dashboard created. [2025-09-18T06:29:39.264] [DEBUG] IbisAdaptor - Getting tables from ibis [2025-09-18T06:29:39.434] [DEBUG] IbisAdaptor - Get tables error: (1045, "Access denied for user 'root'@'154.210.228.26' (using password: YES)") [2025-09-18T06:29:39.435] [ERROR] DataSourceResolver - Failed to get project tables { "message": "(1045, "Access denied for user 'root'@'154.210.228.26' (using password: YES)")", "extensions": { "originalError": { "message": "Request failed with status code 500", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 500\n at settle (file:///home/lishitha/Documents/chat4ed/wren-ui/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (file:///home/lishitha/Documents/chat4ed/wren-ui/node_modules/axios/lib/adapters/http.js:599:11)\n at IncomingMessage.emit (node:events:536:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (file:///home/lishitha/Documents/chat4ed/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:248: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.8.4", "Content-Length": "194", "Accept-Encoding": "gzip, compress, deflate, br" }, "method": "post", "url": "http://127.0.0.1:8000/v2/connector/mysql/metadata/tables", "data": "{"connectionInfo":{"host":"34.100.196.208","port":"3306","database":"MYSQL","user":"root","password":"zgwb8MxLlTgsTj1StpiiRg==:48LdahBaN9cM2WjxRxe4TW+uyFqXo5VC6ewWgL+5WGw=","sslMode":"ENABLED"}}", "allowAbsoluteUrls": true }, "code": "ERR_BAD_RESPONSE", "status": 500 }, "code": "IBIS_SERVER_ERROR", "message": "(1045, "Access denied for user 'root'@'154.210.228.26' (using password: YES)")", "shortMessage": "Data connection error", "other": {} } } [2025-09-18T06:29:39.456] [ERROR] APOLLO - GraphQLError: (1045, "Access denied for user 'root'@'154.210.228.26' (using password: YES)") 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:305: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:248:17) [2025-09-18T06:29:39.456] [ERROR] APOLLO - == original error == [2025-09-18T06:29:39.456] [ERROR] APOLLO - AxiosError: Request failed with status code 500 at settle (file:///home/lishitha/Documents/chat4ed/wren-ui/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///home/lishitha/Documents/chat4ed/wren-ui/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:536:35) at endReadableNT (node:internal/streams/readable:1698:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///home/lishitha/Documents/chat4ed/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:248:17)

unable to start SQL

Lishithaa avatar Sep 18 '25 06:09 Lishithaa

Root Cause: MySQL host-based authentication failure. The server at 34.100.196.208 doesn't allow 'root' login from your IP (154.210.228.26). Solutions:

Grant remote access on MySQL server:

sql CREATE USER 'root'@'154.210.228.26' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON . TO 'root'@'154.210.228.26'; -- OR for any IP: CREATE USER 'root'@'%' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON . TO 'root'@'%'; FLUSH PRIVILEGES;

Verify credentials - Check if password is correct Check MySQL config (my.cnf):

bind-address = 0.0.0.0 # Allow remote connections

Firewall - Ensure port 3306 is open from 154.210.228.26 to 34.100.196.208

Aadilkhan-og avatar Oct 03 '25 13:10 Aadilkhan-og

Closing as a data-source configuration issue rather than a bug

j-nguyenn avatar Jul 26 '26 15:07 j-nguyenn