[🐛 Bug]: Selenium Grid throwing NoSuchSessionException – Session ID not found
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, helm, java, kubernetes
调研方向
从堆栈跟踪入口 LocalSessionMap.get、SessionMap.getUri 和 HandleSession.loadSessionId 开始,然后在 Kubernetes Helm 部署中并行执行期间重现该故障。使用提供的 Grid 4.38.0 版本,将会话生命周期与 pod、网络和 timeout 事件进行比较。完成的标准是确定活动会话消失的原因,并记录已确认的配置或版本解决方案。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Go
- 星标
- 8.7k
- 派生
- 2.5k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 37
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SeleniumHQ/docker-selenium 的其他 Issue
-
难度 4/5 1-2 天 新手友好度 25/100
SeleniumHQ/docker-selenium#3338 ·
维护者通常 1 天内回复
-
[🐛 Bug]: hub & node-chromium - cURL 8.22.0 & guava 33.6.0-android pulled in, needs security fixes未关闭needs-triaging
难度 3/5 1-2 天 新手友好度 54/100
SeleniumHQ/docker-selenium#3332 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triaging
难度 4/5 3-5 天 新手友好度 35/100
SeleniumHQ/docker-selenium#3299 · 2 条评论 ·
维护者通常 1 天内回复
-
needs-triaging
难度 4/5 3-5 天 新手友好度 48/100
SeleniumHQ/docker-selenium#3298 · 2 条评论 ·
维护者通常 1 天内回复
-
needs-triaging
难度 4/5 3-5 天 新手友好度 48/100
SeleniumHQ/docker-selenium#3279 · 2 条评论 ·
维护者通常 1 天内回复
查看 SeleniumHQ/docker-selenium 的全部 Issue
相似的 Issue
-
bug effort:s impact:med raised-by:desk risk:low
难度 2/5 1-3 小时 新手友好度 75/100
medici-finance/assay#8342 · 1 条评论 ·
维护者通常 1 天内回复
-
bug sweep
难度 2/5 1-3 小时 新手友好度 76/100
bketelsen/truenas-mcp#120 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nwverse/persona#22164 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
sresarehumantoo/cc-artex#559 ·