selenium webdriver - Jenkins SeleniumGrid Cannot maintain connection to nodes -
i running selenium grid several remote machines, windows server2012. same grid used work set of windows 7 vms, took whole system offline several weeks, , when trying spin new set of vms, can't seem tests running.
i using nightwatchjs develop , run tests. when attempt run tests following error:
12:29:43 [91m12:29:40[39m [1;31merror retrieving new session selenium server[0m 12:29:43 [91m12:29:40[39m [0;31mconnection refused! selenium server started? 12:29:43 [91m12:29:40[39m [0m 12:29:43 [91m12:29:40[39m [0;90m{ error: socket hang 12:29:43 [91m12:29:40[39m @ createhanguperror (_http_client.js:253:15) 12:29:43 [91m12:29:40[39m @ socket.socketcloselistener (_http_client.js:285:23) 12:29:43 [91m12:29:40[39m @ emitone (events.js:101:20) 12:29:43 [91m12:29:40[39m @ socket.emit (events.js:188:7) 12:29:43 [91m12:29:40[39m @ tcp._handle.close [as _onclose] (net.js:497:12) code: 'econnreset' }[0m
i have verified server running on intended selenium node , registers correctly seleniumgrid running on jenkins machine. appears in list of registered remote controls on plug-in main screen.
i reviewed seleniumgrid console in jenkins , see following logs seem indicate that grid receiving registration signal, can't connect after that:
sep 12, 2017 12:27:14 pm hudson.plugins.selenium.hublauncher call off: grid hub started on port 4444 args: -maxsession 5 -timeout 300 -browsertimeout 0 -host jenkins2.rsp.redacted.com sep 12, 2017 12:27:24 pm org.openqa.grid.internal.registry add info: registered node http://10.redacted.11:5555 sep 12, 2017 12:27:44 pm org.openqa.grid.selenium.proxy.defaultremoteproxy onevent info: marking node http://10.redacted.11:5555 down: cannot reach node 2 tries channel stopped
my next step review security settings on both jenkins machine , node. on node went little crazy , enabled incoming connections on ports. on jenkins enabled 34011 , 4444 bypass firewall. no change in results.
to try , further narrow down issue, set second selenium grid on laptop (same network) , tried use run tests off server2012 vm. voila! worked. leads me believe sort of configuration issue jenkins , plug-in.
i further tested setting laptop node , tried run tests. same issue -- node registers jenkins grid, shows in registered remote controls, not respond when try pipe tests down it.
this being run nightwatch, below nightwatch.json:
{ "src_folders" : [ "tests", "tests/account", "tests/checkout", "tests/navigation", "tests/navigation/about", "tests/navigation/career", "tests/development", "tests/merchandise", "tests/cart", ], "output_folder" : "reports", "custom_commands_path" : "", "custom_assertions_path" : "", "page_objects_path" : "pages", "globals_path" : "globals", "test_workers":{ "enabled": true, "workers": 1 }, "selenium" : { "start_process" : false, "server_path" : "/dpm/selenium/selenium-server-standalone-3.4.0.jar", "log_path" : "", "port" : 4444, "cli_args" : { "webdriver.chrome.driver" : "drivers/chromedriver", "webdriver.gecko.driver" : "drivers/geckodriver15", "webdriver.edge.driver" : "", "webdriver.ie.driver" : "" } }, "test_settings" : { "default" : { "launch_url" : "https://stage.redacted.com", "selenium_port" : 4444, "selenium_host" : "localhost", "silent": true, "medium_time_out": 6000, "screenshots" : { "enabled" : false, "path" : "" }, "desiredcapabilities": { "browsername": "firefox", "marionette": true } }, "ie" : { "desiredcapabilities": { "browsername": "internet explorer" } }, "firefox" : { "desiredcapabilities": { "browsername": "firefox", "marionette": true } }, "chrome" : { "desiredcapabilities": { "browsername": "chrome" } }, "edge" : { "desiredcapabilities": { "browsername": "microsoftedge" } }, "safari" : { "desiredcapabilities": { "browsername": "safari", "javascriptenabled" : true, "acceptsslcerts" : true } } }, "production" : { "launch_url" : "http://www.redacted.com", "selenium_port" : 4444, "selenium_host" : "localhost", "silent": true, "screenshots" : { "enabled" : false, "path" : "" }, "desiredcapabilities": { "browsername": "firefox", "marionette": true } } }
Comments
Post a Comment