Skip to content

Error: connect ECONNREFUSED ::1:5432 #26

Description

@stojanov-igor

I am trying to build the app on my mac, but I get the following error

applying migrations...AggregateError [ECONNREFUSED]:
at /Users/igorstojanov/code/other/Open-Launch/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async PgDialect.migrate (Open-Launch/node_modules/src/pg-core/dialect.ts:85:3)
at async migrate (Open-Launch/node_modules/src/node-postgres/migrator.ts:10:2) {
code: 'ECONNREFUSED',
[errors]: [
Error: connect ECONNREFUSED ::1:5432
at createConnectionError (node:net:1746:14)
at afterConnectMultiple (node:net:1776:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432
},
Error: connect ECONNREFUSED 127.0.0.1:5432
at createConnectionError (node:net:1746:14)
at afterConnectMultiple (node:net:1776:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432
}
]
}

The erorr happens afer running bun run db:migrate. If anyone has a solution, let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions