Open s4ur4bh opened 8 years ago
What version of Ubuntu ? Also can you post the selenium grid extras config file and the hub and node config files ?
Hi Shawn, I am using xubuntu 14.04 LTS distribution. Unfortunately I can't send you the config files as it deleted.
Regards, Saurabh Shukla On 7 Jul 2016 6:30 p.m., "Shawn McCarthy" notifications@github.com wrote:
What version of Ubuntu ? Also can you post the selenium grid extras config file and the hub and node config files ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/groupon/Selenium-Grid-Extras/issues/242#issuecomment-231070156, or mute the thread https://github.com/notifications/unsubscribe/AEaAfXqk3WvSpmkV2hTwsejj_cqkvTBZks5qTPhQgaJpZM4JGzAk .
@saurabh8346 version of grid extras ?
Latest one which is with the tag(non windows fixes).
On 7 Jul 2016 7:45 p.m., "Shawn McCarthy" notifications@github.com wrote:
@saurabh8346 https://github.com/saurabh8346 version of grid extras ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/groupon/Selenium-Grid-Extras/issues/242#issuecomment-231090320, or mute the thread https://github.com/notifications/unsubscribe/AEaAff_TU-4AaQFKvH_m7B6N1vArrraOks5qTQnogaJpZM4JGzAk .
@saurabh8346 Ok thanks. I had an issue with my XUbuntu install, and haven't had time to fix it. Btw, there was a new release yesterday 1.12.3 (one newer than the one you have). This probably won't fix your issue, but maybe its worth a shot.
Thanks Shawn, Let me try this version.
On Fri, Jul 15, 2016 at 10:40 PM, Shawn McCarthy notifications@github.com wrote:
@saurabh8346 https://github.com/saurabh8346 Ok thanks. I had an issue with my XUbuntu install, and haven't had time to fix it. Btw, there was a new release yesterday 1.12.3 (one newer than the one you have). This probably won't fix your issue, but maybe its worth a shot.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/groupon/Selenium-Grid-Extras/issues/242#issuecomment-233010635, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaAfZKxp9dT3IlsIP2Em7nIXajdVJH6ks5qV77_gaJpZM4JGzAk .
Thanks & Regards Saurabh Shukla
Hi Shawn, I have tried 1.12.3(Newer version as suggested), but unfortunately it doesn't solved the problem. Thanks Saurabh
@saurabh8346 Ok, something does seem off. I get this : Navigate to http://127.0.1.1:3000 for more details
Notice its not 127.0.0.1
Is yours a VM?
I see same issue with my Ubuntu machine when configuring as node.
Here are the configs -
selenium_grid_extras_config.json
{
"theConfigMap": {
"auto_update_browser_versions": "1",
"hub_config_files": [],
"auto_start_hub": "0",
"iedriver": {
"version": "3.3.0"
},
"default_role": "node",
"unregisterNodeDuringReboot": "true",
"chromedriver": {
"bit": "64",
"version": "2.28"
},
"auto_update_drivers": "1",
"video_recording_options": {
"videos_to_keep": "40"
},
"auto_start_node": "1",
"hub_config": {},
"geckodriver": {
"version": "0.15.0"
},
"log_maximum_age_ms": 8.64E8,
"reboot_after_sessions": "10",
"grid_extras_port": "3000",
"webdriver": {
"version": "3.3.1"
},
"node_config_files": [
"node_5555.json"
]
}
}
selenium-node-config.json
{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 10,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 10,
"seleniumProtocol": "WebDriver"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 10,
"port": 5555,
"register": true,
"registerCycle": 5000,
"hub": "http://
selenium-hub-config.json
{
"port": 4444,
"newSessionWaitTimeout": -1,
"servlets" : [],
"withoutServlets": [],
"custom": {},
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"cleanUpCycle": 5000,
"role": "hub",
"debug": false,
"browserTimeout": 60,
"timeout": 1800
}
I figured out what my problem was. The hostname was not mapped to ip address properly. I just had to run this once
Try this if you see this kind of warnings on your linux machine - sudo: unable to resolve host ip-XXXXXXXXXX
sudo sed -i /etc/hosts -e "s/^127.0.0.1 localhost$/127.0.0.1 localhost $(hostname)/"
I am launching grid with below configuration: What is the default Role of this computer? (1 - node | 2 - hub | 3 - hub & node) Default Value: 1 3 '3' was set as your value
What is the HOST for the Selenium Grid Hub? Default Value: 127.0.0.1
'127.0.0.1' was set as your value
What is the PORT for the Selenium Grid Hub? Default Value: 4444 8080 '8080' was set as your value What is node Platform? (WINDOWS|XP|VISTA|WIN8|WIN8_1|WIN10|MAC|LINUX|UNIX|ANDROID)
Default Value: LINUX
'LINUX' was set as your value
Will this node run 'Firefox' (1-yes/0-no) Default Value: 0 1 '1' was set as your value
What version of 'Firefox' is installed? Default Value: 47 '47' was set as your value
Will this node run 'InternetExplorer' (1-yes/0-no) Default Value: 0 0 '0' was set as your value
Will this node run 'Edge' (1-yes/0-no) Default Value: 0 0 '0' was set as your value
Will this node run 'Chrome' (1-yes/0-no) Default Value: 0 1 '1' was set as your value
What version of 'Chrome' is installed? Default Value: 51 '51' was set as your value
Will this node run 'Safari' (1-yes/0-no) Default Value: 0 0 '0' was set as your value
Will this node run 'PhantomJs' (1-yes/0-no) Default Value: 0 0 '0' was set as your value
Would you like this Node to auto update browser versions? (1-yes/0-no) Default Value: 0 1 '1' was set as your value
Will this node run 'Appium' (1-yes/0-no) Default Value: 0 0 '0' was set as your value
Maximum days to keep log file Default Value: 10
'10' was set as your value
Would you like WebDriver, IEDriver and ChromeDriver to auto update (1-yes/0-no) Default Value: 1 1 '1' was set as your value Current Selenium Driver Version: 2.53.1 Current IE Driver Version: null Current Chrome Driver Version: 2.22 Current Chrome Driver Bit: 32
Should this Node record test runs? (1-yes/0-no) Default Value: 1 1 '1' was set as your value
How many videos should node keep in threads? Default Value: 40
'40' was set as your value Thank you, your answers were recorded to 'selenium_grid_extras_config.json'
But At Last the message displayed is: Selenium Grid Extras has been started! Navigate to http://null:3000 for more details
Note: Tried the same configuration with windows and it is working fine. For ubuntu it always showing null as IP for any Role(Hub, Node, HUb and Node).
Showing null instead of IP of HUB.