Skip to content

use postgres database in docker #23

Closed
@Noeverer

Description

@Noeverer

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions