-
-
Notifications
You must be signed in to change notification settings - Fork 331
Can't connect to Selenium server since 3.141.59-p15 #327
Comments
Similar issue, p15 is non-responsive. I am using it for phpunit tests. Individual tests the selenium web driver is giving responding with
Nothing special in the logs either.
Rolled back to p14 and everything is working again. |
Same here. After the latest release (3.141.59-p15), all of my tests were failing when trying to connect to the server (Couldn't initialize driver -Unable to create new remote session). I had to roll back the image(s) to the below and works fine:
Docker Command: docker run --rm -idt --name zalenium -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/videos:/home/seluser/videos --privileged dosel/zalenium start --desiredContainers 5 --maxTestSessions 5 --timeZone "America/Chicago" --maxDockerSeleniumContainers 10 --videoRecordingEnabled false --retentionPeriod 3 Exception: Couldn't initialize driver -Unable to create new remote session Caps: desired capabilities = Capabilities [{browserName=chrome, javascriptEnabled=true, platformName=LINUX}], required capabilities = Capabilities [{}] |
Update: This did not seem to make a difference. 😢 |
@JaZo could you please share the logs? |
If you're running docker compose you should be able to use following snipped to fix the selenium version the zalenium container is using: environment:
# Use version pinning as workaround for:
# https://github.com/elgalu/docker-selenium/issues/327
SELENIUM_IMAGE_NAME: "elgalu/selenium:3.141.59-p14" If you're using Make sure you've the defined version ready to use by executing |
This file includes:
@diemol, are those what you need? |
@diemol, did you find a moment to take a look at the logs? |
@JaZo I just checked the logs and I cannot see anywhere the message:
Where are you seeing this message? |
The testing framework I use (phpunit-selenium) logs this message: https://github.com/giorgiosironi/phpunit-selenium/blob/3129be3c3a90bf46ef301817ea67c2f525451963/PHPUnit/Extensions/Selenium2TestCase.php#L324. The exception is thrown because cURL errors: https://github.com/giorgiosironi/phpunit-selenium/blob/8e4cf0271d82a44324e3dfebf0ea84c467b39317/PHPUnit/Extensions/Selenium2TestCase/Driver.php#L123. In this case the exception message is as follows:
|
I just tried the same cURL command on the command line and it gives the same error.
|
@JaZo Those capabilities are JsonWireProtocol caps, Chrome & ChromeDriver 75 and above work in W3C mode by default, which means that the client needs to send W3C compatible capabilities or switch Chrome to work with W3C off while a migration path is found. In this case, it is most likely that Recent Selenium clients should send both types of capabilities, something like this Closing as this is not a docker-selenium issue. |
@diemol, thanks for helping out and pointing me in the right direction! |
Since tag 3.141.59-p15 I can't connect to the Selenium server and get errors like the following:
When using tag 3.141.59-p14 everything is fine.
Docker commands
docker network create -d bridge --subnet 172.25.0.0/16 selenium_network
docker run -d -p 4444:24444 -p 5900:25900 -e TZ="CET" --shm-size=1g --network=selenium_network --ip=172.25.3.3 -itd --name=selenium elgalu/selenium
docker exec selenium wait_all_done 120s
Operating System
Linux ip-172-31-26-221 3.13.0-165-generic parallel tests get occasional "cannot forward the request" error #215-Ubuntu SMP Wed Jan 16 11:46:47 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Linux 887a42f62714 3.13.0-165-generic parallel tests get occasional "cannot forward the request" error #215-Ubuntu SMP Wed Jan 16 11:46:47 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Image version
Docker version
N.B. I can't upgrade because it's managed by Shippable
The text was updated successfully, but these errors were encountered: