-
Notifications
You must be signed in to change notification settings - Fork 2.3k
'EADDRINUSE' when debugging, despite no other processes using 5858 #2039
Comments
Confirmed that this is specific to node 0.12. (Quick fix, downgrade to 0.10 if you can). |
I am experiencing this issue as well. |
Same here using :
|
+1 |
Still experiencing this problem. I'm trying to debug a grunt script that runs at the end of protractor tests. Any workarounds for this?
I also tried launching the debugger on a different port to make sure that there weren't any conflicts and still had this problem. |
same problem here. @juliemr - What is the source of the problem? Is this a bug in nodejs? I am already in nodejs 0.12 and cannot downgrade. I think it is connected to nodejs/node#1282 . I have no idea when this is/was released. It looks like a node 1.x branch. This is interesting, as we have now just 0.12. If this is connected, it should be solved in a future node upgrade. |
Update: I updated to nodejs 0.12.7 and saw if the error consists. Here it is quite different:
We are already in the debugger and it tries to connect again to the same port. If i don't specify the browser.pause line, i get
Now comes my most intersting observation :-) When i don't pass the debug option, suddenly everything works and i get into the wd-debug console with browser.pause Maybe this was intended to work as standalone without supplying the debug option :-) |
Same problem with node 4.1.2 and protractor 2.5.1. |
The same error running |
Sorry, I'm not clear what the issue is. Can someone clarify? Here's what I see: $ bin/protractor debug /workspace/protractor/spec/hankConf.js --suite hank
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Starting debugger agent.
Debugger listening on port 5858
connecting to localhost:5858 ... ok
break in timers.js:56
54 };
55
>56 function listOnTimeout() {
57 var msecs = this.msecs;
58 var list = this;
debug> Spec: describe('foo', function() {
it('bar', function() {
browser.debugger();
browser.get('https://angularjs.org');
});
}); The results is what I'm expecting. |
Haven't heard any updates, so I'm going to close this. Please open a new issue if there's still a problem. |
Sorry to dig this up, but is this related to the problem that node passes the --debug-brk to a forked nodejs process without changing the debug port? |
My solution was to check for port numbers and see if servers were running on them.
Will generate the list of processes. Grab the PID and kill it.
Do the same for port 5858. I like this solution better than restarting. |
kill all the process using this command |
@viyoma worked for me !!! |
I'm pretty new to the Protractor debugging scene, so kindly bear with me. Running OSX 10.10, Node 0.12.0, and Protractor 2.0.0 installed locally via grunt-protractor-runner. The compy's firewall is off.
I have a test that fails to work as expected. My intention, then, was to throw in a
browser.debugger()
and then run protractor in debug mode.I did a quick check to make sure nothing was running on port 5858:
Then I started Protractor and immediately got an EADDRINUSE error:
I exited and tried the first command, only to find still nothing is running on 5858. It's as if it's blocking itself.
The text was updated successfully, but these errors were encountered: