-
-
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]: SessionNotCreatedException Warnings Periodically Against node-chrome and node-firefox Docker Containers #1992
Comments
@garth-gross, 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! |
Hi, We are trying to upgrade from 4.8 to 4.15 to have the latest version of browsers, and we are facing the same problem! Parallel testing no longer works. This is a huge problem/blocker. |
I'm facing the same issue with selenium grid 4.15 for the three nodes chrome, firefox and edge when running tests in parallel. |
I have the same problem, last working version was 4.8.3-20230404 |
same issue here with grid 4.14.1 |
For us the issue started after upgrading from In our case it happens randomly, we might have 1 or 2 test failed out of 250 in our jobs. We run 50 parallel instances. In the test logs:
This is what we see in the Hub logs:
|
I get a session could not be created with Hub Version 15.0 and chrome 119.0 the following error pops up from time to time: If I run this with chrome 116.0 and hub 15.0 no error appears... any ideas why? |
Also seeing this, causing unreliable results for our daily automation |
This has been fixed in https://github.com/SeleniumHQ/docker-selenium/releases/tag/4.15.0-20231122 |
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?
When running tests in parallel, we are periodically seeing
org.openqa.selenium.SessionNotCreatedException
warnings in the log as sessions are not created for the following reason:I can replicate this with the following project that leverages PyTest to parallelize 10 instances of a browser opening a webpage and validating a single attribute:
SeleniumFailurePOC.zip
Pre-Req:
localhost:4444
, openResources/Standard_Fixtures.py
and make a change on line 20 to point to the correct location of the hub.Duplication (from the extracted directory):
docker compose up -d --scale firefox=10 --scale chrome=10
python -m pip install -r requirements.txt
to install required libraries for this PoC:pytest -n 10 --b chrome Tests
for running the suite against Chromepytest -n 10 --b firefox Tests
for running the suite against FirefoxResult: In my testing, I am getting at least 1 failure in every 5 runs against both Chrome and Firefox. It is often more frequent than that.
Other notes:
logs
directory that hasALL
output for all the containers I was able to replicate this with as well as isolated logging for the hub and browser containers that reported an issue.SessionNotCreatedException
is sometimes exceeding 200 out of the ~5000 tests that are run nightlyCommand used to start Selenium Grid with Docker
Relevant log output
Operating System
Ubuntu 22.04.3 LTS, macOS 14.0 (intel)
Docker Selenium version (tag)
4.15.0
The text was updated successfully, but these errors were encountered: