OS: Windows 10
Selenium Version: 3.7.1
Browser: Chrome
Browser Version: 62.0.3202.94 (袨褎懈褑懈邪谢褜薪邪褟 褋斜芯褉泻邪), (64 斜懈褌)
Chromedriver Version: 2.33
Node config
{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 15,
"seleniumProtocol": "WebDriver",
"version": "DEFAULT"
},
{
"browserName": "chrome",
"maxInstances": 15,
"seleniumProtocol": "WebDriver",
"version": "DEFAULT"
},
{
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver",
"version": "DEFAULT"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 15,
"port": 5556,
"register": true,
"registerCycle": 5000,
"hub": "http://my_host:4445",
"nodeStatusCheckTimeout": 5000,
"nodePolling": 5000,
"role": "node",
"unregisterIfStillDownAfter": 60000,
"downPollingLimit": 2,
"debug": false,
"servlets" : [],
"withoutServlets": [],
"custom": {}
}
Hub config
{
"port": 4445,
"newSessionWaitTimeout": -1,
"servlets" : [],
"withoutServlets": [],
"custom": {},
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"registryClass": "org.openqa.grid.internal.DefaultGridRegistry",
"throwOnCapabilityNotPresent": true,
"cleanUpCycle": 5000,
"role": "hub",
"debug": false,
"browserTimeout": 0,
"timeout": 1800
}
SERVER LOG
Line 788985: 14:52:42.591 DEBUG - http-outgoing-16397: set socket timeout to 0
Line 788996: 14:52:42.591 DEBUG - http-outgoing-16397 >> GET /wd/hub/session/916de56b7b5644306716d27df0ff9fec/element/0.37243952481844755-3/displayed HTTP/1.1
Line 789000: 14:52:42.591 DEBUG - http-outgoing-16397 >> User-Agent: Python http auth
Line 789004: 14:52:42.592 DEBUG - http-outgoing-16397 >> Connection: close
Line 789008: 14:52:42.592 DEBUG - http-outgoing-16397 >> Host: 10.76.163.106:4445
Line 789011: 14:52:42.592 DEBUG - http-outgoing-16397 >> Accept-Encoding: identity
Line 789013: 14:52:42.592 DEBUG - http-outgoing-16397 >> Accept: application/json
Line 789016: 14:52:42.592 DEBUG - http-outgoing-16397 >> Content-Type: application/json;charset=UTF-8
Line 789019: 14:52:42.592 DEBUG - http-outgoing-16397 >> "GET /wd/hub/session/916de56b7b5644306716d27df0ff9fec/element/0.37243952481844755-3/displayed HTTP/1.1[r][\n]"
Line 789021: 14:52:42.592 DEBUG - http-outgoing-16397 >> "User-Agent: Python http auth[r][\n]"
Line 789025: 14:52:42.592 DEBUG - http-outgoing-16397 >> "Connection: close[r][\n]"
Line 789028: 14:52:42.592 DEBUG - http-outgoing-16397 >> "Host: 10.76.163.106:4445[r][\n]"
Line 789031: 14:52:42.592 DEBUG - http-outgoing-16397 >> "Accept-Encoding: identity[r][\n]"
Line 789034: 14:52:42.593 DEBUG - http-outgoing-16397 >> "Accept: application/json[r][\n]"
Line 789035: 14:52:42.593 DEBUG - http-outgoing-16397 >> "Content-Type: application/json;charset=UTF-8[r][\n]"
Line 789038: 14:52:42.593 DEBUG - http-outgoing-16397 >> "[r][\n]"
Line 789165: 14:52:42.614 DEBUG - http-outgoing-16397 << "HTTP/1.1 500 Server Error[r][\n]"
Line 789170: 14:52:42.614 DEBUG - http-outgoing-16397 << "Connection: close[r][\n]"
Line 789174: 14:52:42.614 DEBUG - http-outgoing-16397 << "Content-Type: application/json;charset=utf-8[r][\n]"
Line 789177: 14:52:42.614 DEBUG - http-outgoing-16397 << "Content-Length: 3178[r][\n]"
Line 789179: 14:52:42.614 DEBUG - http-outgoing-16397 << "Server: Jetty(9.4.5.v20170502)[r][\n]"
Line 789181: 14:52:42.614 DEBUG - http-outgoing-16397 << "[r][\n]"
Line 789183: 14:52:42.614 DEBUG - http-outgoing-16397 << "{"value":{"stacktrace":"java.lang.RuntimeException: java.net.BindException: Address already in use: connectr\ntat org.openqa.selenium.remote.server.WebDriverServlet.lambda$handle$0(WebDriverServlet.java:245)r\ntat java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)r\ntat java.util.concurrent.FutureTask.run(Unknown Source)r\ntat java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)r\ntat java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)r\ntat java.lang.Thread.run(Unknown Source)r\nCaused by: java.net.BindException: Address already in use: connectr\ntat java.net.DualStackPlainSocketImpl.connect0(Native Method)r\ntat java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)r\ntat java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)r\ntat java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)r\ntat java.net.AbstractPlainSocketImpl.connect(Unknown Source)r\ntat java.net.PlainSocketImpl.connect(Unknown Source)r\ntat java.net.SocksSocketImpl.connect(Unknown Source)r\ntat java.net.Socket.connect(Unknown Source)r\ntat java.net.Socket.connect(Unknown Source)r\ntat sun.net.NetworkClient.doConnect(Unknown Source)r\ntat sun.net.www.http.HttpClient.openServer(Unknown Source)r\ntat sun.net.www.http.HttpClient.openServer(Unknown Source)r\ntat sun.net.www.http.HttpClient.\u003cinit\u003e(Unknown Source)r\ntat sun.net.www.http.HttpClient.New(Unknown Source)r\ntat sun.net.www.http.HttpClient.New(Unknown Source)r\ntat sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)r\ntat sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)r\ntat sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)r\ntat sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)r\ntat sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)r\ntat sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)r\ntat java.net.HttpURLConnection.getResponseCode(Unknown Source)r\ntat org.openqa.selenium.remote.server.Passthrough.handle(Passthrough.java:111)r\ntat org.openqa.selenium.remote.server.ServicedSession.execute(ServicedSession.java:102)r\ntat org.openqa.selenium.remote.server.WebDriverServlet.lambda$handle$0(WebDriverServlet.java:240)r\nt... 5 morer\n","stackTrace":[{"fileName":"WebDriverServlet.java","methodName":"lambda$handle$0","className":"org.openqa.selenium.remote.server.WebDriverServlet","lineNumber":245},{"fileName":null,"methodName":"call","className":"java.util.concurrent.Executors$RunnableAdapter","lineNumber":-1},{"fileName":null,"methodName":"run","className":"java.util.concurrent.FutureTask","lineNumber":-1},{"fileName":null,"methodName":"runWorker","className":"java.util.concurrent.ThreadPoolExecutor","lineNumber":-1},{"fileName":null,"methodName":"run","className":"java.util.concurrent.ThreadPoolExecutor$Worker","lineNumber":-1},{"fileName":null,"methodName":"run","className":"java.lang.Thread","lineNumber":-1}],"message":"java.net.BindException: Address already in use: connect","error":"unknown error"},"status":13}"
Line 789184: 14:52:42.614 DEBUG - http-outgoing-16397 << HTTP/1.1 500 Server Error
Line 789185: 14:52:42.614 DEBUG - http-outgoing-16397 << Connection: close
Line 789186: 14:52:42.615 DEBUG - http-outgoing-16397 << Content-Type: application/json;charset=utf-8
Line 789187: 14:52:42.615 DEBUG - http-outgoing-16397 << Content-Length: 3178
Line 789188: 14:52:42.615 DEBUG - http-outgoing-16397 << Server: Jetty(9.4.5.v20170502)
Line 789189: 14:52:42.615 DEBUG - http-outgoing-16397: Close connection
NODE LOG:
Starting ChromeDriver 2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f) on port 44982
Only local connections are allowed.
Starting ChromeDriver 2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f) on port 27598
RESOLVING:
Change the default maximum port number parameter to a larger number:
Start the Windows Registry Editor.
Navigate to the sub key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
In the Edit menu, click New > DWORD Value, and then add the following values:
Name: MaxUserPort
Type: DWORD
Value: 65534(Decimal)
Tip: The default value of this parameter is 5000. The value of this parameter can be set from 5000 to 65534. This parameter controls the maximum port number that is used when a program requests any available user port from the system. Typically, ephemeral (short-lived) ports are allocated between the values of 1024 and 5000 inclusive.
Exit the Registry Editor and then restart your machine.
Thanks for posting the solution for your enviroment, closing as it got solved by the OP.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
RESOLVING:
Change the default maximum port number parameter to a larger number:
Start the Windows Registry Editor.
Navigate to the sub key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
In the Edit menu, click New > DWORD Value, and then add the following values:
Name: MaxUserPort
Type: DWORD
Value: 65534(Decimal)
Tip: The default value of this parameter is 5000. The value of this parameter can be set from 5000 to 65534. This parameter controls the maximum port number that is used when a program requests any available user port from the system. Typically, ephemeral (short-lived) ports are allocated between the values of 1024 and 5000 inclusive.
Exit the Registry Editor and then restart your machine.
http://www-01.ibm.com/support/docview.wss?uid=swg21573808