Skip to content

[🐛 Bug]: The Grid has no registered Nodes yet - Not able to see any node using docker-compose file #2481

@amitrparmar

Description

@amitrparmar

What happened?

Hello,

I am trying to run selenium grid using docker-compose configuration, but when I'm browsing hub node it shows -> The Grid has no registered Nodes yet. The thing is the same configuration file work perfectly fine on my other machine.

I also tried to turn off the firewall of my windows machine:

Can someone please help me in this. Thanks in advance.

Machine Info:
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19045 N/A Build 19045
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
System Manufacturer: Dell Inc.
System Model: Latitude E7470
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 78 Stepping 3 GenuineIntel ~2200 Mhz
BIOS Version: Dell Inc. 1.20., 20-Aug-18

image

image

Command used to start Selenium Grid with Docker (or Kubernetes)

version: "3.8"

services:

  chrome:
    image: selenium/node-chrome:latest
    container_name: node-chrome
    shm_size: 2gb
    depends_on:
      - selenium-hub
    environment:
      - SE_EVENT_BUS_HOST=selenium-hub
      - SE_EVENT_BUS_PUBLISH_PORT=4442
      - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
      - SE_NODE_MAX_INSTANCES=5
      - SE_NODE_MAX_SESSIONS=5
      - SE_NODE_SESSION_TIMEOUT=20
    networks:
      - healenium

  selenium-hub:
    image: selenium/hub:latest
    container_name: selenium-hub
    ports:
      - "4442:4442"
      - "4443:4443"
      - "4444:4444"
    networks:
      - healenium

networks:
  healenium:
    name: healenium

Relevant log output

Hub log:

2024-11-28 19:44:28 2024-11-28 14:14:28,431 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-hub.conf" during parsing
2024-11-28 19:44:28 2024-11-28 14:14:28,438 INFO RPC interface 'supervisor' initialized
2024-11-28 19:44:28 2024-11-28 14:14:28,438 INFO supervisord started with pid 8
2024-11-28 19:44:29 2024-11-28 14:14:29,444 INFO spawned: 'selenium-grid-hub' with pid 9
2024-11-28 19:44:29 Starting Selenium Grid Hub...
2024-11-28 19:44:29 2024-11-28 14:14:29,476 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-11-28 19:44:29 Appending Selenium option: --log-level INFO
2024-11-28 19:44:29 Appending Selenium option: --http-logs false
2024-11-28 19:44:29 Appending Selenium option: --structured-logs false
2024-11-28 19:44:29 Appending Selenium option: --reject-unsupported-caps false
2024-11-28 19:44:29 Appending Selenium option: --session-request-timeout 300
2024-11-28 19:44:29 Appending Selenium option: --session-retry-interval 15
2024-11-28 19:44:29 Appending Selenium option: --healthcheck-interval 120
2024-11-28 19:44:29 Appending Selenium option: --relax-checks true
2024-11-28 19:44:29 Appending Selenium option: --bind-host false
2024-11-28 19:44:29 Appending Selenium option: --config /opt/selenium/config.toml
2024-11-28 19:44:29 Tracing is enabled
2024-11-28 19:44:29 Classpath will be enriched with these external jars :  --ext /external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-exporter-otlp/1.43.0/opentelemetry-exporter-otlp-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/grpc/grpc-netty/1.68.0/grpc-netty-1.68.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-codec-http/4.1.114.Final/netty-codec-http-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-trace/1.43.0/opentelemetry-sdk-trace-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-metrics/1.43.0/opentelemetry-sdk-metrics-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-logs/1.43.0/opentelemetry-sdk-logs-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-exporter-otlp-common/1.43.0/opentelemetry-exporter-otlp-common-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-exporter-sender-okhttp/1.43.0/opentelemetry-exporter-sender-okhttp-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-extension-autoconfigure-spi/1.43.0/opentelemetry-sdk-extension-autoconfigure-spi-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/grpc/grpc-api/1.68.0/grpc-api-1.68.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-codec-http2/4.1.110.Final/netty-codec-http2-4.1.110.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/grpc/grpc-core/1.68.0/grpc-core-1.68.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-handler-proxy/4.1.110.Final/netty-handler-proxy-4.1.110.Final.jar:/external_jars/https/repo1.maven.org/maven2/com/google/guava/guava/33.2.1-android/guava-33.2.1-android.jar:/external_jars/https/repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.28.0/error_prone_annotations-2.28.0.jar:/external_jars/https/repo1.maven.org/maven2/io/perfmark/perfmark-api/0.27.0/perfmark-api-0.27.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-transport-native-unix-common/4.1.114.Final/netty-transport-native-unix-common-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/grpc/grpc-util/1.68.0/grpc-util-1.68.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-common/4.1.114.Final/netty-common-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-buffer/4.1.114.Final/netty-buffer-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-transport/4.1.114.Final/netty-transport-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-codec/4.1.114.Final/netty-codec-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-handler/4.1.114.Final/netty-handler-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-api/1.43.0/opentelemetry-api-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-common/1.43.0/opentelemetry-sdk-common-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-api-incubator/1.43.0-alpha/opentelemetry-api-incubator-1.43.0-alpha.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-exporter-common/1.43.0/opentelemetry-exporter-common-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/4.12.0/okhttp-4.12.0.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk/1.43.0/opentelemetry-sdk-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/external_jars/https/repo1.maven.org/maven2/com/google/code/gson/gson/2.11.0/gson-2.11.0.jar:/external_jars/https/repo1.maven.org/maven2/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.jar:/external_jars/https/repo1.maven.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.24/animal-sniffer-annotations-1.24.jar:/external_jars/https/repo1.maven.org/maven2/io/grpc/grpc-context/1.68.0/grpc-context-1.68.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-codec-socks/4.1.110.Final/netty-codec-socks-4.1.110.Final.jar:/external_jars/https/repo1.maven.org/maven2/com/google/guava/failureaccess/1.0.2/failureaccess-1.0.2.jar:/external_jars/https/repo1.maven.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/external_jars/https/repo1.maven.org/maven2/org/checkerframework/checker-qual/3.42.0/checker-qual-3.42.0.jar:/external_jars/https/repo1.maven.org/maven2/com/google/j2objc/j2objc-annotations/3.0.0/j2objc-annotations-3.0.0.jar:/external_jars/https/repo1.maven.org/maven2/io/netty/netty-resolver/4.1.114.Final/netty-resolver-4.1.114.Final.jar:/external_jars/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-context/1.43.0/opentelemetry-context-1.43.0.jar:/external_jars/https/repo1.maven.org/maven2/com/squareup/okio/okio/3.6.0/okio-3.6.0.jar:/external_jars/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.9.10/kotlin-stdlib-jdk8-1.9.10.jar:/external_jars/https/repo1.maven.org/maven2/com/squareup/okio/okio-jvm/3.6.0/okio-jvm-3.6.0.jar:/external_jars/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.9.10/kotlin-stdlib-1.9.10.jar:/external_jars/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.9.10/kotlin-stdlib-jdk7-1.9.10.jar:/external_jars/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.9.10/kotlin-stdlib-common-1.9.10.jar:/external_jars/https/repo1.maven.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0.jar
2024-11-28 19:44:29 List arguments for OpenTelemetry:  -Dotel.resource.attributes=service.name=selenium-hub -Dotel.traces.exporter=otlp -Dotel.java.global-autoconfigure.enabled=true
2024-11-28 19:44:30 Nov 28, 2024 2:14:30 PM org.openqa.selenium.grid.config.TomlConfig <init>
2024-11-28 19:44:30 WARNING: Please use quotes to denote strings. Upcoming TOML parser will require this and unquoted strings will throw an error in the future
2024-11-28 19:44:30 14:14:30.563 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
2024-11-28 19:44:30 14:14:30.569 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
2024-11-28 19:44:31 14:14:31.000 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://*:4442, advertising as tcp://172.19.0.2:4442], XSUB binding to [binding to tcp://*:4443, advertising as tcp://172.19.0.2:4443]
2024-11-28 19:44:31 14:14:31.086 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://172.19.0.2:4442 and tcp://172.19.0.2:4443
2024-11-28 19:44:31 14:14:31.117 INFO [UnboundZmqEventBus.<init>] - Sockets created
2024-11-28 19:44:32 14:14:32.121 INFO [UnboundZmqEventBus.<init>] - Event bus ready
2024-11-28 19:44:33 14:14:33.217 INFO [Hub.execute] - Started Selenium Hub 4.26.0 (revision 69f9e5e): http://172.19.0.2:4444
2024-11-28 19:44:44 14:14:44.430 ERROR [ThrottlingLogger.doLog] - Failed to export spans. The request could not be executed. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
2024-11-28 19:44:44 java.net.ConnectException: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
2024-11-28 19:44:44     at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
2024-11-28 19:44:44     at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
2024-11-28 19:44:44     at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
2024-11-28 19:44:44     at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
2024-11-28 19:44:44     at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
2024-11-28 19:44:44     at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
2024-11-28 19:44:44     at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
2024-11-28 19:44:44     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2024-11-28 19:44:44     at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2024-11-28 19:44:44     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2024-11-28 19:44:44     at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2024-11-28 19:44:44     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2024-11-28 19:44:44     at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2024-11-28 19:44:44     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2024-11-28 19:44:44     at io.opentelemetry.exporter.sender.okhttp.internal.RetryInterceptor.intercept(RetryInterceptor.java:91)
2024-11-28 19:44:44     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2024-11-28 19:44:44     at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2024-11-28 19:44:44     at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
2024-11-28 19:44:44     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2024-11-28 19:44:44     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2024-11-28 19:44:44     at java.base/java.lang.Thread.run(Thread.java:840)
2024-11-28 19:44:44     Suppressed: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4317
2024-11-28 19:44:44             ... 21 more
2024-11-28 19:44:44     Caused by: java.net.ConnectException: Connection refused
2024-11-28 19:44:44             at java.base/sun.nio.ch.Net.pollConnect(Native Method)
2024-11-28 19:44:44             at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
2024-11-28 19:44:44             at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
2024-11-28 19:44:44             at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
2024-11-28 19:44:44             at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
2024-11-28 19:44:44             at java.base/java.net.Socket.connect(Socket.java:633)
2024-11-28 19:44:44             at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
2024-11-28 19:44:44             at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
2024-11-28 19:44:44             ... 20 more

Operating System

Windows 10

Docker Selenium version (image tag)

4.26.0-20241101

Selenium Grid chart version (chart version)

No response

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