groupon / Selenium-Grid-Extras

Simplify the management of the Selenium Grid Nodes and stabilize said nodes by cleaning up the test environment after the build has been completed
BSD 3-Clause "New" or "Revised" License
536 stars 209 forks source link

Win10(on virtual PCs) Nodes didn't register on hub(CentOS7) after upgrade from older version #389

Open nkalgin opened 6 years ago

nkalgin commented 6 years ago

Win10(on virtual PCs) Nodes didn't register on hub(CentOS7) Grid extras - 2.0.1 All required drivers downloaded well. Webdriver version 3.9.1(both hub and node) Node and hub configs has been taken from older Grid-Extras version(1.12.12 with webdriver 2.53.1) Nativ selenium stanalone server on node - registered well on hub(grid extras 2.0.1), but starting IE session invokes Firefox session

smccarthy commented 6 years ago

@nkalgin Can you attach your config files? the node and hub config file, as well as the node and hub selenium grid extras config file? There was an issue with selenium grid extras 1.X and selenium 3.7.1+ , which is why we created selenium grid extras 2.X. Is it possible to remove your config files (back them up), and run through the setup of selenium-grid-extras 2.0.1 again ?

nkalgin commented 6 years ago

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
}

Hub Selenium Grid Extras config

{
  "theConfigMap": {
    "hub_config_files": [
      "hub_4444.json"
    ],
    "auto_start_hub": "1",
    "iedriver": {
      "version": "9.0.0"
    },
    "default_role": "hub",
    "chromedriver": {
      "bit": "64",
      "version": "2.35"
    },
    "auto_update_drivers": "1",
    "auto_start_node": "0",
    "hub_config": {
    "host": "10.30.130.30"
    },
    "geckodriver": {
      "bit": "32",
      "version": "0.19.1"
    },
    "log_maximum_age_ms": 1.728E8,
    "reboot_after_sessions": "0",
    "grid_extras_port": "3000",
    "webdriver": {
      "version": "3.9.1"
    },
    "node_config_files": []
  }

Node config:

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

Node Selenium Grid Extras config:

{
  "theConfigMap": {
    "auto_update_browser_versions": "0",
    "hub_config_files": [],
    "auto_start_hub": "0",
    "iedriver": {
      "bit": "Win32",
      "version": "3.7.0"
    },
    "default_role": "node",
    "unregisterNodeDuringReboot": "false",
    "chromedriver": {
      "bit": "32",
      "version": "2.35"
    },
    "auto_update_drivers": "0",
    "video_recording_options": {
      "record_test_videos": "false"
    },
    "auto_start_node": "1",
    "hub_config": {},
    "geckodriver": {
      "bit": "32",
      "version": "0.19.1"
    },
    "log_maximum_age_ms": 172800000,
    "reboot_after_sessions": "0",
    "grid_extras_port": "3000",
    "webdriver": {
      "version": "3.9.1"
    },
    "node_config_files": [
      "node_5555.json"
    ]
  }
}

From Node log:

11:17:07.528 INFO - Starting auto registration thread. Will try to register every 5000 ms.
11:17:07.529 INFO - Registering the node to the hub: http://10.30.130.30:4444/grid/register
11:17:07.928 INFO - Couldn't register this node: Error sending the registration request: The hub responded with 500:Server Error
nkalgin commented 6 years ago

I'm using SeleniumGridExtras-2.0.1-SNAPSHOT-jar-with-dependencies.jar for grid extras

patrickdargel commented 6 years ago

hey,

one thing, that sticks out for me is :

Hub Selenium Grid Extras config

"iedriver": { "version": "9.0.0" },

the latest version is imho: 3.9.0 (you can check that here http://selenium-release.storage.googleapis.com/index.html)

maybe this will already fix it.

On Mon, Feb 12, 2018 at 8:06 AM, nkalgin notifications@github.com wrote:

I'm using SeleniumGridExtras-2.0.1-SNAPSHOT-jar-with-dependencies.jar for grid extras

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/groupon/Selenium-Grid-Extras/issues/389#issuecomment-364842197, or mute the thread https://github.com/notifications/unsubscribe-auth/AL61vBKW_XZ4ximMz4UPu3n9PHS3lEh0ks5tT-L5gaJpZM4R_oT4 .

--

Sincerely,

Patrick Dargel

BMX QA Engineer & Automation Developer | GROUPON

seat Nr: 3-1-011

patrick.dargel@groupon.com

..............................................................................................................

Groupon.de ist ein Angebot der Groupon International Limited

Groupon GmbH | Hausvogteiplatz 2 | 10117 Berlin

Geschäftsführer: Dominik Dreyer, John Becvar

Eingetragen beim Amtsgericht Charlottenburg Berlin, HRB 123512 B

Ust.-ID Nr. DE 268 596 614

VERTRAULICHKEITSHINWEIS: Diese Nachricht ist vertraulich. Sie darf ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen. Jede Nutzung oder Weitergabe des Inhalts dieser Nachricht ist unzulässig.

CONFIDENTIALITY NOTICE: This message (including any attachments) is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error please contact the sender (by return e-mail) immediately and delete this message. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.

Please consider the environment before printing this e-mail

nkalgin commented 6 years ago

already try it, without results