Skip to content

[๐Ÿ› Bug]: selenium/hub, selenium/node-chrome and selenium/node-firefox latest are throwing ย #2432

@ChrstnAnsl

Description

@ChrstnAnsl

What happened?

When running my docker instance docker-compose -f docker-compose-grid.yml up -d I noticed that the selenium hub is throwing a java error and both node-firefox and node-chrome are being exited

services:
  hub:
    image: selenium/hub:latest
    container_name: hub
    ports:
      - "4444:4444"

  chrome:
    image: selenium/node-chrome:latest
    volumes:
      - /src/app.config:/app/src/app.config
      - /src/appsettings.json:/src/app/appsettings.json
      - /src/TestApplication:/app/src/TestApplication
      - /src/run-test.ps1:/app/src/run-test.ps1
      - /src/run-test-docker.ps1:/app/src/run-test-docker.ps1
    depends_on:
      - hub
    environment:
      - HUB_HOST=hub
      - HUB_PORT=4444
      - NODE_MAX_INSTANCES=3
      - NODE_MAX_SESSION=3

  firefox:
    image: selenium/node-firefox:latest
    volumes:
      - /src/app.config:/app/src/app.config
      - /src/appsettings.json:/src/app/appsettings.json
      - /src/TestApplication:/app/src/TestApplication
      - /src/run-test.ps1:/app/src/run-test.ps1
      - /src/run-test-docker.ps1:/app/src/run-test-docker.ps1
    depends_on:
      - hub
    environment:
      - HUB_HOST=hub
      - HUB_PORT=4444
      - NODE_MAX_INSTANCES=3
      - NODE_MAX_SESSION=3

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

docker-compose -f docker-compose-grid.yml up -d

Relevant log output

firefox-1 exited with code 0
hub-1      | 05:10:26.858 INFO [UnboundZmqEventBus.<init>] - Event bus ready
hub-1      | 05:10:30.873 INFO [Hub.execute] - Started Selenium Hub 4.25.0 (revision 030fcf7918): http://172.19.0.2:4444
hub-1      | 05:11:30.537 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
hub-1      | java.net.ConnectException: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
hub-1      |    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)                                                                          
hub-1      |    at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
hub-1      |    at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)                                                                         
hub-1      |    at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)                                                                  
hub-1      |    at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)                                                                                    
hub-1      |    at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
hub-1      |    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)                                                                       
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)                                                                               
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
hub-1      |    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)                                                           
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at io.opentelemetry.exporter.sender.okhttp.internal.RetryInterceptor.intercept(RetryInterceptor.java:91)
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)                                                             
hub-1      |    at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)                                                                                      
hub-1      |    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
hub-1      |    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)                                                                
hub-1      |    at java.base/java.lang.Thread.run(Thread.java:840)                                                                                                          
hub-1      |    Suppressed: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4317
hub-1      |            ... 21 more                                                                                                                                         
hub-1      |    Caused by: java.net.ConnectException: Connection refused                                                                                                    
hub-1      |            at java.base/sun.nio.ch.Net.pollConnect(Native Method)
hub-1      |            at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)                                                                                            
hub-1      |            at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)                                                                    
hub-1      |            at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)                                                                               
hub-1      |            at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
hub-1      |            at java.base/java.net.Socket.connect(Socket.java:633)                                                                                               
hub-1      |            at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)                                                                                
hub-1      |            at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)                                                                  
hub-1      |            ... 20 more
hub-1      | Caused by: java.net.ConnectException: Connection refused                                                                                                       
hub-1      |    at java.base/sun.nio.ch.Net.pollConnect(Native Method)                                                                                                      
hub-1      |    at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)                                                                                                    
hub-1      |    at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
hub-1      |    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)                                                                                       
hub-1      |    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)                                                                                     
hub-1      |    at java.base/java.net.Socket.connect(Socket.java:633)                                                                                                       
hub-1      |    at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
hub-1      |    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)                                                                          
hub-1      |    ... 20 more                                                                                                                                                 
hub-1      | 05:11:39.055 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
hub-1      | java.net.ConnectException: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
hub-1      |    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)                                                                          
hub-1      |    at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)                                                                                
hub-1      |    at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)                                                                         
hub-1      |    at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)                                                                  
hub-1      |    at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)                                                                                    
hub-1      |    at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
hub-1      |    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)                                                                       
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)                                                                                
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)                                                           
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)                                                                          
hub-1      |    at io.opentelemetry.exporter.sender.okhttp.internal.RetryInterceptor.intercept(RetryInterceptor.java:91)                                                    
hub-1      |    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
hub-1      |    at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)                                                             
hub-1      |    at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)                                                                                      
hub-1      |    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)                                                                
hub-1      |    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)                                                                
hub-1      |    at java.base/java.lang.Thread.run(Thread.java:840)
hub-1      |    Suppressed: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4317                                                                        
hub-1      |            ... 21 more                                                                                                                                         
hub-1      |    Caused by: java.net.ConnectException: Connection refused                                                                                                    
hub-1      |            at java.base/sun.nio.ch.Net.pollConnect(Native Method)                                                                                              
hub-1      |            at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
hub-1      |            at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)                                                                    
hub-1      |            at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)                                                                               
hub-1      |            at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)                                                                             
hub-1      |            at java.base/java.net.Socket.connect(Socket.java:633)                                                                                               
hub-1      |            at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
hub-1      |            at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)                                                                  
hub-1      |            ... 20 more                                                                                                                                         
hub-1      | Caused by: java.net.ConnectException: Connection refused                                                                                                       
hub-1      |    at java.ba

Operating System

Windows 11

Docker Selenium version (image tag)

latest

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