Behat migrate from selenium 3 to 4, but create session request timeout

333 views
Skip to first unread message

Nicolas Godon

unread,
May 10, 2023, 2:29:40 AM5/10/23
to Selenium Users
Hi,

I want to migrate to selenium 3 to 4 with docker 
Before I used this container
selenium/standalone-chrome-debug:3.141.59-oxygen

so i change for 

# To execute this docker-compose yml file use `docker-compose -f docker-compose-v2.yml up`
version: '2.4'

services:
 chrome:
   container_name: ee-chrome-standalone
   image: selenium/standalone-chrome:112.0-chromedriver-112.0-grid-4.9.0-20230421
   environment:
     - SE_ENABLE_TRACING=true
     - SCREEN_WIDTH=1800
     - SCREEN_HEIGHT=1010
     - SCREEN_DEPTH=24
   ports:
     - "4444:4444"
     - "7900:7900"

I have acces 
with behat I cannot create session, so i try with curl

curl --location 'http://172.29.0.2:4444/session' \
--header 'Content-Type: application/json' \
--data '{
"capabilities": {
"browserName": "chrome",
"name": "Behat feature suite",
"build": "3333",
"browser": "chrome",
"browserVersion": "112.0"
}
}'

but each time I have this error, the same when i used behat

{
"value": {
"error": "session not created",
"message": "Could not start a new session. New session request timed out \nHost info: host: '3e0df12dadef', ip: '172.29.0.2'\nBuild info: version: '4.9.0', revision: 'd7057100a6'\nSystem info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-148-generic', java.version: '11.0.18'\nDriver info: driver.version: unknown",
"stacktrace": [
{
"fileName": "LocalNewSessionQueue.java",
"moduleVersion": null,
"moduleName": null,
"nativeMethod": false,
"methodName": "addToQueue",
"className": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue",
"lineNumber": 202,
"classLoaderName": null
},
{
"fileName": "NewSessionQueue.java",
"moduleVersion": null,
"moduleName": null,
"nativeMethod": false,
"methodName": "lambda$new$0",
"className": "org.openqa.selenium.grid.sessionqueue.NewSessionQueue",
"lineNumber": 68,
"classLoaderName": null
},

I don't understand what is wrong thanks for your help

Nicolas

Nicolas Godon

unread,
May 12, 2023, 10:00:16 AM5/12/23
to Selenium Users
with this image it works 

selenium/standalone-chrome:110.0.5481.177-chromedriver-110.0.5481.77-grid-4.8.1-20230306

strange, very strange...

Reply all
Reply to author
Forward
0 new messages