[🐛 Bug]: Selenium Grid throwing NoSuchSessionException – Session ID not found
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, helm, java, kubernetes
- Domain
- devops, distributed-systems, infrastructure
Research direction
Start with the stack-trace entry points LocalSessionMap.get, SessionMap.getUri, and HandleSession.loadSessionId, then reproduce the failure during parallel execution on the Kubernetes Helm deployment. Compare session lifetime with pod, network, and timeout events using the supplied Grid 4.38.0 versions. Done means identifying why an active session disappears and documenting a confirmed configuration or version resolution.
Written by the indexing model from the issue text.
Description
What happened?
Error:
org.openqa.selenium.NoSuchSessionException: Unable to find session with ID: 227114db1ad53c034d05e1d57af7fefb
Stacktrace:
Build info: version: '4.38.0', revision: '6b412e825c' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.6.105+', java.version: '21.0.8' Driver info: driver.version: unknown at org.openqa.selenium.grid.sessionmap.local.LocalSessionMap.get(LocalSessionMap.java:119) at org.openqa.selenium.grid.sessionmap.SessionMap.getUri(SessionMap.java:84) at org.openqa.selenium.grid.router.HandleSession.lambda$loadSessionId$4(HandleSession.java:231) at org.openqa.selenium.grid.router.HandleSession.execute(HandleSession.java:188) ... at java.base/java.lang.Thread.run(Thread.java:1583)
Summary
Selenium Grid intermittently fails to locate an active session, causing tests to break with NoSuchSessionException. The session appears to be lost or removed from the SessionMap before the request is routed.
Command used to start Selenium Grid with Docker (or Kubernetes)
used this command to install
helm install my-selenium-grid selenium-grid/selenium-grid --version 0.49.1
Relevant log output
Environment
Selenium Grid version: 4.38.0
Deployment: Kubernetes (Helm – SeleniumHQ/docker-selenium chart)
OS: Linux 6.6.105+
Java: 21.0.8
Observed Behavior
Session starts successfully.
During test execution, Grid returns Unable to find session with ID.
Logs suggest the session is not present in LocalSessionMap.
Expected Behavior
Active sessions should remain available until closed by the client or Grid.
Possible Causes
Pod restart / crash in Node or Session container.
Network issue between Router → SessionMap → Node.
Selenium Grid bug in session persistence for distributed deployments.
Session timeout due to inactivity or long test steps.
Required Actions
Please investigate:
Why the session is disappearing from the SessionMap.
Whether this is a known issue in Selenium 4.38.0.
Any recommended configuration changes for K8s-based grid.
Whether upgrading or downgrading Grid components resolves the issue.
Additional Notes
Issue happens repeatedly during parallel execution.
Operating System
GKE
Docker Selenium version (image tag)
4.38.0
Selenium Grid chart version (chart version)
4.38.0
- Dominant language
- Go
- Stars
- 8.7k
- Forks
- 2.5k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 37
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SeleniumHQ/docker-selenium
-
Difficulty 4/5 1-2 days Newbie friendliness 25/100
SeleniumHQ/docker-selenium#3338 ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: hub & node-chromium - cURL 8.22.0 & guava 33.6.0-android pulled in, needs security fixesOpenneeds-triaging
Difficulty 3/5 1-2 days Newbie friendliness 54/100
SeleniumHQ/docker-selenium#3332 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triaging
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SeleniumHQ/docker-selenium#3299 · 2 comments ·
Maintainers usually reply within 1 day
-
needs-triaging
Difficulty 4/5 3-5 days Newbie friendliness 48/100
SeleniumHQ/docker-selenium#3298 · 2 comments ·
Maintainers usually reply within 1 day
-
needs-triaging
Difficulty 4/5 3-5 days Newbie friendliness 48/100
SeleniumHQ/docker-selenium#3279 · 2 comments ·
Maintainers usually reply within 1 day
All issues in SeleniumHQ/docker-selenium
Similar issues
-
bug effort:s impact:med raised-by:desk risk:low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
medici-finance/assay#8342 · 1 comment ·
Maintainers usually reply within 1 day
-
bug sweep
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bketelsen/truenas-mcp#120 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nwverse/persona#22164 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sresarehumantoo/cc-artex#559 ·