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

Fatal error: Port 8080 is already in use by another process. #121

Open
kurtinlane opened this issue Jul 30, 2014 · 11 comments
Open

Fatal error: Port 8080 is already in use by another process. #121

kurtinlane opened this issue Jul 30, 2014 · 11 comments

Comments

@kurtinlane
Copy link

Several team members (myself included) ran into this error when running grunt. We got around it by adding 'foundPort = 8080' to node_modules/grunt-contrib-connect/tasksconnect.js on line 153

This is a gross dirty hack to get it to work, but wanted to let you guys know about the issue we found.

Thanks

@donaldpipowitch
Copy link

I can confirm this error, but it seems to happen only for our windows users. It seems to only occur for 0.0.0.0, but not localhost. (We used 0.7.1 before, which runs well.)

@vladikoff
Copy link
Member

@donaldpipowitch Thanks for checking! We shall investigate 🔍

@donaldpipowitch
Copy link

One of our engineers found the culprit.

The "error" was probably introduced by this commit in portscanner: baalexander/node-portscanner@a854ec6
It now correctly destroys a socket instead of ending it. What happens now for us is that 8080 collides with "avast! Web Shield".

@donaldpipowitch
Copy link

Any update on this?

@jeanbza
Copy link

jeanbza commented Sep 27, 2014

If avast! is using :8080, what can be done? Shouldn't you just close avast, or switch to a different port?

@donaldpipowitch
Copy link

Well, I'm not really a "port" export. You could proablby close avast, but it worked before, so my first question would be: is this a bug now as it doesn't work anymore or was it a bug before as it worked?

@MerlinMason
Copy link

Just discovered the same issue now... Seems to occur when starting a server, stopping it and then starting again. Can fix it by killing the Node process's on the port.

$ lsof -i tcp:8080 | grep node | awk '{print $2}'
> PID

$ kill -9 PID

@mayank-gangwal
Copy link

I found the same problem in Mac's Terminal. Occurs to me when starting a server, stopping it and then starting again. Restarting terminal window solved the problem.

@erredeco
Copy link

for me the error happens no matter what port I specify (Using Windows 10 and "localhost" as host)

@erredeco
Copy link

erredeco commented Nov 1, 2018

I get the same error on MAC; downgrading to grunt-contrib-connect 1.0.2 solved my problem

@narisunike
Copy link

Restart GitHub CodeSpace

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

No branches or pull requests

9 participants