SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.48k stars 8.15k forks source link

ETIMEDOUT error on Grid 4 while executing testcases [🐛 Bug]: #13371

Closed aniketkumar2012 closed 9 months ago

aniketkumar2012 commented 9 months ago

What happened?

Currently, we are using Selenium Grid 3.141.59v(deployed on AWS Ecs Fargate) for our daily test cases execution build. We have around 2000 test cases which are taking 1 hour to get executed.

Now, are planning to switch to Grid 4 latest version. We have deployed on AWS Farageta and it is working fine for couple of test cases, but the main issue occour when we use parallel execution with the 95 instances configure in our NightwatchJs FW.

Getting below error ETIMEDOUT session===="1a63cdfc544134e1ffacb165f0fc1e48" Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/window/maximize - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) ℹ Loaded url https://mywebsite/login/default in 2205ms Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/0CC5951EE10D85C884533431A4FDD6BF_element_12/value - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/0CC5951EE10D85C884533431A4FDD6BF_element_15/clear - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/0CC5951EE10D85C884533431A4FDD6BF_element_15/value - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) ⠇ Loading url: https://mywebsite.com/rfa/jsp/main/Main.jsp Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/url - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 ℹ Loaded url https://mywebsite.com/rfa/jsp/main/Main.jsp in 24047ms Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/execute/sync - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/execute/sync - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/execute/sync - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/B0D463D020776D17F33BFCD786F0CB51_element_61/click - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/B0D463D020776D17F33BFCD786F0CB51_element_61/click - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error GET http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/B0D463D020776D17F33BFCD786F0CB51_element_62/css/max-height - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error GET http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element/B0D463D020776D17F33BFCD786F0CB51_element_63/css/max-height - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element - ETIMEDOUT Error: connect ETIMEDOUT 10.238.196.249:4444 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) Error POST http://mygridserver4:4444 /session/1a63cdfc544134e1ffacb165f0fc1e48/element - ETIMEDOUT

How can we reproduce the issue?

Execute the test cases in parallel it should be more than 30 instances. 
After 20 to 30 minutes we start seeing the error.

Relevant log output

Selenium node logs, will provide later. once confirm with my team

Operating System

Linux

Selenium version

4.16.1

What are the browser(s) and version(s) where you see this issue?

4.16.1

What are the browser driver(s) and version(s) where you see this issue?

120.0.6099.71

Are you using Selenium Grid?

yes

github-actions[bot] commented 9 months ago

@aniketkumar2012, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

titusfortner commented 9 months ago

We can't do anything here without logs or a way to reproduce it.

github-actions[bot] commented 9 months ago

Hi, @aniketkumar2012. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

diemol commented 9 months ago

We will reopen this when we get more information.

github-actions[bot] commented 8 months ago

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.