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

Not able to start the Node: Error with the JSON of the config : Expected value to be a string type: NUMBER #415

Open
SrikanthSamala opened this issue Aug 6, 2018 · 6 comments

Comments

@SrikanthSamala
Copy link

SrikanthSamala commented Aug 6, 2018

Node Config Generated:
D:\SeleniumGrid_Extras>java -Dwebdriver.ie.driver=\tmp\webdriver\iedriver\iedriver_3.14.0_Win32bit.exe -Dwebdriver.edge.driver="C:\Program Files (x86)\Microsoft Web Driver\MicrosoftWebDriver.exe" -Dwebdriver.chrome.driver=\tmp\webdriver\chromedriver\chromedriver_2.41_32bit.exe -Dwebdriver.gecko.driver=\tmp\webdriver\geckodriver\geckodriver_0.21.0.exe -cp D:\SeleniumGrid_Extras\SeleniumGridExtras-2.0.4-SNAPSHOT-jar-with-dependencies.jar;\tmp\webdriver\3.14.0.jar org.openqa.grid.selenium.GridLauncherV3 -role node -nodeConfig node_5555.json -log log\node_5555.log

Exception in thread "main" org.openqa.grid.common.exception.GridConfigurationException: Error with the JSON of the config : Expected value to be a string type: NUMBER
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'
System info: host: 'VMT1562', ip: '192.168.0.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_171'
Driver info: driver.version: unknown
at org.openqa.grid.internal.utils.configuration.GridNodeConfiguration.loadFromJSON(GridNodeConfiguration.java:422)
at org.openqa.grid.internal.utils.configuration.GridNodeConfiguration.loadFromJSON(GridNodeConfiguration.java:390)
at org.openqa.grid.internal.cli.GridNodeCliOptions.toConfiguration(GridNodeCliOptions.java:228)
at org.openqa.grid.internal.cli.GridNodeCliOptions.toConfiguration(GridNodeCliOptions.java:35)
at org.openqa.grid.selenium.GridLauncherV3.launch(GridLauncherV3.java:114)
at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:81)
Caused by: org.openqa.grid.common.exception.GridConfigurationException: Expected value to be a string type: NUMBER
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'
System info: host: 'VMT1562', ip: '192.168.0.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_171'
Driver info: driver.version: unknown
at org.openqa.grid.internal.utils.configuration.StandaloneConfiguration.loadFromJson(StandaloneConfiguration.java:163)
at org.openqa.grid.internal.utils.configuration.GridNodeConfiguration.loadFromJSON(GridNodeConfiguration.java:395)
... 5 more

OS: Windows 10

@arshwarsi
Copy link

Facing the same issue : Below is my config files

Below is my selenium_grid_extras_config.json
{ "theConfigMap": { "auto_start_hub": "0", "auto_start_node": "1", "active_modules": [ "com.groupon.seleniumgridextras.tasks.DeleteOldLogsTask", "com.groupon.seleniumgridextras.tasks.Setup", "com.groupon.seleniumgridextras.tasks.Teardown", "com.groupon.seleniumgridextras.tasks.MoveMouse", "com.groupon.seleniumgridextras.tasks.VideoRecorder", "com.groupon.seleniumgridextras.tasks.KillAllFirefox", "com.groupon.seleniumgridextras.tasks.KillAllChrome", "com.groupon.seleniumgridextras.tasks.GetProcesses", "com.groupon.seleniumgridextras.tasks.KillPid", "com.groupon.seleniumgridextras.tasks.Netstat", "com.groupon.seleniumgridextras.tasks.Screenshot", "com.groupon.seleniumgridextras.tasks.ExposeDirectory", "com.groupon.seleniumgridextras.tasks.StartGrid", "com.groupon.seleniumgridextras.tasks.GetInfoForPort", "com.groupon.seleniumgridextras.tasks.GridStatus", "com.groupon.seleniumgridextras.tasks.KillAllByName", "com.groupon.seleniumgridextras.tasks.StopGrid", "com.groupon.seleniumgridextras.tasks.GetConfig", "com.groupon.seleniumgridextras.tasks.StopGridExtras", "com.groupon.seleniumgridextras.tasks.IEProtectedMode", "com.groupon.seleniumgridextras.tasks.IEMixedContent", "com.groupon.seleniumgridextras.tasks.Resolution", "com.groupon.seleniumgridextras.tasks.SystemInfo", "com.groupon.seleniumgridextras.tasks.GetNodeConfig", "com.groupon.seleniumgridextras.tasks.UpdateNodeConfig" ], "disabled_modules": [ "com.groupon.seleniumgridextras.tasks.KillAllSafari", "com.groupon.seleniumgridextras.tasks.RebootNode", "com.groupon.seleniumgridextras.tasks.SetAutoLogonUser", "com.groupon.seleniumgridextras.tasks.UpgradeGridExtrasTask", "com.groupon.seleniumgridextras.tasks.AutoUpgradeDrivers", "com.groupon.seleniumgridextras.tasks.DownloadWebdriver", "com.groupon.seleniumgridextras.tasks.DownloadIEDriver", "com.groupon.seleniumgridextras.tasks.DownloadChromeDriver", "com.groupon.seleniumgridextras.tasks.DownloadGeckoDriver" ], "tear_down": [ "com.groupon.seleniumgridextras.tasks.KillAllFirefox", "com.groupon.seleniumgridextras.tasks.KillAllChrome" ], "node_config_files": [ "node_5555.json" ], "node_additional_classpath": [ "../selenium-server-standalone-3.13.0.jar" ], "reboot_after_sessions": "0", "grid_jvm_x_options": "-Xmx1g -XX:ParallelGCThreads=5", "auto_update_drivers": "0", "hub_config_files": [], "hub_config": {}, "video_recording_options": { "videos_to_keep": "40" }, "webdriver": { "version": "3.13.0", "directory":"C:/MyProjects/lib/selenium-server-standalone-3.13.0.jar" }, "chromedriver": { "version": "2.40", "directory" : "C:/MyProjects/lib/chromedriver.exe", "bit": "64" } } }

Below is the command running
>java -Xmx1g -XX:ParallelGCThreads=5 -Dwebdriver.chrome.driver=C:/MyProjects/lib/chromedriver.exe -cp "./SeleniumGridExtras-2.0.4-SNAPSHOT-jar-with-dependencies.jar;../selenium-server-standalone-3.13.0.jar" org.openqa.grid.selenium.GridLauncherV3 -role node -nodeConfig node_5555.json -log log\node_5555.log

My node_5555.log file below :
{ "capabilities": [ { "seleniumProtocol": "WebDriver", "extension.sikuliCapability": true, "webdriver.chrome.driver": "C:/MyProjects/lib/chromedriver.exe", "browserName": "chrome", "maxInstances": 1, "version": "66.0.3359.117", "platform": "WIN10" } ], "loadedFromFile": "node_5555.json", "proxy": "com.groupon.seleniumgridextras.grid.proxies.SetupTeardownProxy", "servlets": [ "io.sterodium.extensions.node.SikuliExtensionServlet", "io.sterodium.extensions.node.upload.FileUploadServlet", "io.sterodium.extensions.node.download.FileDownloadServlet" ], "maxSession": 1, "port": 5555, "register": true, "unregisterIfStillDownAfter": 10000, "hubPort": 4444, "hubHost": "SeleniumHub", "host": "ee0f37e38405", "nodeStatusCheckTimeout": 10000, "custom": { "grid_extras_port": 3000 }, "downPollingLimit": 0 }

Please advice

@shankarkc
Copy link
Contributor

shankarkc commented Aug 13, 2018

This is because of SeleniumHQ/selenium#6275 Selenium grid is not taking

"custom": { "grid_extras_port": 3000 },

properly. If one removes it it works

@SrikanthSamala
Copy link
Author

-jar-with-dependencies.jar;\tmp\webdriver\3.14.0.jar
When i installed webdriver with 3.11.0 it is working fine.

@shankarkc
Copy link
Contributor

But I want to move to latest webdriver and browsers. So this issue is a blocker for that.

@leonkatz
Copy link

How do I fix this on the node? The hub starts up but the node will not, because the custom property is copied over.

@denis-platonov
Copy link

denis-platonov commented Aug 29, 2018

As mentioned earlier, it is because of SeleniumHQ/selenium#6275, so just transform port number to string type:
"custom": { "grid_extras_port": "3000" },
Worked for me

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

5 participants