# SessionNotCreatedException

**URL:** <https://community.jenkins.io/t/sessionnotcreatedexception/12590>\
**Category:** Ask a question\
**Tags:** python\
**Created:** [February 19, 2024, 8:17am UTC](https://community.jenkins.io/t/sessionnotcreatedexception/12590 "2024-02-19T08:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eventsnotif](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@eventsnotif](https://community.jenkins.io/u/eventsnotif)\
**Post date:** [February 19, 2024, 8:17am UTC](https://community.jenkins.io/t/sessionnotcreatedexception/12590/1 "2024-02-19T08:17:42Z")

</div>

## Jenkins setup: Jenkins: 2.401.1.3 OS: Linux - 5.10.184-175.731.amzn2.x86\_64 Java: 11.0.19 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)

ace-editor:1.1  
antisamy-markup-formatter:159.v25b\_c67cd35fb\_  
apache-httpcomponents-client-4-api:4.5.14-150.v7a\_b\_9d17134a\_5  
authentication-tokens:1.53.v1c90fd9191a\_b\_  
aws-credentials:191.vcb\_f183ce58b\_9  
aws-java-sdk-ec2:1.12.447-382.vda\_68e2007233  
aws-java-sdk-elasticbeanstalk:1.12.447-382.vda\_68e2007233  
aws-java-sdk-minimal:1.12.447-382.vda\_68e2007233  
blueocean-commons:1.27.3  
blueocean-rest:1.27.3  
bluesteel-cjoc:1.2.52  
bouncycastle-api:2.27  
caffeine-api:3.1.6-115.vb\_8b\_b\_328e59d8  
cloudbees-administrative-monitors:1.0.11  
cloudbees-analytics:1.48  
cloudbees-assurance:2.276.0.28  
cloudbees-blueocean-default-theme:0.8  
cloudbees-casc-server:2.3  
cloudbees-folder:6.815.v0dd5a\_cb\_40e0e  
cloudbees-folders-plus:3.29  
cloudbees-jenkins-advisor:336.v4d00382fe22c  
cloudbees-license:9.73  
cloudbees-monitoring:2.16  
cloudbees-platform-common:1.19  
cloudbees-platform-data:1.33  
cloudbees-plugin-usage:2.17  
cloudbees-prometheus:1.2  
cloudbees-ssh-slaves:2.20  
cloudbees-support:3.31  
cloudbees-uc-data-api:4.56  
cloudbees-unified-ui:1.24  
cloudbees-update-center-plugin:4.78  
command-launcher:100.v2f6722292ee8  
commons-lang3-api:3.12.0-36.vd97de6465d5b\_  
commons-text-api:1.10.0-36.vc008c8fcda\_7b\_  
credentials:1254.vb\_96f366e7b\_a\_d  
credentials-binding:604.vb\_64480b\_c56ca\_  
display-url-api:2.3.7  
docker-commons:419.v8e3cd84ef49c  
durable-task:506.v1b\_3e14b\_6f5da\_  
handy-uri-templates-2-api:2.1.8-22.v77d5b\_75e6953  
infradna-backup:3.38.64  
instance-identity:142.v04572ca\_5b\_265  
ionicons-api:45.vf54fca\_5d2154  
jackson2-api:2.14.2-319.v37853346a\_229  
jakarta-activation-api:2.0.1-3  
jakarta-mail-api:2.0.1-3  
javax-activation-api:1.2.0-6  
javax-mail-api:1.6.2-9  
jaxb:2.3.8-1  
jdk-tool:66.vd8fa\_64ee91b\_d  
jjwt-api:0.11.5-77.v646c772fddb\_0  
jquery3-api:3.6.4-1  
kube-agent-management:1.1.59  
kubernetes:3923.v294a\_d4250b\_91  
kubernetes-client-api:6.4.1-215.v2ed17097a\_8e9  
kubernetes-credentials:0.10.0  
ldap:676.vfa\_64cf6b\_b\_002  
mailer:448.v5b\_97805e3767  
mapdb-api:1.0.9-28.vf251ce40855d  
controller-provisioning-core:2.6.41  
controller-provisioning-kubernetes:2.6.41  
metrics:4.2.13-420.vea\_2f17932dd6  
mina-sshd-api-common:2.9.2-62.v199162f0a\_2f8  
mina-sshd-api-core:2.9.2-62.v199162f0a\_2f8  
mina-sshd-api-scp:2.9.2-62.v199162f0a\_2f8  
mina-sshd-api-sftp:2.9.2-62.v199162f0a\_2f8  
nectar-license:8.41  
nectar-rbac:5.80  
node-iterator-api:49.v58a\_8b\_35f8363  
oauth-credentials:0.645.ve666a\_c332668  
okhttp-api:4.10.0-132.v7a\_7b\_91cef39c  
operations-center-agent:2.387.0.2  
operations-center-clusterops:2.387.0.1  
operations-center-context:2.387.0.5  
operations-center-elasticsearch-provider:2.387.0.1  
operations-center-jnlp-controller:2.387.0.5  
operations-center-kubernetes-cloud:2.387.0.2  
operations-center-license:2.387.0.1  
operations-center-monitoring:2.387.0.1  
operations-center-rbac:2.387.0.2  
operations-center-server:2.387.0.6  
operations-center-sso:2.387.0.2  
operations-center-updatecenter:2.387.0.1  
plain-credentials:143.v1b\_df8b\_d3b\_e48  
pubsub-light:1.17  
scm-api:667.v8b\_6e07cdc7f2  
script-security:1244.ve463715a\_f89c  
snakeyaml-api:1.33-95.va\_b\_a\_e3e47b\_fa\_4  
sse-gateway:1.26  
ssh-credentials:305.v8f4381501156  
sshd:3.275.v9e17c10f2571  
structs:324.va\_f5d6774f3a\_d  
support-core:1283.v9ddb\_0284a\_00c  
token-macro:359.vb\_cde11682e0c  
trilead-api:2.84.v72119de229b\_7  
unique-id:2.101.v21a\_b\_6390a\_b\_04  
user-activity-monitoring:1.9  
variant:59.vf075fe829ccb  
workflow-api:1208.v0cc7c6e0da\_9e  
workflow-durable-task-step:1246.v5524618ea\_097  
workflow-step-api:639.v6eca\_cd8c04a\_a\_  
workflow-support:839.v35e2736cfd5c

I am running ui tests via selenium grid(4.15) using pytest in jenkins. When I run 100+ tests with chrome/firefox webdriver(latest) either with single worker or with 4 workers, 1st test always returns **SessionNotCreatedException** but other tests run fine. What could be the reason for this? Locally I dont get this issue.

Below is the error log:

```auto
E selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. Could not start a new session. Unable to obtain: Capabilities {browserName: chrome, browserVersion: 119.0, goog:chromeOptions: {args: [], extensions: [], prefs: {download.default_directory: /home/ec2-user/jenkins/work..., download.directory_upgrade: true, download.prompt_for_download: false, helperApps.neverAsk.saveToDisk: /home/ec2-user/jenkins/work..., profile.default_content_settings.popups: 0, safebrowsing.enabled: false, safebrowsing_for_trusted_sources_enabled: false}}, pageLoadStrategy: normal, platformName: linux, se:noVncPort: 7900, se:vncEnabled: true}, error Failed to parse json output, executed: [--browser, chrome, --output, json, --browser-version, 119.0]
E   
E Build info: version: '4.15.0', revision: '1d14b5521b'
E System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.1.38-59.109.amzn2023.x86_64', java.version: '11.0.20.1'
E Driver info: driver.version: unknown 
E Host info: host: 'a3cd4230924a', ip: '192.168.48.11'
E Build info: version: '4.15.0', revision: '1d14b5521b'
E System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.1.38-59.109.amzn2023.x86_64', java.version: '11.0.20.1'
E Driver info: driver.version: unknown
E Build info: version: '4.15.0', revision: '1d14b5521b'
E System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.1.38-59.109.amzn2023.x86_64', java.version: '11.0.20.1'
E Driver info: driver.version: unknown
E Stacktrace:
E at org.openqa.selenium.grid.node.remote.RemoteNode.newSession (RemoteNode.java:151)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor.startSession (LocalDistributor.java:645)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor.newSession (LocalDistributor.java:564)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.handleNewSessionRequest (LocalDistributor.java:824)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.lambda$run$1 (LocalDistributor.java:784)
E at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
E at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
E at java.lang.Thread.run (Thread.java:829)

```

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [February 19, 2024, 9:13am UTC](https://community.jenkins.io/t/sessionnotcreatedexception/12590/2 "2024-02-19T09:13:15Z")

</div>

Hello and welcome to this community, @eventsnotif. 👋

Do you have the very same versions of Selenium and WebDriver locally and on your Jenkins agent?

---

<div class="post-metadata">

**Author:** ![eventsnotif](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@eventsnotif](https://community.jenkins.io/u/eventsnotif)\
**Post date:** [February 21, 2024, 8:47am UTC](https://community.jenkins.io/t/sessionnotcreatedexception/12590/3 "2024-02-21T08:47:42Z")

</div>

@poddingue Yes, I have the same version of chrome & chromedriver.  
chrome & chromedriver version (local) - 121.0.6167.184.  
chrome & chromedriver version (jenkins) - 119.0.6045.105
