Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Error: connect ECONNREFUSED #1913

Closed
PhilBrk8 opened this issue Jun 12, 2024 · 1 comment
Closed

bug: Error: connect ECONNREFUSED #1913

PhilBrk8 opened this issue Jun 12, 2024 · 1 comment

Comments

@PhilBrk8
Copy link

Provide environment information

System:
OS: Linux 6.8 Fedora Linux 38 (Workstation Edition)
CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Memory: enough
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 18.19.0 - /usr/bin/node
Yarn: 1.22.21 - /usr/bin/yarn
npm: 10.2.3 - /usr/bin/npm
pnpm: 8.15.4 - ~/.config/pnpm/pnpm
bun: 1.1.13 - /usr/local/bin/bun

Describe the bug

After initialising the project and commiting a first "init" commit, I try to start up a next dev server on localhost:3000 as usual, but I get the following error message:
"""
Error: connect ECONNREFUSED ::1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
digest: "1152202227"
Cause: Error: connect ECONNREFUSED ::1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432
}
⨯ Error: connect ECONNREFUSED ::1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
digest: "1152202227"
Cause: Error: connect ECONNREFUSED ::1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432
}
GET / 500 in 3842ms
"""

Reproduction repo

[email protected]:PhilBrk8/doesnotconnecttoserver.git

To reproduce

I tried to initialize the project with npm, pnpm, yarn and bun, but the error is the same regardless of the package manager.
The tech-stack combination is:

Will you be using Tailwind CSS for styling?
│ Yes

◇ Would you like to use tRPC?
│ Yes

◇ What authentication provider would you like to use?
│ None

◇ What database ORM would you like to use?
│ Drizzle

◇ Would you like to use Next.js App Router?
│ Yes

◇ What database provider would you like to use?
│ PostgreSQL

◇ Should we initialize a Git repository and stage the changes?
│ Yes

◇ Should we run 'bun install' for you?
│ Yes

◇ What import alias would you like to use?
│ ~/

Additional information

Screenshot from 2024-06-12 13-30-05

@PhilBrk8
Copy link
Author

please forget all of this, I did not push my db schema
Does work now....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant