-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: Deleted session from local Session Map #1922
Comments
@madhankumar866, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
That is expected when the session idle timeout is reached https://www.selenium.dev/documentation/grid/configuration/cli_options/ |
Yes You Are Correct But In My Case It happens when Activity is going on. |
Getting session id deleted
But My timeout is 300seconds when it reach 5 minutes of running period it is getting timeout |
What activity is going on when this happens? |
Was there any activity before that? Is the session is idle it ends. |
💬 Please ask questions at:
|
No I am running it in 1 node per request. Can you suggest me how can i troubleshoot it. I am just using a simple script to check it. |
You are only sharing bits of your setup, if you need help troubleshooting you need to provide a way to reproduce this, with code scripts and instructions showing how to execute them. |
Infrastructure ruuning in Aws EKS
Python 3.11.2 I Use a Jump host, Internal Network loadbalancer For Grid Communcation and script execution. Below is my simple script, Session id is deleted after 5 minutes. from distutils import config grid_url = 'aws.internal.loadbalancer' chrome_options = webdriver.ChromeOptions() |
What about the container logs? |
Here you can view jaeger portal for tracing
This is Chrome Container logs Below
|
Hi, I am facing exactly the same problem after switching from static chrome-nodes pool to keda + node autoscaler. selenium-hub logs, see timestamps:
The session values:
|
Why is it closed? @diemol |
Because no one has provided a way to reproduce it and the original poster did not reply anymore. We also need help to maintain that Keda integration. Seems the issue lies with Keda, or a better understanding of the configuration. I am considering moving the chart out of this repository because we have no time to maintain it. Hopefully, someone will jump in. |
I don't think the problem is in KEDA, since it's responsible only for a node provision. |
I think it also shutsdown nodes, but again, without a way to reproduce and someone who can help have a look we cannot do much. |
Well, I have no time digging in it, but I resolved it by switching from ScaledJob to ScaledObject with chrome-node as a target. Also, I've added terminationGracePeriod for Deployment:
I suppose the problem is somewhere in DRAIN_AFTER_SESSION_COUNT=1 for ScaledJob, it deletes the session from Session Map before it was completed. |
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?
Session is deleted from local Session Map when process is running state.
Command used to start Selenium Grid with Docker
Relevant log output
Operating System
amazon linux
Docker Selenium version (tag)
4.10.0-20230607
The text was updated successfully, but these errors were encountered: