4.0.0-beta-3 : Node not attaching to hub due to "delay must be less than the maxDuration" error
See original GitHub issue🐛 Bug Report
Selenium Grid (4.0.0-beta-3 (revision fcfbc6ba25)) - using image 4.0.0-beta-3-prerelease-20210402 When deployed to k8s, both hub and node comes up, but following error is thrown in the node , due to which node is not attached to Grid was deployed in standard hub/node mode.
See https://github.com/SeleniumHQ/selenium/issues/9226 for reference, it was fixed but same issue is showing up again.
node log ` [node] session-timeout = “300” override-max-sessions = false max-sessions = 1
Picked up JAVA_TOOL_OPTIONS: -Xmx700m 10:45:23.051 INFO [LogManager$RootLogger.log] - Using the system default encoding 10:45:23.054 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing 10:45:23.746 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://test-selenium-hub:4442 and tcp://test-selenium-hub:4443 10:45:24.244 INFO [UnboundZmqEventBus.<init>] - Sockets created 10:45:24.345 INFO [UnboundZmqEventBus.<init>] - Event bus ready 10:45:24.743 INFO [NodeServer.createHandlers] - Reporting self as: http://10.5.12.193:5555 10:45:24.844 INFO [NodeOptions.getSessionFactories] - Detected 1 available processors 10:45:24.950 INFO [NodeOptions.discoverDrivers] - Discovered 1 driver(s) 10:45:25.144 INFO [NodeOptions.report] - Adding Chrome for {“browserName”: “chrome”,“platformName”: “LINUX”} 1 times 10:45:25.150 INFO [Node.<init>] - Binding additional locator mechanisms: name, id java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77) at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70) Caused by: java.lang.IllegalStateException: delay must be less than the maxDuration at net.jodah.failsafe.internal.util.Assert.state(Assert.java:38) at net.jodah.failsafe.RetryPolicy.withDelay(RetryPolicy.java:415) at org.openqa.selenium.grid.node.httpd.NodeServer$1.start(NodeServer.java:196) at org.openqa.selenium.grid.node.httpd.NodeServer$1.start(NodeServer.java:186) at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:227) at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129) at org.openqa.selenium.grid.Main.launch(Main.java:83) at org.openqa.selenium.grid.Main.go(Main.java:57) at org.openqa.selenium.grid.Main.main(Main.java:42) … 6 more 2021-04-13 10:45:26,265 INFO exited: selenium-node (exit status 1; not expected)`
hub log ` 2021-04-13 10:45:01,694 INFO Included extra file “/etc/supervisor/conf.d/selenium-grid-hub.conf” during parsing 2021-04-13 10:45:01,696 INFO supervisord started with pid 8 2021-04-13 10:45:02,698 INFO spawned: ‘selenium-grid-hub’ with pid 10 Using SE_HUB_HOST: test-selenium-hub Using SE_HUB_PORT: 4444 2021-04-13 10:45:02,704 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) Picked up JAVA_TOOL_OPTIONS: -Xmx2024m -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -Xms64M 10:45:02.941 INFO [LogManager$RootLogger.log] - Using the system default encoding 10:45:02.943 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing 10:45:02.998 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://:4442, advertising as tcp://10.5.78.145:4442], XSUB binding to [binding to tcp://:4443, advertising as tcp://10.5.78.145:4443] 10:45:03.040 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://10.5.78.145:4442 and tcp://10.5.78.145:4443 10:45:03.054 INFO [UnboundZmqEventBus.<init>] - Sockets created 10:45:03.155 INFO [UnboundZmqEventBus.<init>] - Event bus ready 10:45:03.602 INFO [Hub.execute] - Started Selenium Hub 4.0.0-beta-3 (revision fcfbc6ba25): http://test-selenium-hub:4444
`
To Reproduce
Just create a grid using 4.0.0-beta-3-prerelease-20210402 image
Expected behavior
node should be attached to the hub
Environment
OS: Linux Browser: Chrome Browser version: Google Chrome 89.0.4389.114 Browser Driver version: ChromeDriver 89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}) Language Bindings version: Java Selenium Grid version (if applicable): 4.0.0-beta-3-prerelease-20210402
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
Hi @ambirag , I am still getting this error with
selenium/hub:4.0.0-beta-4-prerelease-20210604
andselenium/node-chrome:4.0.0-beta-4-prerelease-20210604
. container.log. I am referring to the example helm templates in https://github.com/ambirag/da-kubes/tree/selenium4alpha6/selenium/templates.This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.