question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
VarunDelftcommented, Jun 7, 2021

Hi @ambirag , I am still getting this error with selenium/hub:4.0.0-beta-4-prerelease-20210604 and selenium/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.

0reactions
github-actions[bot]commented, Oct 1, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No way to set maxSessions per browser type in Selenium Grid 4
Are you running the Grid in fully distributed mode or using Hub and node mode? If you think the issue is not related...
Read more >
Chrome Node is not registering to Selenium Hub after ...
We tried to find in the Selenium Grid 4 official page, but couldn't find much. Attaching docker-compose file for reference version: '3.8' ...
Read more >
Delay in Alfresco Node Creation Using Webscript
Hi All, I have an performance issue in using alfresco. I have integrated Kafka with alfresco as mentioned below link.
Read more >
The Delayed Auto-Start Flag Could Not Be Set - YouTube
The Delayed Auto-Start Flag Could Not Be Set – Windows Service Error FIX [Tutorial]If you receive The delayed auto-start flag could not be ......
Read more >
AnnotationHub; Error: failed to load resource; Timeout was ...
I am getting a timeout error when trying to load AnnotationHub object "AH13964". The error can be reproduced by: > hub = AnnotationHub()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found