Skip to content

ECONNREFUSED when starting vanilla installation #49677

@boncz92

Description

@boncz92

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP Fri Mar 17 01:52:38 EDT 2023
    Binaries:
      Node: 18.14.2
      npm: 9.6.6
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.2-canary.5
      eslint-config-next: 13.4.1
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue

create-next-app@latest

To Reproduce

npx create-next-app@latest
npm run dev

-Error occurs when attempting to navigate to site
-No additional packages installed

Describe the Bug

Error: connect ECONNREFUSED 127.0.0.1:35391
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 35391
}

error Error: connect ECONNREFUSED 127.0.0.1:36639
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 36639
}
Notice that the port changes everytime the server is started up. I can bring it up and down 100 times and itll likely be on a different port every time.

Every time the server is started up it results in the above error. I went did incremental package updates to pinpoint exactly when it broke. It appears that at 13.3.0 is when it first starts occuring. I have only seen one other thread with the same issue and there was no solution provided (or any answers on SO)

I do realize this is potentially a configuration issue with the server, I have attempted to turn off the firewall completely and same issue occurs. Some guidance on where to check would be appreciated. I see no errors in my nginx logging either.

Expected Behavior

Site should start as expected.

Which browser are you using? (if relevant)

Chrome/Edge/Firefox

How are you deploying your application? (if relevant)

Linux Rhel 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions