Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting hub on Docker on Apple M1 / Apple Silicon Mac crashes with "Could not find a non-loopback ip4 address for this machine" error #1315

Closed
darxmac opened this issue Jun 15, 2021 · 1 comment

Comments

@darxmac
Copy link

darxmac commented Jun 15, 2021

🐛 Bug Report

Starting a hub and chrome node with docker-compose on Apple Silicon crashes with this exception:

chrome_1      | Exception in thread "main" org.openqa.selenium.WebDriverException: Could not find a non-loopback ip4 address for this machine
chrome_1      | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
chrome_1      | System info: host: 'ed6859b3ddc8', ip: '172.50.7.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.25-linuxkit', java.version: '1.8.0_212'
chrome_1      | Driver info: driver.version: unknown
chrome_1      |         at org.openqa.selenium.net.NetworkUtils.getIp4NonLoopbackAddressOfThisMachine(NetworkUtils.java:73)

To Reproduce

Spin up the referenced docker-compose spec on M1 Mac (MacMini)

Expected behavior

Not crashing with org.openqa.selenium.net.NetworkUtils.getIp4NonLoopbackAddressOfThisMachine

Environment

OS: macOS 11.2.2 (20D80)
Docker-Selenium image version:
selenium/node-chrome 3.141.59 | 0843e55de3dc
selenium/hub 3.141.59 705be32777f0
Docker version: Docker version 20.10.7, build f0df350
Docker-Compose version docker-compose version 1.29.2, build 5becea4c
Exact Docker command to start the containers:

version: '3.6'

services:
  chrome:
    image: selenium/node-chrome:3.141.59
    volumes:
      - /dev/shm:/dev/shm
    depends_on:
      - hub
    environment:
      - DBUS_SESSION_BUS_ADDRESS=/dev/null
      - HUB_HOST=hub
      - NODE_MAX_INSTANCES=5
      - NODE_MAX_SESSION=5
    ports:
      - "5555:5555"
  hub:
    image: selenium/hub:3.141.59
    ports:
      - "4444:4444"
    environment:
      - SE_OPTS=-browserTimeout 0 -timeout 60
@ghost ghost added the needs-triaging label Jun 15, 2021
@diemol
Copy link
Member

diemol commented Jun 18, 2021

@darxmac, we are still not supporting this architecture as we haven't had the resources (time and an M1) to work on it. However, there is #1076 which started the conversation about this topic. I will close this issue in favour of #1076 and we can check what contributions come from there.

@diemol diemol closed this as completed Jun 18, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants