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

Remote node not registering with hub #409

Open
dillanmann opened this issue Jun 21, 2018 · 11 comments
Open

Remote node not registering with hub #409

dillanmann opened this issue Jun 21, 2018 · 11 comments

Comments

@dillanmann
Copy link

dillanmann commented Jun 21, 2018

I'm having trouble with my extras node registering with the hub. I'd hoped not to have to post here but I can't get past the problem.

The config files are:

Hub Config

{
  "port": 4445,
  "newSessionWaitTimeout": 25000,
  "servlets": [
    "com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet"
  ],
  "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
  "throwOnCapabilityNotPresent": true,
  "nodePolling": 5000,
  "cleanUpCycle": 5000,
  "browserTimeout": 120000,
  "timeout": 120000,
  "maxSession": 5
}

Node Config

{
  "unregisterIfStillDownAfter": 10000,
  "capabilities": [
    {
      "seleniumProtocol": "WebDriver",
      "browserName": "firefox",
      "maxInstances": 3,
      "version": "",
      "platform": "VISTA"
    },
    {
      "seleniumProtocol": "WebDriver",
      "browserName": "internet explorer",
      "maxInstances": 1,
      "version": "11",
      "platform": "VISTA"
    },
    {
      "seleniumProtocol": "WebDriver",
      "browserName": "chrome",
      "maxInstances": 3,
      "version": "67",
      "platform": "VISTA"
    }
  ],
  "custom": {
    "grid_extras_port": 3000
  },
  "nodeStatusCheckTimeout": 10000,
  "hubHost": "10.10.1.25",
  "hubPort": 4445,
  "downPollingLimit": 0,
  "proxy": "com.groupon.seleniumgridextras.grid.proxies.SetupTeardownProxy",
  "loadedFromFile": "node_5555.json",
  "port": 5555,
  "servlets": [],
  "maxSession": 3,
  "registerCycle": 5000,
  "register": true
}

I'm using the latest version of SeleniumGridExtras (2.0.4, 15th April) for both the hub and node.

The hub is on a Windows Server (not sure version, whatever the latest is) VM and the node is a Windows 7 VM. I'm using the latest JRE (10.0.1, x64)

I've tried:

  • Start hub, start node
    • Hub starts, node downloads latest config from hub
    • Node never registers with hub (at least there is nothing in either log to suggest it does)

Interestingly I can start the hub and then use the selenium-server-standalone.jar (the raw selenium grid server), point it at the hub and it registers correctly and will run tests I point at the hub. My only issue with this is that I don't get the benefits of using Grid Extras this way.

Any input appreciated!

@mayukhg
Copy link

mayukhg commented Jul 12, 2018

Facing the same issue relating to Remote node unable to register to HUB. I am using the latest version of the Selenium Grid extras (12th July,2018)
Following is the error from the node log file
15:28:05.352 INFO [SeleniumServer.boot] - Welcome to Selenium for Workgroups....
15:28:05.352 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 5555
15:28:05.352 INFO [GridLauncherV3$3.launch] - Selenium Grid node is up and ready to register to the hub
15:28:05.363 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 5000 ms.
15:28:05.363 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://127.0.0.1:4444/grid/register
15:28:06.234 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: Error sending the registration request: The hub responded with 500

Following is my hub config
{
"port": 4444,
"newSessionWaitTimeout": 25000,
"servlets": [
"com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet"
],
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"nodePolling": 5000,
"cleanUpCycle": 5000,
"browserTimeout": 120000,
"timeout": 120000,
"maxSession": 5
}

Following is my node config
{
"capabilities": [
{
"seleniumProtocol": "WebDriver",
"browserName": "chrome",
"maxInstances": 3,
"version": "67",
"platform": "WIN10"
}
],
"loadedFromFile": "node_5555.json",
"proxy": "com.groupon.seleniumgridextras.grid.proxies.SetupTeardownProxy",
"servlets": [],
"maxSession": 3,
"port": 5555,
"register": true,
"unregisterIfStillDownAfter": 10000,
"hubPort": 4444,
"hubHost": "127.0.0.1",
"registerCycle": 5000,
"nodeStatusCheckTimeout": 10000,
"custom": {
"grid_extras_port": 3000
},
"downPollingLimit": 0
}

@rkieft
Copy link

rkieft commented Jul 16, 2018

@mayukhg just to verify... So you have a machine (VM or physical or what so ever) that functions as a HUB and as a NODE?

@mayukhg
Copy link

mayukhg commented Jul 16, 2018 via email

@leogcba
Copy link

leogcba commented Oct 12, 2018

Is there any update on this or any workaround? I'm facing the same problem but I have the hub in a different host than the node

@dillanmann
Copy link
Author

@leogcba My fix was unfortunately to just stop using Extras and just set up using the base Selenium Grid

@leogcba
Copy link

leogcba commented Oct 16, 2018

@leogcba My fix was unfortunately to just stop using Extras and just set up using the base Selenium Grid

What a pity! I think this project has a lot of potentials. I'll keep trying to make it work. I'll share my update or workaround, if I find any

@leogcba
Copy link

leogcba commented Oct 16, 2018

Hello guys! I've been performing a lot of tests regarding this bug and there seems to be something wrong with the WebDriver version. According this PR#420 there are some pending changes to make Selenium Grid Extras work with version 3.14.

Also, I've been performing some tests using the version 3.12 and I still getting the same error.

But If I use the WebDriver 3.13, the node is registred as expected.

This is my selenium_grid_extras_config.json:
{
"theConfigMap": {
"auto_update_browser_versions": "0",
"hub_config_files": [],
"auto_start_hub": "0",
"iedriver": {
"bit": "Win32",
"version": "3.13.0"
},
"default_role": "node",
"unregisterNodeDuringReboot": "false",
"chromedriver": {
"bit": "32",
"version": "2.42"
},
"auto_update_drivers": "0",
"video_recording_options": {
"videos_to_keep": "5"
},
"auto_start_node": "1",
"hub_config": {},
"geckodriver": {
"bit": "32",
"version": "0.23.0"
},
"log_maximum_age_ms": 864000000,
"reboot_after_sessions": "3",
"grid_extras_port": "3000",
"webdriver": {
"version": "3.13.0"
},
"node_config_files": [
"node_5555.json"
]
}
}

Let me know if you have the same results. Hope this helps.

Regards

@dillanmann
Copy link
Author

Oh excellent work @leogcba ! I hope the PR gets merged in soon, rolling my own infrastructure is a real pain, would much prefer to use Extras. I'm also not sure I'd be able to roll back to 3.13 so easily, but I'll take a look if it at least gets it working in the mean time!

@dillanmann
Copy link
Author

The 'close and comment' button is extremely unintuitive, apologies for the opening/closing!

@leogcba
Copy link

leogcba commented Oct 17, 2018

The 'close and comment' button is extremely unintuitive, apologies for the opening/closing!

It's ok. Let me now if you can get the same behavior w/ 3.13 in the grid ;)

@sureshbogireddy
Copy link

im still facing the issue with 3.141.59 version ?
does it not resolved yet.

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