java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Request timeout to after 180000 ms

547 views
Skip to first unread message

Abhishek Trivedi

unread,
Oct 7, 2022, 11:25:43 PM10/7/22
to Selenium Users
Hello Everyone,

We have deployed Selenium setup using Helm chart using https://github.com/SeleniumHQ/docker-selenium/blob/trunk/charts/selenium-grid/README.md and got its up and running from hub and node side .. but we are running into timeout issue 180000ms while sending parallel tests jobs to it.

we are using SE_SESSION_REQUEST_TIMEOUT= 1800 . 
K8s platform :- AKS
here are the logs .

Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '4.1.1', revision: 'e8fcc2cecf' System info: host: 'nrplpd-dvoapp05', ip: '10.42.105.61', os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-348.23.1.el8_5.x86_64', java.version: '17' Driver info: org.openqa.selenium.remote.RemoteWebDriver Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}}] Capabilities {}

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '4.1.1', revision: 'e8fcc2cecf' System info: host: 'nrplpd-dvoapp05', ip: '10.42.105.61', os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-348.23.1.el8_5.x86_64', java.version: '17' Driver info: org.openqa.selenium.remote.RemoteWebDriver Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}}] Capabilities {}    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:561)    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:230)    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:151)    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:138)    at gridTestCases2.Test2SeleniumSite10.testSeleniumPage(Test2SeleniumSite10.java:29)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.base/java.lang.reflect.Method.invoke(Method.java:568)    at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)    at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:673)    at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:220)    at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50)    at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:945)    at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:193)    at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)    at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128)    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)    at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.RuntimeException: NettyHttpHandler request execution error    at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:83)    at org.openqa.selenium.remote.http.RetryRequest.lambda$apply$6(RetryRequest.java:83)    at net.jodah.failsafe.Functions.lambda$get$0(Functions.java:48)    at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:66)    at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:66)    at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:66)    at net.jodah.failsafe.Execution.executeSync(Execution.java:128)    at net.jodah.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:379)    at net.jodah.failsafe.FailsafeExecutor.get(FailsafeExecutor.java:68)    at org.openqa.selenium.remote.http.RetryRequest.lambda$apply$7(RetryRequest.java:83)    at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)    at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)    at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:51)    at org.openqa.selenium.remote.http.RetryRequest.lambda$apply$6(RetryRequest.java:83)    at net.jodah.failsafe.Functions.lambda$get$0(Functions.java:48)    at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:66)    at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:66)    at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:66)    at net.jodah.failsafe.Execution.executeSync(Execution.java:128)    at net.jodah.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:379)    at net.jodah.failsafe.FailsafeExecutor.get(FailsafeExecutor.java:68)    at org.openqa.selenium.remote.http.RetryRequest.lambda$apply$7(RetryRequest.java:83)    at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)    at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)    at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:110)    at org.openqa.selenium.remote.tracing.TracedHttpClient.execute(TracedHttpClient.java:55)    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:102)    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84)    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156)    at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)    ... 19 more Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Request timeout to 20.121.78.156/20.121.78.156:4444 after 180000 ms    at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)    at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)    at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206)    at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:66)    ... 50 more Caused by: java.util.concurrent.TimeoutException: Request timeout to 20.121.78.156/20.121.78.156:4444 after 180000 ms    at org.asynchttpclient.netty.timeout.TimeoutTimerTask.expire(TimeoutTimerTask.java:43)    at org.asynchttpclient.netty.timeout.RequestTimeoutTimerTask.run(RequestTimeoutTimerTask.java:50)    at io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715)    at io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34)    at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703)    at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790)    at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503)    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)    ... 1 more

Reply all
Reply to author
Forward
0 new messages