Node not attaching to hub due to "delay must be less than the maxDuration" error 4.0.0-beta-1-20210215
See original GitHub issueđ Bug Report
version: 4.0.0-beta-1-20210215 When deploy grid in k8s, nodes are not registering with grid. Reason: `kubectl logs test-selenium-chrome-54777b787-f94mf 2021-03-01 16:14:07,017 INFO Included extra file â/etc/supervisor/conf.d/selenium.confâ during parsing 2021-03-01 16:14:07,099 INFO supervisord started with pid 7 2021-03-01 16:14:08,101 INFO spawned: âxvfbâ with pid 9 2021-03-01 16:14:08,102 INFO spawned: âvncâ with pid 10 2021-03-01 16:14:08,103 INFO spawned: âselenium-nodeâ with pid 11 2021-03-01 16:14:08,106 INFO success: xvfb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2021-03-01 16:14:08,106 INFO success: vnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2021-03-01 16:14:08,106 INFO success: selenium-node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) Configuring server⌠Setting up SE_NODE_HOST⌠Setting up SE_NODE_PORT⌠Starting Selenium Grid Node with configuration: [events] publish = âtcp://test-selenium-hub:4442â subscribe = âtcp://test-selenium-hub:4443â
[node] max-concurrent-sessions = 1
Picked up JAVA_TOOL_OPTIONS: -Xmx700m 16:14:11.505 INFO [LogManager$RootLogger.log] - Using the system default encoding 16:14:11.700 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing 16:14:12.305 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://test-selenium-hub:4442 and tcp://test-selenium-hub:4443 16:14:12.608 INFO [UnboundZmqEventBus.<init>] - Sockets created 16:14:12.709 INFO [UnboundZmqEventBus.<init>] - Event bus ready 16:14:13.199 INFO [NodeServer.createHandlers] - Reporting self as: http://10.5.90.151:5555 16:14:13.409 INFO [NodeOptions.report] - Adding Chrome for {âbrowserNameâ: âchromeâ} 1 times 16:14:13.500 INFO [Node.<init>] - Binding additional locator mechanisms: name, id Exception in thread âmainâ 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:193) at org.openqa.selenium.grid.node.httpd.NodeServer$1.start(NodeServer.java:183) at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:224) at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$2(TemplateGridCommand.java:101) at org.openqa.selenium.grid.Main.launch(Main.java:154) at org.openqa.selenium.grid.Main.go(Main.java:88) at org.openqa.selenium.grid.Main.main(Main.java:54) `
To Reproduce
I found the cause, which is part of this commit a) https://github.com/SeleniumHQ/selenium/commit/8500500c82f088e64afc7496e706b4c590e994f0#diff-5e7836f90bf50768ae656f9ddcfec06a3c33e83f277dd0662b67770edcc06f29
Cause: The name of ââregister-periodâ should be âregister-periodâ and not âregister-cycleâ
Here you can see, getRegisterPeriod() calls with name âregister-periodâ, but because there is no âregister-periodâ in a), it defaults to 1, but getRegisterCycle gets 10, hence the above error. âdelay must be less than the maxDurationâ
Environment
OS: LINUX Language Bindings version: Java Selenium Grid version (if applicable): 4.0.0-beta-1-20210215
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Good catch, thank you for reporting this, @ambirag!
created this https://github.com/SeleniumHQ/selenium/issues/9378