Skip to content

Error forwarding the new session #332

@finspin

Description

@finspin

I have the following setup:

  • running multiple containers of selenium hub on the same host
  • each container running on a different port
  • run test A on hub 1
  • run test B on hub 2
  • Docker version 1.11.0
  • docker-compose version 1.8.1

Once the containers are up and running, this is the output of docker ps

17:31:02,500 INFO  - CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
17:31:02,500 INFO  - ab2d99d40c4f selenium/node-chrome-debug:3.0.1-aluminum "/opt/bin/entry_point" 6 seconds ago Up 1 seconds 0.0.0.0:32905->5900/tcp 1478619050087_chromenode_1
17:31:02,500 INFO  - 875884860b6a selenium/node-firefox-debug:2.53.1-beryllium "/opt/bin/entry_point" 7 seconds ago Up 3 seconds 0.0.0.0:32904->5900/tcp 1478619050087_firefoxnode_1
17:31:02,500 INFO  - 41cbfd06b201 selenium/hub:3.0.1-aluminum "/opt/bin/entry_point" 11 seconds ago Up 7 seconds 0.0.0.0:32903->4444/tcp 1478619050087_seleniumhub_1
17:31:02,500 INFO  - ea38707efc36 selenium/node-chrome-debug:3.0.1-aluminum "/opt/bin/entry_point" 15 seconds ago Up 12 seconds 0.0.0.0:32902->5900/tcp 1478619045173_chromenode_1
17:31:02,500 INFO  - e1877b094cc7 selenium/node-firefox-debug:2.53.1-beryllium "/opt/bin/entry_point" 15 seconds ago Up 13 seconds 0.0.0.0:32901->5900/tcp 1478619045173_firefoxnode_1
17:31:02,500 INFO  - 18878c35caec selenium/hub:3.0.1-aluminum "/opt/bin/entry_point" 16 seconds ago Up 14 seconds 0.0.0.0:32900->4444/tcp 1478619045173_seleniumhub_1

The problem is that sometimes one of the tests fails with the following error. As far as I can tell it's always the test that has been launched as second that fails.

17:31:10,941 INFO  - [17:31:10] I/hosted - Using the selenium server at http://0.0.0.0:32903/wd/hub
17:31:10,942 INFO  - [17:31:10] I/launcher - Running 1 instances of WebDriver
17:31:11,538 INFO  - [17:31:11] E/launcher - Error forwarding the new session Empty pool of VM for setup Capabilities [{count=1, browserName=chrome}]
17:31:11,538 INFO  - [17:31:11] E/launcher - WebDriverError: Error forwarding the new session Empty pool of VM for setup Capabilities [{count=1, browserName=chrome}]

docker-compose.yml

seleniumhub:
  image: selenium/hub:3.0.1-aluminum
  environment:
    - GRID_MAX_SESSION=10
    - GRID_BROWSER_TIMEOUT=100000
    - GRID_TIMEOUT=90000
    - GRID_NEW_SESSION_WAIT_TIMEOUT=300000
  ports:
    - 4444`

chromenode:
    image: selenium/node-chrome-debug:3.0.1-aluminum
    ports:
      - 5900
    environment:
      - NODE_MAX_SESSION=10
      - NODE_MAX_INSTANCES=10
    links:
      - seleniumhub:hub
    volumes:
      - /dev/shm:/dev/shm`

firefoxnode:
  # using version 2 of firefox because version 3 crashes
  image: selenium/node-firefox-debug:2.53.1-beryllium
  ports:
    - 5900
  environment:
    - NODE_MAX_SESSION=10
    - NODE_MAX_INSTANCES=10
  links:
    - seleniumhub:hub

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions