Skip to content

[🐛 Bug]: selenium grid [4.2.1-20220531]: edge node - DevToolsActivePort file doesn't exist #1596

@RayChenLDL

Description

@RayChenLDL

What happened?

I am using ruby 2.7.3 and watir 7.1.0, trying to run the ui test on the selenium grid 4 ([4.2.1-20220531]);

I started the selenium grid 4 with all the docker containers, including selenium hub and chrome & edge nodes. they are setup very well;

with my ruby, I am trying to open a new browser:
$browser = Watir::Browser.new :edge, :url => "http://localhost:4444/wd/hub", options: {args: "--disable-dev-shm-usage"}

then got the error:
image

How can we reproduce the issue?

Run the commands below to spin up selenium grid 4:
docker network create nut

docker run -d -p 4442-4444:4442-4444 --network nut --name selenium-hub selenium/hub:4.2.1-20220531 

docker run -d -p 5902:5900 --network nut --name selenium-edge -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-edge:4.2.1-20220531

then with ruby:
$browser = Watir::Browser.new :edge, :url => "http://localhost:4444/wd/hub", options: {args: "--disable-dev-shm-usage"}

Relevant log output

Could not start a new session. Could not start a new session. Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: MSEdge failed to start: crashed.
        (unknown error: DevToolsActivePort file doesn't exist)
        (The process started from msedge location /usr/bin/microsoft-edge is no longer running, so MSEdgeDriver is assuming that MSEdge has crashed.)
      Build info: version: '4.2.1', revision: 'ac4d0fdd4a'
      System info: host: '9fb7575656c3', ip: '172.20.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.16.3-microsoft-standard-WSL2', java.version: '11.0.15'
      Driver info: driver.version: unknown
      Build info: version: '4.2.1', revision: 'ac4d0fdd4a'
      System info: host: '9fb7575656c3', ip: '172.20.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.16.3-microsoft-standard-WSL2', java.version: '11.0.15'
      Driver info: driver.version: unknown
      Build info: version: '4.2.1', revision: 'ac4d0fdd4a'
      System info: host: '7c1bafbe4108', ip: '172.20.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.16.3-microsoft-standard-WSL2', java.version: '11.0.15'
      Driver info: driver.version: unknown (Selenium::WebDriver::Error::SessionNotCreatedError)
      [remote server] org.openqa.selenium.grid.node.remote.RemoteNode(RemoteNode.java):150:in `newSession'
      [remote server] org.openqa.selenium.grid.distributor.local.LocalDistributor(LocalDistributor.java):618:in `startSession'
      [remote server] org.openqa.selenium.grid.distributor.local.LocalDistributor(LocalDistributor.java):544:in `newSession'
      [remote server] org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable(LocalDistributor.java):791:in `handleNewSessionRequest'
      [remote server] org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable(LocalDistributor.java):752:in `lambda$run$1'
      [remote server] java.util.concurrent.ThreadPoolExecutor(ThreadPoolExecutor.java):1128:in `runWorker'
      [remote server] java.util.concurrent.ThreadPoolExecutor$Worker(ThreadPoolExecutor.java):628:in `run'
      [remote server] java.lang.Thread(Thread.java):829:in `run'

Operating System

Windows10

Selenium version

ruby 2.7.5

What are the browser(s) and version(s) where you see this issue?

edge 101.0.1210.53

What are the browser driver(s) and version(s) where you see this issue?

edge 101.0.1210.53

Are you using Selenium Grid?

4.2.1-20220531

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