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

Error: Netlify CLI has terminated unexpectedly due to EADDRINUSE on port 5200 #6805

Open
ibrahimsaber1 opened this issue Sep 3, 2024 · 1 comment
Labels
type: bug code to address defects in shipped code

Comments

@ibrahimsaber1
Copy link

Describe the bug

"While deploying my MERN stack project using the Netlify CLI, I encountered an unexpected termination with the error EADDRINUSE. The CLI terminated because the address on port 5200 was already in use. This issue seems to be related to the Netlify CLI itself rather than my application."

Error details:

Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.

Error: listen EADDRINUSE: address already in use :::5200
at Server.setupListenHandle [as _listen2] (node:net:1904:16)
at listenInCluster (node:net:1961:12)
at Server.listen (node:net:2063:7)
at Function.listen (C:\Users\ibRABHIM Saber\Downloads\deploy\mernStackMilestoneProject_ITI-main\backend\node_modules\express\lib\application.js:635:24)
at Object. (C:\Users\ibRABHIM Saber\Downloads\deploy\mernStackMilestoneProject_ITI-main\backend\netlify\functions\index.js:46:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Function.Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)

Steps to reproduce

Clone the repository using git clone https://github.com/ibrahimsaber1/good-reads
Navigate to the cloned repository directory.
Run the command netlify dev to start the development server.
Observe that the Netlify CLI exits with an error related to the port being in use.

Configuration

[build]
functions = "netlify/functions"

[[redirects]]
from = "/*"
to = "/.netlify/functions/index"
status = 200

Environment

npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli

@ibrahimsaber1 ibrahimsaber1 added the type: bug code to address defects in shipped code label Sep 3, 2024
@rlmcneary2
Copy link

Seeing this error when running the dev server for a function. First request succeeds, second request causes the error.
netlify-cli: 17.36.2
repo: https://codeberg.org/rlmcneary2/funcstache-website.git
tag to reproduce error: netlify-issue-6805
clone: git clone --branch netlify-issue-6805 https://codeberg.org/rlmcneary2/funcstache-website.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants