Skip to content

[πŸ› Bug]: Could not start a new session. Response code 500. Message: javax.net.ssl.SSLHandshakeExceptionΒ #2657

@d4vke

Description

@d4vke

What happened?

In our company we are using Selenium Grid installed via a helm chart and are using own our keda version

grid_0.39.0.txt
grid_0.18.0.txt

. We have 2 environments (one for production and one for testing). Current production grid is version 0.18.0 using Selenium v4.9.1-20230508. This one is working just fine.

We have recently updated our test environment to grid version 0.39.0 using Selenium v4.28.0-20250120.
We have noticed the huge amount of changes between both versions and we adapted the values.yaml for 0.39.0 as close the one from 0.18.0.

Deployment of version 0.39.0 went without any errors but when we run a test and connect to the test environment grid, we receive following error message:

org.openqa.selenium.SessionNotCreatedException:
Could not start a new session. Response code 500. Message: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Host info: host: 'FIN-5CD4058QMP', ip: '192.168.0.10'
Build info: version: '4.28.0', revision: 'ac342546e9'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'
Driver info: driver.version: unknown

This seems somewhere related to certificates, but I have no clue what, since we didn't use certificates in the past.
Ihave read the documentation about certificates but I don't know what to do exactly.

Command used to start Selenium Grid with Docker (or Kubernetes)

I have added both values.yaml files from 0.18.0 and 0.39.0 as attachments too (renamed to .txt) as I could show the full values.yaml here. Could someone point me to the right direction?

Relevant log output

org.openqa.selenium.SessionNotCreatedException: 
Could not start a new session. Response code 500. Message: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
Host info: host: 'FIN-5CD4058QMP', ip: '192.168.0.10'
Build info: version: '4.28.0', revision: 'ac342546e9'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'
Driver info: driver.version: unknown

Operating System

Kubernetes

Docker Selenium version (image tag)

v4.28.0-20250120

Selenium Grid chart version (chart version)

0.39.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions