Closed MajesticOl closed 1 year ago
@MajesticOl, thank you for creating this issue. We will troubleshoot it as soon as we can.
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!
I think it has to do something with the remote web driver actually initializing several sequential connections... my load balancer is routing them randomly inside the different containers, hence causing some session ID issue. Those result in the driver.version= unknown error somehow. When i deploy the grid with the helm chart.. it is working.
Exactly, the Hub is the one in charge of doing the balancing because it tracks where the session is executed, thus you won't get
Unable to execute request for an existing session: Unable to find session with ID:
Perhaps an alternative is to have a load balancer with sticky sessions, but that is out of the scope here.
I'm also getting this issue while downloading the files from nodes using the sessionid Is there a workaround or a solution for this issue?
2023-04-28 09:13:49 2023-04-28 09:15:32 13:15:32.472 WARN [SpanWrappedHttpHandler.execute] - Unable to execute request: Cannot find session with id: 54a34e18b1c7c9f9a3cfe2e7713c180d 2023-04-28 09:15:32 Build info: version: '4.8.3', revision: 'b19b418e60' 2023-04-28 09:15:32 System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.16.3-microsoft-standard-WSL2', java.version: '11.0.18' 2023-04-28 09:15:32 Driver info: driver.version: unknown 2023-04-28 09:15:32 org.openqa.selenium.NoSuchSessionException: Cannot find session with id: 54a34e18b1c7c9f9a3cfe2e7713c180d 2023-04-28 09:15:32 Build info: version: '4.8.3', revision: 'b19b418e60' 2023-04-28 09:15:32 System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.16.3-microsoft-standard-WSL2', java.version: '11.0.18' 2023-04-28 09:15:32 Driver info: driver.version: unknown 2023-04-28 09:15:32 at org.openqa.selenium.grid.node.local.LocalNode.downloadFile(LocalNode.java:605) 2023-04-28 09:15:32 at org.openqa.selenium.grid.node.DownloadFile.execute(DownloadFile.java:39) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Route$TemplatizedRoute.handle(Route.java:192) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Route.execute(Route.java:68) 2023-04-28 09:15:32 at org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler.execute(SpanWrappedHttpHandler.java:86) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Route.execute(Route.java:68) 2023-04-28 09:15:32 at org.openqa.selenium.grid.node.Node.execute(Node.java:255) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Route.execute(Route.java:68) 2023-04-28 09:15:32 at org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35) 2023-04-28 09:15:32 at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64) 2023-04-28 09:15:32 at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44) 2023-04-28 09:15:32 at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64) 2023-04-28 09:15:32 at org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44) 2023-04-28 09:15:32 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 2023-04-28 09:15:32 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 2023-04-28 09:15:32 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 2023-04-28 09:15:32 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 2023-04-28 09:15:32 at java.base/java.lang.Thread.run(Thread.java:829) 2023-04-28 09:15:32 13:15:32.474 WARN [SeleniumSpanExporter$1.lambda$export$1] - Unable to execute request: Cannot find session with id: 54a34e18b1c7c9f9a3cfe2e7713c180d
Did this issue got fixed? I'm facing the same issue here. Any Help?
09:06:18.498 WARN [SeleniumSpanExporter$1.lambda$export$1] - Unable to execute request for an existing session: Unable to find session with ID: Build info: version: '4.15.0', revision: '1d14b5521b' System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '21' Driver info: driver.version: unknown 09:06:18.499 WARN [SeleniumSpanExporter$1.lambda$export$1] - org.openqa.selenium.NoSuchSessionException: Unable to find session with ID: Build info: version: '4.15.0', revision: '1d14b5521b' System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '21' Driver info: driver.version: unknown at org.openqa.selenium.grid.sessionmap.local.LocalSessionMap.get(LocalSessionMap.java:132) at org.openqa.selenium.grid.router.HandleSession.lambda$loadSessionId$4(HandleSession.java:160) at io.opentelemetry.context.Context.lambda$wrap$2(Context.java:224) at org.openqa.selenium.grid.router.HandleSession.execute(HandleSession.java:122) at org.openqa.selenium.remote.http.Route$PredicatedRoute.handle(Route.java:382) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.grid.router.Router.execute(Router.java:87) at org.openqa.selenium.grid.web.CheckOriginHeader.lambda$apply$0(CheckOriginHeader.java:69) at org.openqa.selenium.grid.web.CheckContentTypeHeader.lambda$apply$0(CheckContentTypeHeader.java:75) at org.openqa.selenium.grid.web.EnsureSpecCompliantResponseHeaders.lambda$apply$0(EnsureSpecCompliantResponseHeaders.java:34) at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:63) at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.http.Route$NestedRoute.handle(Route.java:271) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345) at org.openqa.selenium.remote.http.Route.execute(Route.java:69) at org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35) at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44) at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:63) at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44) at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:63) at org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)
09:06:18.500 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "0f9ff71346607e4338409e3eb798203c","eventTime": 1700451378498414000,"eventName": "exception","attributes": {"exception.message": "Unable to execute request for an existing session: Unable to find session with ID: \nBuild info: version: '4.15.0', revision: '1d14b5521b'\nSystem info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '21'\nDriver info: driver.version: unknown","exception.stacktrace": "org.openqa.selenium.NoSuchSessionException: Unable to find session with ID: \nBuild info: version: '4.15.0', revision: '1d14b5521b'\nSystem info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '21'\nDriver info: driver.version: unknown\r\n\tat org.openqa.selenium.grid.sessionmap.local.LocalSessionMap.get(LocalSessionMap.java:132)\r\n\tat org.openqa.selenium.grid.router.HandleSession.lambda$loadSessionId$4(HandleSession.java:160)\r\n\tat io.opentelemetry.context.Context.lambda$wrap$2(Context.java:224)\r\n\tat org.openqa.selenium.grid.router.HandleSession.execute(HandleSession.java:122)\r\n\tat org.openqa.selenium.remote.http.Route$PredicatedRoute.handle(Route.java:382)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.grid.router.Router.execute(Router.java:87)\r\n\tat org.openqa.selenium.grid.web.CheckOriginHeader.lambda$apply$0(CheckOriginHeader.java:69)\r\n\tat org.openqa.selenium.grid.web.CheckContentTypeHeader.lambda$apply$0(CheckContentTypeHeader.java:75)\r\n\tat org.openqa.selenium.grid.web.EnsureSpecCompliantResponseHeaders.lambda$apply$0(EnsureSpecCompliantResponseHeaders.java:34)\r\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:63)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.http.Route$NestedRoute.handle(Route.java:271)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:345)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:69)\r\n\tat org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35)\r\n\tat org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)\r\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:63)\r\n\tat org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)\r\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:63)\r\n\tat org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44)\r\n\tat java.base\u002fjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)\r\n\tat java.base\u002fjava.util.concurrent.FutureTask.run(FutureTask.java:317)\r\n\tat java.base\u002fjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\r\n\tat java.base\u002fjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\r\n\tat java.base\u002fjava.lang.Thread.run(Thread.java:1583)\r\n","exception.type": "org.openqa.selenium.NoSuchSessionException","http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.router.HandleSession","http.host": "localhost:4444","http.method": "DELETE","http.scheme": "HTTP","http.target": "\u002fsession\u002f","session.id": ""}}
The fix for the reported issue is to use the grid with a hub/node setup or to change the implementation of the load balancer. If that is not applicable to the issue you have, please raise a new one.
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.
What happened?
I am using 2 Selenium Standalone Server inside a Kubernetes environment (selenium/standalone-chrome:4.8.3-20230404). Both are behind a single LoadBalancing Service and are to be expected to be connectable through several Selenium Test Environments written in Java Spring Boot. (I know that i should rather use hub and node probably... but for ease of setup i am just using the Standalone Servers anyway.) The Problem i am facing is that i constantly get a driver version unknown error.
The Problem is that my Version actually do match ! Inside the pom.xml i am using following libraries:
`
`
In case you are wondering... i somehow had to add the opentelemetry dependencies manually for the first time after upgrading to Java version 18.
Any clue what is going on ? I think it might have to do something with session termination ? I am passing following env variables to the selenium Standalone Servers:
SE_NODE_OVERRIDE_MAX_SESSIONS: "true" SE_NODE_MAX_SESSIONS: "40" START_XVFB: "false" JAVA_OPTS: "-Dwebdriver.chrome.whitelistedIps=" SE_DRAIN_AFTER_SESSION_COUNT: "500"
Any help greatly appreciated... Best regards
How can we reproduce the issue?
Relevant log output
Operating System
Ubuntu 20.04 LTS
Selenium version
selenium/standalone-chrome:4.8.3-20230404
What are the browser(s) and version(s) where you see this issue?
selenium/standalone-chrome:4.8.3-20230404
What are the browser driver(s) and version(s) where you see this issue?
selenium/standalone-chrome:4.8.3-20230404
Are you using Selenium Grid?
selenium/standalone-chrome:4.8.3-20230404