SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.7k stars 8.19k forks source link

Linux Selenium Grid -> Cannot extract a capabilities from the request #4710

Closed ViTaLESs closed 4 years ago

ViTaLESs commented 7 years ago

Meta -

OS: Ubuntu 16.04.3 LTS; Xvfb Selenium Version: Selenium Standalone Server 3.5.3; C# Selenium WebDriver Version 3.5.2 Browser: Google Chrome Version 61.0.3163.79 (Official Build) (64-bit) ChromeDriver 2.32

Expected Behavior -

Initialization of RemoteWebDriver was successful. Ability to run tests on the grid infrastructure.

Actual Behavior -

HTTP ERROR 500 Problem accessing /wd/hub/session. Reason: Server Error

Caused by:

java.io.IOException: org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:135) at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) at java.lang.Thread.run(Thread.java:748) Caused by: org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:78) at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.(SeleniumBasedRequest.java:103) at org.openqa.grid.web.servlet.handler.WebDriverRequest.(WebDriverRequest.java:40) at org.openqa.grid.web.servlet.handler.WebDriverRequestFactory.createFromRequest(WebDriverRequestFactory.java:30) at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.createFromRequest(SeleniumBasedRequest.java:74) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:82) ... 29 more Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map at org.openqa.selenium.remote.server.NewSessionPayload.(NewSessionPayload.java:143) at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:70) ... 34 more Caused by:

org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:78) at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.(SeleniumBasedRequest.java:103) at org.openqa.grid.web.servlet.handler.WebDriverRequest.(WebDriverRequest.java:40) at org.openqa.grid.web.servlet.handler.WebDriverRequestFactory.createFromRequest(WebDriverRequestFactory.java:30) at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.createFromRequest(SeleniumBasedRequest.java:74) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:82) at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map at org.openqa.selenium.remote.server.NewSessionPayload.(NewSessionPayload.java:143) at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:70) ... 34 more Caused by:

java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map at org.openqa.selenium.remote.server.NewSessionPayload.(NewSessionPayload.java:143) at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:70) at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.(SeleniumBasedRequest.java:103) at org.openqa.grid.web.servlet.handler.WebDriverRequest.(WebDriverRequest.java:40) at org.openqa.grid.web.servlet.handler.WebDriverRequestFactory.createFromRequest(WebDriverRequestFactory.java:30) at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.createFromRequest(SeleniumBasedRequest.java:74) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:82) at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) at java.lang.Thread.run(Thread.java:748)

Steps to reproduce -

I have Selenium grid infrastructure. Hub configuration: { "port": 4444, "newSessionWaitTimeout": -1, "servlets" : [], "withoutServlets": [], "custom": {}, "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher", "throwOnCapabilityNotPresent": true, "cleanUpCycle": 5000, "role": "hub", "debug": false, "browserTimeout": 0, "timeout": 1800 }

Node configuration: { "capabilities": [ { "browserName": "firefox", "maxInstances": 5, "seleniumProtocol": "WebDriver" }, { "browserName": "chrome", "maxInstances": 5, "seleniumProtocol": "WebDriver" } ], "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", "maxSession": 10, "port": "5555", "register": true, "registerCycle": 5000, "hub": "http://hubIP:4444", "nodeStatusCheckTimeout": 5000, "nodePolling": 5000, "role": "node", "unregisterIfStillDownAfter": 60000, "downPollingLimit": 2, "debug": false, "servlets" : [], "withoutServlets": [], "custom": {} }

Set up selenium grid with command: (For hub) /usr/bin/java -jar /root/selenium-grid/selenium-server-standalone-3.5.3.jar -role hub -hubConfig /root/selenium-grid/hubconfig.json

(For nodes) /usr/bin/java -Dwebdriver.chrome.driver=/root/selenium-grid/node/tmp/chromedriver/chromedriver-2.32 -Dwebdriver.gecko.driver=/root/selenium-grid/node/tmp/geckodriver0.18.0/wires -jar /root/selenium-grid/node/selenium-server-standalone-3.5.3.jar -role node -nodeConfig /root/selenium-grid/node/nodeconfig.json

Initialization of RemoteDriver: new RemoteWebDriver(new Uri(remoteDriverUrl), new ChromeOptions());

The same error for initialization: return new RemoteWebDriver(new Uri(remoteDriverUrl), DesiredCapabilities.Chrome());

barancev commented 7 years ago

Show the complete hub and node logs, please. I can't reproduce the issue using the same vesions of software.

Hub log:

11:54:09.523 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b'
11:54:09.524 INFO - Launching Selenium Grid hub
2017-09-23 11:54:10.450:INFO::main: Logging initialized @1139ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:54:10.463 INFO - Will listen on 4444
2017-09-23 11:54:10.507:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-09-23 11:54:10.531:INFO:osjs.session:main: DefaultSessionIdManager workerName=node0
2017-09-23 11:54:10.532:INFO:osjs.session:main: No SessionScavenger set, using defaults
2017-09-23 11:54:10.534:INFO:osjs.session:main: Scavenging every 600000ms 2017-09-23 11:54:10.540:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@1ad282e0{/,null,AVAILABLE}
2017-09-23 11:54:10.558:INFO:osjs.AbstractConnector:main: Started ServerConnector@6cc7b4de{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-09-23 11:54:10.559:INFO:osjs.Server:main: Started @1248ms
11:54:10.559 INFO - Nodes should register to http://192.168.0.102:4444/grid/register/
11:54:10.560 INFO - Selenium Grid hub is up and running
11:54:41.408 INFO - Registered a node http://192.168.0.102:5555
11:54:52.044 INFO - Got a request to create a new session: Capabilities [{goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY}]
11:54:52.046 INFO - Trying to create a new session on test slot {seleniumProtocol=WebDriver, browserName=chrome, maxInstances=5, platform=VISTA}

Node log:

11:54:40.155 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b'
11:54:40.156 INFO - Launching a Selenium Grid node
2017-09-23 11:54:41.102:INFO::main: Logging initialized @1169ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:54:41.137 INFO - Driver class not found: com.opera.core.systems.OperaDriver
11:54:41.158 INFO - Driver provider class org.openqa.selenium.safari.SafariDriver registration is skipped:
 registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform VISTA
11:54:41.177 INFO - Using the passthrough mode handler
2017-09-23 11:54:41.202:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-09-23 11:54:41.221:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@5158b42f{/,null,STARTING} has uncovered http methods for path: /
2017-09-23 11:54:41.225:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@5158b42f{/,null,AVAILABLE}
2017-09-23 11:54:41.243:INFO:osjs.AbstractConnector:main: Started ServerConnector@49e53c76{HTTP/1.1,[http/1.1]}{0.0.0.0:5555}
2017-09-23 11:54:41.244:INFO:osjs.Server:main: Started @1312ms
11:54:41.244 INFO - Selenium Grid node is up and ready to register to the hub
11:54:41.256 INFO - Starting auto registration thread. Will try to register every 5000 ms.
11:54:41.256 INFO - Registering the node to the hub: http://localhost:4444/grid/register
11:54:41.408 INFO - The node is registered to the hub and ready to use
2017-09-23 11:54:52.056:INFO:osjshC.ROOT:qtp1225197672-14: org.openqa.selenium.remote.server.WebDriverServlet-654f0d9c: Initialising WebDriverServlet
11:54:52.088 INFO - Binding default provider to: org.openqa.selenium.chrome.ChromeDriverService
11:54:52.089 INFO - Found handler: org.openqa.selenium.remote.server.BeginSession@7cfbe5b7
11:54:52.092 INFO - /session: Executing POST on /session (handler: BeginSession)
11:54:52.107 INFO - Capabilities are: Capabilities {goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY, }
11:54:52.108 INFO - Capabilities {goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
11:54:52.109 INFO - Capabilities {goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
Starting ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a) on port 26737
Only local connections are allowed.
11:54:53.428 INFO - Found handler: org.openqa.selenium.remote.server.ServicedSession@45c2c4a4
11:54:53.429 INFO - Handler thread for session 5f32d7cac1d82cdf2fe06217ecc681c8 (chrome): Executing DELETE on /session/5f32d7cac1d82cdf2fe06217ecc681c8 (handler: ServicedSession)
11:54:53.450 INFO - To downstream: {"sessionId":"5f32d7cac1d82cdf2fe06217ecc681c8","status":0,"value":null}
11:54:53.456 INFO - Removing session org.openqa.selenium.remote.server.ServicedSession@45c2c4a4
11:54:53.480 INFO - To downstream: {"sessionId":"","status":0,"value":null}
ViTaLESs commented 7 years ago

Node logs: -- Logs begin at Tue 2017-09-26 03:20:43 CDT, end at Tue 2017-09-26 03:25:11 CDT. -- Sep 26 03:23:53: Stopped Selenium Node. Sep 26 03:23:56: Started Selenium Node. Sep 26 03:24:01: 03:24:01.517 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b' Sep 26 03:24:01: 03:24:01.519 INFO - Launching a Selenium Grid node Sep 26 03:24:04: 2017-09-26 03:24:04.960:INFO::main: Logging initialized @7912ms to org.seleniumhq.jetty9.util.log.StdErrLog Sep 26 03:24:05: 03:24:05.462 INFO - Driver class not found: com.opera.core.systems.OperaDriver Sep 26 03:24:05: 03:24:05.800 INFO - Driver provider class org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: Sep 26 03:24:05: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX Sep 26 03:24:05: 03:24:05.800 INFO - Driver provider class org.openqa.selenium.edge.EdgeDriver registration is skipped: Sep 26 03:24:05: registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX Sep 26 03:24:05: 03:24:05.801 INFO - Driver provider class org.openqa.selenium.safari.SafariDriver registration is skipped: Sep 26 03:24:05: registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX Sep 26 03:24:06: 03:24:06.006 INFO - Using the passthrough mode handler Sep 26 03:24:06: 2017-09-26 03:24:06.287:INFO:osjs.Server:main: jetty-9.4.5.v20170502 Sep 26 03:24:06: 2017-09-26 03:24:06.341:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@3023df74{/,null,STARTING} has uncovered http methods for path: / Sep 26 03:24:06: 2017-09-26 03:24:06.364:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@3023df74{/,null,AVAILABLE} Sep 26 03:24:06: 2017-09-26 03:24:06.673:INFO:osjs.AbstractConnector:main: Started ServerConnector@2e9e17bb{HTTP/1.1,[http/1.1]}{0.0.0.0:5555} Sep 26 03:24:06: 2017-09-26 03:24:06.674:INFO:osjs.Server:main: Started @9626ms Sep 26 03:24:06: 03:24:06.674 INFO - Selenium Grid node is up and ready to register to the hub Sep 26 03:24:06: 03:24:06.746 INFO - Starting auto registration thread. Will try to register every 5000 ms. Sep 26 03:24:06: 03:24:06.746 INFO - Registering the node to the hub: http://10.1.0.200:4444/grid/register Sep 26 03:24:07: 03:24:07.331 INFO - The node is registered to the hub and ready to use Sep 26 03:24:32: 2017-09-26 03:24:32.694:INFO:osjshC.ROOT:qtp1979313356-9: org.openqa.selenium.remote.server.WebDriverServlet-6eda5c9: Initialising WebDriverServlet Sep 26 03:24:33: 03:24:33.225 INFO - Binding default provider to: org.openqa.selenium.chrome.ChromeDriverService Sep 26 03:24:33: 03:24:33.226 INFO - Found handler: org.openqa.selenium.remote.server.BeginSession@7e886ad5 Sep 26 03:24:33: 03:24:33.231 INFO - /session: Executing POST on /session (handler: BeginSession) Sep 26 03:24:33: 03:24:33.357 INFO - Capabilities are: Capabilities {goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY, } Sep 26 03:24:33: 03:24:33.359 INFO - Capabilities {goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factor Sep 26 03:24:33: 03:24:33.360 INFO - Capabilities {goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factor Sep 26 03:24:33: Starting ChromeDriver 2.32.498513 (2c63aa53b2c658de596ed550eb5267ec5967b351) on port 30728 Sep 26 03:24:33: Only local connections are allowed.

Hub logs: Sep 26 08:23:30systemd[1]: Started Selenium Hub. Sep 26 08:23:31: 08:23:31.555 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b' Sep 26 08:23:31: 08:23:31.555 INFO - Launching Selenium Grid hub Sep 26 08:23:34: 2017-09-26 08:23:34.027:INFO::main: Logging initialized @3688ms to org.seleniumhq.jetty9.util.log.StdErrLog Sep 26 08:23:34: 08:23:34.183 INFO - Will listen on 4444 Sep 26 08:23:34: 2017-09-26 08:23:34.682:INFO:osjs.Server:main: jetty-9.4.5.v20170502 Sep 26 08:23:34: 2017-09-26 08:23:34.845:INFO:osjs.session:main: DefaultSessionIdManager workerName=node0 Sep 26 08:23:34: 2017-09-26 08:23:34.845:INFO:osjs.session:main: No SessionScavenger set, using defaults Sep 26 08:23:34: 2017-09-26 08:23:34.848:INFO:osjs.session:main: Scavenging every 660000ms Sep 26 08:23:34: 2017-09-26 08:23:34.856:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@525f1e4e{/,null,AVAILABLE} Sep 26 08:23:34: 2017-09-26 08:23:34.872:INFO:osjs.AbstractConnector:main: Started ServerConnector@12d3a4e9{HTTP/1.1,[http/1.1]}{0.0.0.0:4444} Sep 26 08:23:34: 2017-09-26 08:23:34.872:INFO:osjs.Server:main: Started @4533ms Sep 26 08:23:34: 08:23:34.872 INFO - Nodes should register to http://10.1.0.200:4444/grid/register/ Sep 26 08:23:34: 08:23:34.872 INFO - Selenium Grid hub is up and running Sep 26 08:24:07: 08:24:07.339 INFO - Registered a node http://10.1.0.201:5555 Sep 26 08:24:08: 08:24:08.484 INFO - Registered a node http://10.1.0.202:5555 Sep 26 08:24:12: 08:24:12.167 INFO - Registered a node http://10.1.0.203:5555 Sep 26 08:24:32: 08:24:32.561 INFO - Got a request to create a new session: Capabilities [{goog:chromeOptions={}, browserName=chrome, platformName=ANY, version=, platform=ANY}] Sep 26 08:24:32: 08:24:32.562 INFO - Trying to create a new session on test slot {seleniumProtocol=WebDriver, browserName=chrome, maxInstances=5, platform=LINUX} Sep 26 08:25:42: 2017-09-26 08:25:42.335:WARN:osjs.HttpChannel:qtp1540270363-14: /wd/hub/session Sep 26 08:25:42: java.io.IOException: org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: Sep 26 08:25:42: at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:135) Sep 26 08:25:42: at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:62) Sep 26 08:25:42: at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) Sep 26 08:25:42: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) Sep 26 08:25:42: at java.lang.Thread.run(Thread.java:748) Sep 26 08:25:42: Caused by: Sep 26 08:25:42: org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:78) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.(SeleniumBasedRequest.java:103) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.WebDriverRequest.(WebDriverRequest.java:40) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.WebDriverRequestFactory.createFromRequest(WebDriverRequestFactory.java:30) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.createFromRequest(SeleniumBasedRequest.java:74) Sep 26 08:25:42: at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:82) Sep 26 08:25:42: at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:62) Sep 26 08:25:42: at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) Sep 26 08:25:42: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) Sep 26 08:25:42: at java.lang.Thread.run(Thread.java:748) Sep 26 08:25:42: Caused by: Sep 26 08:25:42: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map Sep 26 08:25:42: at org.openqa.selenium.remote.server.NewSessionPayload.(NewSessionPayload.java:143) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.WebDriverRequest.extractDesiredCapability(WebDriverRequest.java:70) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.(SeleniumBasedRequest.java:103) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.WebDriverRequest.(WebDriverRequest.java:40) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.WebDriverRequestFactory.createFromRequest(WebDriverRequestFactory.java:30) Sep 26 08:25:42: at org.openqa.grid.web.servlet.handler.SeleniumBasedRequest.createFromRequest(SeleniumBasedRequest.java:74) Sep 26 08:25:42: at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:82) Sep 26 08:25:42: at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:62) Sep 26 08:25:42: at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) Sep 26 08:25:42: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) Sep 26 08:25:42: at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) Sep 26 08:25:42: at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) Sep 26 08:25:42: at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) Sep 26 08:25:42: at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) Sep 26 08:25:42: at java.lang.Thread.run(Thread.java:748)

diemol commented 4 years ago

@ViTaLESs could you please provide a script to reproduce the issue in the most recent Selenium version?

diemol commented 4 years ago

Closing as we did not get more information. If this issue still exists with the latest versions, please feel free to open a new issue with all the required information on the template.