Error: listen EADDRINUSE :::3000


#1

Hello,

I have a problem with my app. I’ve changed noting related to starting the app, it still looks like:

var listener = app.listen(process.env.PORT, function () {
  console.log('Your app is listening on port ' + listener.address().port);
});

But I get the error:

Error: listen EADDRINUSE :::3000

It seems I have no control over it. I don’t have any other calls to app.listen ONLY in the server.js file. I checked all imports.

App handle is natural-radar

Thanks!


#2

Your project is private, so I can’t take a look but I suggest looking for anything else using a port in your code. If you can make it public, or send me a join link then I can take a closer look


#3

Hello, thanks for the reply, I’ve made it public.


#4

When remixing the app, it seems to work ok. Looking at your app functioning, it looks like the problem only occurs when it’s actively receiving data is that right?


#5

It’s resolved now, but I haven’t changed a thing.

I guess it’s just a temporary error on your side, I’ve read in other topics that it can happen on load peaks.


#6

My app all of a sudden is experiencing this same issue.

this line is referenced:

// Start Express http server
var webServer = http.createServer(app).listen(port);

edit: this was solved in another thread. My project was full.


#7

im having the same issue


#8

Same issue with Alan too - the project was full.


#9

I have the same issue. My app is easy-stitch.

I’m getting this error: Error: listen EADDRINUSE :::3000

Can anyone help?


#10

And, as with the OP, this issue seems to have resolved itself for me as well after a couple hours away from Glitch.