-
Notifications
You must be signed in to change notification settings - Fork 2k
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
"sails debug" on node v0.12.0 throwing error EADDRINUSE #2670
Comments
at this moment sails pass the tests for 0.10.x, so I think that is not possible run your code under 0.12 because is not officially supported... (Although I do not think that error is the version of node). |
There's only one way this happens. It's if your port is already being used by another program. |
Agreed, but this is the output just prior to launching
After running Node v0.10 & Sails v0.11 works |
Hmm. It's also not clear to me why the error appears to come from Grunt, and not the debugger. Can you disable Grunt and try again? |
With Grunt disabled no error |
I have the same problem, how to solve it... console will output Error: listen EADDRINUSE When i'm run
,And the Node Inspector not work correctly.
it's too bad not this tool. |
I'm getting the same, it prevents assets from copying to .tmp/public. I've tried changing the ports as follows but it's still giving the error. |
Sails 0.11: node 0.10 -> works |
+1 for this issue. |
Same issue when running Sails v0.11.0 and Node v0.12.0 As nicco has mentioned it works in Node V0.10.0 |
I seem to have the same problem... Anyone found a fix yet? |
Node 0.10.x On Wed, Mar 18, 2015, 17:56 chemjournal notifications@github.com wrote:
|
@tjwebb comment disabling grunt avoids the error if your project doesn't need that hook. http://sailsjs.org/#!/documentation/anatomy/myApp/sailsrc.html
|
+1 for this issue. node --version sails --version |
Any new info on this? I am getting the same error. node --version sails --version Perhaps unrelated I'm also seeing an error in the node-inspector console;
|
|
I am using Gulp, using sails-generator and I am getting the same error.. |
can someone share a project I can clone to see this in action? I cannot reproduce this |
So I pushed this to a repository even though it is not a fully functional site... https://github.com/WillStreeter/ang-sails-gulp error: Gulp :: Error: listen EADDRINUSE I am starting Sails from WebStorm and before it loads I see the above error. I am using --$ node -v |
cloned, npm install, works great:
|
so you are using I was using node 0.12.0 |
Just tried with node 0.12.0 and iojs 1.6.1 and both work. |
Oh I get it, Crazy idea: maybe the newer version of node sees |
Yes.. I was just about to reply that I think that this is the issue because when I run it from the command line with a straight ... sails lift .. no problems occur but when I run it from the IDE for debugging the error appears |
Yea, check this out:
So the debugger is actually running. Try running |
So when I run it from webstorm IDE /usr/local/bin/node --debug-brk=53032 --nolazy debug app.js seems like the closure in app.js is getting jacked... // Start server |
I am running node -v 0.12.0 on the console of the browser. when I run node-debug --debug-brk --harmony --use-strict app.js on Mac terminal I getNode Inspector is now available from http://127.0.0.1:8080/debug?port=5858 Starting the interactive shell (REPL). Type I need to run node 0.11.x or above as I am using Web framework koa which needs it. Please help. |
+1 |
2 similar comments
+1 |
+1 |
Yea it's a known issue. Anyone who has time to submit a PR would be greatly appreciated. |
After reading the comments from the io.js issue (nodejs/node#877) I was able to get debug working with Intellij. To do so you have to install the early EAP release of Intellij (see comments of https://youtrack.jetbrains.com/issue/WEB-16256#comment=27-979926). Once installed go to This fixed it for me, and the debugger loads up real quick now. I still get the "Error: listen EADDRINUSE" issue though, but that doesn't bother me as much as the hanging, with "The hook |
PR submitted @tjwebb |
awesome @dbuentello thanks for the PR. I'll take a look. |
Switched back to node v0.10.38 and all works Ok!
|
That's fix doesn't work..
|
+1 having the same issue on node 0.12, works fine on 0.10 |
Please fix this... do we really have to use a version of node that is 2 versions behind the latest? |
@SlowburnAZ if you'd like to contribute to the PR for resolving this issue, that'd be much appreciated: #2888. The core team cannot implement every fix and feature ourselves, we rely on the community to collaborate with us. Thanks. |
@tjwebb If I can find the time, I will attempt it. |
Hi, I am getting same error. info: Server lifted in debug: -------------------------------------------------------- debug: Environment : development events.js:72 node -v Please provide the solution. |
Got it worked by killing process which runs 1337/tcp sudo fuser -k 1337/tcp |
+1 |
+1 for fix! node 0.12.4 ... tried hacking fork per @dbuentello's suggestion ... "works a little" -- ie now I get the error, but if I just wait the debugger somehow limps along, but it acts strangely (e.g. no access to local context in repl). |
+1 for fix |
Any chance this fixes it? It just got merged: #2888 Someone mind pulling down the latest master branch of Sails and testing? |
Confirmed working on Node v0.12.7 with the latest Sails patches applied. Post back here if anyone sees different. |
@sgress454 I upgraded to node 0.12.7 - so do we need to wait for sails 0.12.0 release before we see the fix? Looks like it still does it with sails 0.11.0. |
+1 same issue for me. Sails 0.11.0 and node 0.12.7 with node-inspector 0.12.2. |
+1 Same issue Sails 0.11.0, Node 0.12.7 and node-inspector 0.11.1 |
+1 but for me it happened with "sails lift", this is how I solved it
|
Ladies and gentlemen, I'm locking this issue. It's been solved. We'll push out v0.12 as soon as we can, but putting +1 here just obscures the fact that a patch has been made. You can apply it yourself by replacing your Sails' |
Running Sails v0.11.0 and Node v0.12.0
When I run
Console logs...
No conflicting ports were listening prior to running sails.
Looking at travis.yml is only node v0.10.x supported currently?
The text was updated successfully, but these errors were encountered: