Closed
Description
use postgres database in docker and use vscode plugin cline
when i connect to postgres database
Connecting with DSN: postgres://postgres:*******@localhost:5432/school?sslmode=disable DSN source: command line argument Failed to connect to PostgreSQL database: AggregateError [ECONNREFUSED]: at /app/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:45:11 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresConnector.connect (file:///app/dist/index.js:110:22) at async ConnectorManager.connectWithDSN (file:///app/dist/index.js:1632:5) at async main (file:///app/dist/index.js:2711:7) { code: 'ECONNREFUSED', [errors]: [ Error: connect ECONNREFUSED ::1:5432 at createConnectionError (node:net:1675:14) at afterConnectMultiple (node:net:1705:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5432 }, Error: connect ECONNREFUSED 127.0.0.1:5432 at createConnectionError (node:net:1675:14) at afterConnectMultiple (node:net:1705:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5432 } ] } Fatal error: AggregateError [ECONNREFUSED]: at /app/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:45:11 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresConnector.connect (file:///app/dist/index.js:110:22) at async ConnectorManager.connectWithDSN (file:///app/dist/index.js:1632:5) at async main (file:///app/dist/index.js:2711:7) { code: 'ECONNREFUSED', [errors]: [ Error: connect ECONNREFUSED ::1:5432 at createConnectionError (node:net:1675:14) at afterConnectMultiple (node:net:1705:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5432 }, Error: connect ECONNREFUSED 127.0.0.1:5432 at createConnectionError (node:net:1675:14) at afterConnectMultiple (node:net:1705:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5432 } ] } MCP error -32000: Connection closed
please help
Metadata
Metadata
Assignees
Labels
No labels