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

[🐛 Bug]: Grid can't create a session in Dynamic mode #2738

Closed
ekadov opened this issue Mar 27, 2025 · 4 comments · Fixed by #2754
Closed

[🐛 Bug]: Grid can't create a session in Dynamic mode #2738

ekadov opened this issue Mar 27, 2025 · 4 comments · Fixed by #2754

Comments

@ekadov
Copy link

ekadov commented Mar 27, 2025

What happened?

Selenium Grid has been installed on a separate machine via docker-compose.
The node is created, I see it in log.
UI works and the node is visible there.
When I try to start a Selenium session from my Java code, it gives SessionNotCreatedException.

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

docker-compose.yml


services:
  node-docker:
    image: selenium/node-docker:4.30.0-20250323
    volumes:
      - ./assets:/opt/selenium/assets
      - ./config.toml:/opt/selenium/config.toml
      - /var/run/docker.sock:/var/run/docker.sock
    depends_on:
      - selenium-hub
    environment:
      - SE_EVENT_BUS_HOST=selenium-hub

  selenium-hub:
    image: selenium/hub:4.30.0-20250323
    container_name: selenium-hub
    environment:
      - SE_LOG_LEVEL=FINE
    ports:
      - "4442:4442"
      - "4443:4443"
      - "4444:4444"

--------------------------------------------------

config.toml

[docker]
configs = [
    "selenium/standalone-chrome:4.30.0-20250323", '{"browserName": "chrome"}'
]

host-config-keys = ["Dns", "DnsOptions", "DnsSearch", "ExtraHosts", "Binds"]

url = "http://127.0.0.1:2375"
video-image = "selenium/video:ffmpeg-7.1.1.1-20250323"

Relevant log output

selenium-hub   | 2025-03-27 09:24:36,586 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-hub.conf" during parsing
selenium-hub   | 2025-03-27 09:24:36,589 INFO RPC interface 'supervisor' initialized
selenium-hub   | 2025-03-27 09:24:36,589 INFO supervisord started with pid 8
node-docker-1  | 2025-03-27 09:24:36,721 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-docker.conf" during parsing
node-docker-1  | 2025-03-27 09:24:36,724 INFO RPC interface 'supervisor' initialized
node-docker-1  | 2025-03-27 09:24:36,724 INFO supervisord started with pid 8
selenium-hub   | 2025-03-27 09:24:37,593 INFO spawned: 'selenium-grid-hub' with pid 9
selenium-hub   | Starting Selenium Grid Hub...
selenium-hub   | 2025-03-27 09:24:37,598 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
selenium-hub   | Appending Selenium option: --port 4444
selenium-hub   | Appending Selenium option: --log-level FINE
selenium-hub   | Appending Selenium option: --http-logs false
selenium-hub   | Appending Selenium option: --structured-logs false
selenium-hub   | Appending Selenium option: --reject-unsupported-caps false
selenium-hub   | Appending Selenium option: --session-request-timeout 300
selenium-hub   | Appending Selenium option: --session-retry-interval 15
selenium-hub   | Appending Selenium option: --healthcheck-interval 120
selenium-hub   | Appending Selenium option: --relax-checks true
selenium-hub   | Appending Selenium option: --bind-host false
selenium-hub   | Appending Selenium option: --config /opt/selenium/config.toml
selenium-hub   | Appending Selenium option: --tracing false
selenium-hub   | Tracing is disabled
selenium-hub   | Using JAVA_OPTS:  -Dwebdriver.remote.enableTracing=false -Dwebdriver.httpclient.version=HTTP_1_1
node-docker-1  | 2025-03-27 09:24:37,725 INFO spawned: 'socat' with pid 9
node-docker-1  | 2025-03-27 09:24:37,727 INFO spawned: 'selenium-grid-docker' with pid 10
node-docker-1  | 2025-03-27 09:24:37,733 INFO success: socat entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
node-docker-1  | 2025-03-27 09:24:37,733 INFO success: selenium-grid-docker entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
node-docker-1  | Starting Selenium Grid Node Docker...
node-docker-1  | Appending Selenium option: --log-level INFO
node-docker-1  | Appending Selenium option: --http-logs false
node-docker-1  | Appending Selenium option: --structured-logs false
node-docker-1  | Selenium Grid Node Docker configuration:
node-docker-1  | [docker]
node-docker-1  | # Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
node-docker-1  | # start a container with the given image.
node-docker-1  | configs = [
node-docker-1  |     "selenium/standalone-chrome:4.28.1", '{"browserName": "chrome"}'
node-docker-1  | ]
node-docker-1  |
node-docker-1  | host-config-keys = ["Dns", "DnsOptions", "DnsSearch", "ExtraHosts", "Binds"]
node-docker-1  |
node-docker-1  | # URL for connecting to the docker daemon
node-docker-1  | # Most simple approach, leave it as http://127.0.0.1:2375, and mount /var/run/docker.sock.
node-docker-1  | # 127.0.0.1 is used because internally the container uses socat when /var/run/docker.sock is mounted
node-docker-1  | # If var/run/docker.sock is not mounted:
node-docker-1  | # Windows: make sure Docker Desktop exposes the daemon via tcp, and use http://host.docker.internal:2375.
node-docker-1  | # macOS: install socat and run the following command, socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock,
node-docker-1  | # then use http://host.docker.internal:2375.
node-docker-1  | # Linux: varies from machine to machine, please mount /var/run/docker.sock. If this does not work, please create an issue.
node-docker-1  | url = "http://127.0.0.1:2375"
node-docker-1  | # Docker image used for video recording
node-docker-1  | video-image = "selenium/video:ffmpeg-7.1.1.1-20250323"
node-docker-1  |
node-docker-1  | # Uncomment the following section if you are running the node on a separate VM
node-docker-1  | # Fill out the placeholders with appropriate values
node-docker-1  | #[server]
node-docker-1  | #host = <ip-from-node-machine>
node-docker-1  | #port = <port-from-node-machine>
node-docker-1  | Appending Selenium option: --tracing false
node-docker-1  | Tracing is disabled
node-docker-1  | Using JAVA_OPTS:  -Dwebdriver.remote.enableTracing=false -Dwebdriver.httpclient.version=HTTP_1_1
selenium-hub   | 09:24:37.997 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
selenium-hub   | 09:24:38.004 INFO [LoggingOptions.getTracer] - Using null tracer
selenium-hub   | 09:24:38.050 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://*:4442, advertising as tcp://172.18.0.2:4442], XSUB binding to [binding to tcp://*:4443, advertising as tcp://172.18.0.2:4443]
selenium-hub   | 09:24:38.105 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://172.18.0.2:4442 and tcp://172.18.0.2:4443
selenium-hub   | 09:24:38.123 INFO [UnboundZmqEventBus.<init>] - Sockets created
node-docker-1  | 09:24:38.214 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
node-docker-1  | 09:24:38.219 INFO [LoggingOptions.getTracer] - Using null tracer
node-docker-1  | 09:24:38.258 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443
node-docker-1  | 09:24:38.296 INFO [UnboundZmqEventBus.<init>] - Sockets created
selenium-hub   | 09:24:39.125 INFO [UnboundZmqEventBus.<init>] - Event bus ready
node-docker-1  | 09:24:39.297 INFO [UnboundZmqEventBus.<init>] - Event bus ready
node-docker-1  | 09:24:39.437 INFO [NodeServer.createHandlers] - Reporting self as: http://172.18.0.3:5555
node-docker-1  | 09:24:39.441 INFO [LoggingOptions.getTracer] - Using null tracer
node-docker-1  | 09:24:39.465 INFO [NodeOptions.getSessionFactories] - Detected 4 available processors
selenium-hub   | 09:24:39.766 DEBUG [MultithreadEventLoopGroup.<clinit>] - -Dio.netty.eventLoopThreads: 8
selenium-hub   | 09:24:39.774 DEBUG [GlobalEventExecutor.<clinit>] - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1
selenium-hub   | 09:24:39.780 DEBUG [InternalThreadLocalMap.<clinit>] - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
selenium-hub   | 09:24:39.781 DEBUG [InternalThreadLocalMap.<clinit>] - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
selenium-hub   | 09:24:39.800 DEBUG [PlatformDependent0.explicitNoUnsafeCause0] - -Dio.netty.noUnsafe: false
selenium-hub   | 09:24:39.801 DEBUG [PlatformDependent0.javaVersion0] - Java version: 21
selenium-hub   | 09:24:39.803 DEBUG [PlatformDependent0.<clinit>] - sun.misc.Unsafe.theUnsafe: available
selenium-hub   | 09:24:39.807 DEBUG [PlatformDependent0.<clinit>] - sun.misc.Unsafe base methods: all available
selenium-hub   | 09:24:39.808 DEBUG [PlatformDependent0.<clinit>] - sun.misc.Unsafe.storeFence: available
selenium-hub   | 09:24:39.809 DEBUG [PlatformDependent0.<clinit>] - java.nio.Buffer.address: available
selenium-hub   | 09:24:39.810 DEBUG [PlatformDependent0.<clinit>] - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
selenium-hub   | 09:24:39.810 DEBUG [PlatformDependent0.<clinit>] - java.nio.Bits.unaligned: available, true
selenium-hub   | 09:24:39.814 DEBUG [PlatformDependent0.<clinit>] - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @2c9f9fb0
selenium-hub   | 09:24:39.818 DEBUG [PlatformDependent0.<clinit>] - java.nio.DirectByteBuffer.<init>(long, {int,long}): unavailable
selenium-hub   | 09:24:39.819 DEBUG [PlatformDependent.unsafeUnavailabilityCause0] - sun.misc.Unsafe: available
selenium-hub   | 09:24:39.819 DEBUG [PlatformDependent.tmpdir0] - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
selenium-hub   | 09:24:39.819 DEBUG [PlatformDependent.bitMode0] - -Dio.netty.bitMode: 64 (sun.arch.data.model)
selenium-hub   | 09:24:39.820 DEBUG [PlatformDependent.<clinit>] - -Dio.netty.maxDirectMemory: -1 bytes
selenium-hub   | 09:24:39.820 DEBUG [PlatformDependent.<clinit>] - -Dio.netty.uninitializedArrayAllocationThreshold: -1
selenium-hub   | 09:24:39.822 DEBUG [CleanerJava9.<clinit>] - java.nio.ByteBuffer.cleaner(): available
selenium-hub   | 09:24:39.822 DEBUG [PlatformDependent.<clinit>] - -Dio.netty.noPreferDirect: false
selenium-hub   | 09:24:39.824 DEBUG [NioEventLoop.<clinit>] - -Dio.netty.noKeySetOptimization: false
selenium-hub   | 09:24:39.824 DEBUG [NioEventLoop.<clinit>] - -Dio.netty.selectorAutoRebuildThreshold: 512
selenium-hub   | 09:24:39.835 DEBUG [PlatformDependent$Mpsc.<clinit>] - org.jctools-core.MpscChunkedArrayQueue: available
selenium-hub   | 09:24:39.861 DEBUG [DefaultChannelId.<clinit>] - -Dio.netty.processId: 10 (auto-detected)
selenium-hub   | 09:24:39.865 DEBUG [NetUtil.<clinit>] - -Djava.net.preferIPv4Stack: false
selenium-hub   | 09:24:39.866 DEBUG [NetUtil.<clinit>] - -Djava.net.preferIPv6Addresses: false
selenium-hub   | 09:24:39.869 DEBUG [NetUtilInitializations.determineLoopback] - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
selenium-hub   | 09:24:39.870 DEBUG [NetUtil$SoMaxConnAction.run] - /proc/sys/net/core/somaxconn: 4096
selenium-hub   | 09:24:39.872 DEBUG [DefaultChannelId.<clinit>] - -Dio.netty.machineId: 02:42:ac:ff:fe:12:00:02 (auto-detected)
selenium-hub   | 09:24:39.884 DEBUG [ResourceLeakDetector.<clinit>] - -Dio.netty.leakDetection.level: simple
selenium-hub   | 09:24:39.884 DEBUG [ResourceLeakDetector.<clinit>] - -Dio.netty.leakDetection.targetRecords: 4
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.numHeapArenas: 8
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.numDirectArenas: 8
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.pageSize: 8192
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.maxOrder: 9
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.chunkSize: 4194304
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.smallCacheSize: 256
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.normalCacheSize: 64
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.cacheTrimInterval: 8192
selenium-hub   | 09:24:39.897 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
selenium-hub   | 09:24:39.898 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.useCacheForAllThreads: false
selenium-hub   | 09:24:39.898 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
selenium-hub   | 09:24:39.898 DEBUG [PooledByteBufAllocator.<clinit>] - -Dio.netty.allocator.disableCacheFinalizersForFastThreadLocalThreads: false
selenium-hub   | 09:24:39.913 DEBUG [ByteBufUtil.<clinit>] - -Dio.netty.allocator.type: pooled
selenium-hub   | 09:24:39.914 DEBUG [ByteBufUtil.<clinit>] - -Dio.netty.threadLocalDirectBufferSize: 0
selenium-hub   | 09:24:39.914 DEBUG [ByteBufUtil.<clinit>] - -Dio.netty.maxThreadLocalCharBufferSize: 16384
selenium-hub   | 09:24:39.914 DEBUG [ChannelInitializerExtensions.getExtensions] - -Dio.netty.bootstrap.extensions: null
node-docker-1  | 09:24:39.939 INFO [V141Docker.isContainerPresent] - Checking if container is present: a35efd02f559
selenium-hub   | 09:24:39.941 DEBUG [LoggingHandler.channelRegistered] - [id: 0x51a5678e] REGISTERED
selenium-hub   | 09:24:39.947 DEBUG [LoggingHandler.bind] - [id: 0x51a5678e] BIND: 0.0.0.0/0.0.0.0:4444
selenium-hub   | 09:24:39.953 INFO [Hub.execute] - Started Selenium Hub 4.30.0 (revision 509c7f1): http://172.18.0.2:4444
selenium-hub   | 09:24:39.953 DEBUG [LoggingHandler.channelActive] - [id: 0x51a5678e, L:/[0:0:0:0:0:0:0:0]:4444] ACTIVE
node-docker-1  | 09:24:40.006 INFO [Docker.getImage] - Obtaining image: selenium/standalone-chrome:4.28.1
node-docker-1  | 09:24:40.011 INFO [V141Docker.getImage] - Listing local images: Reference{domain='docker.io', name='selenium/standalone-chrome', tag='4.28.1', digest='null'}
node-docker-1  | 09:24:40.034 INFO [Docker.getImage] - Obtaining image: selenium/video:ffmpeg-7.1.1.1-20250323
node-docker-1  | 09:24:40.034 INFO [V141Docker.getImage] - Listing local images: Reference{domain='docker.io', name='selenium/video', tag='ffmpeg-7.1.1.1-20250323', digest='null'}
node-docker-1  | 09:24:40.051 INFO [Docker.getImage] - Obtaining image: selenium/video:ffmpeg-7.1.1.1-20250323
node-docker-1  | 09:24:40.052 INFO [V141Docker.getImage] - Listing local images: Reference{domain='docker.io', name='selenium/video', tag='ffmpeg-7.1.1.1-20250323', digest='null'}
node-docker-1  | 09:24:40.068 INFO [Docker.getImage] - Obtaining image: selenium/standalone-chrome:4.28.1
node-docker-1  | 09:24:40.069 INFO [V141Docker.getImage] - Listing local images: Reference{domain='docker.io', name='selenium/standalone-chrome', tag='4.28.1', digest='null'}
node-docker-1  | 09:24:40.088 INFO [DockerOptions.lambda$getDockerSessionFactories$2] - Mapping Capabilities {browserName: chrome, platformName: linux} to docker image selenium/standalone-chrome:4.28.1 4 times
node-docker-1  | 09:24:40.112 INFO [Node.<init>] - Binding additional locator mechanisms: relative
node-docker-1  | 09:24:40.234 INFO [NodeServer$2.start] - Starting registration process for Node http://172.18.0.3:5555
node-docker-1  | 09:24:40.235 INFO [NodeServer.execute] - Started Selenium node 4.30.0 (revision 509c7f1): http://172.18.0.3:5555
node-docker-1  | 09:24:40.247 INFO [NodeServer$2.lambda$start$2] - Sending registration event...
selenium-hub   | 09:24:40.287 INFO [Node.<init>] - Binding additional locator mechanisms: relative
selenium-hub   | 09:24:40.412 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:4f:d2:2b:8f:f5:64:c8:33:9e:4f:34:58:66:23:70:60, Subject:CN=UCA Extended Validation Root, O=UniTrust, C=CN, Issuer:CN=UCA Extended Validation Root, O=UniTrust, C=CN, Key type:RSA, Length:4096, Cert Id:649181271, Valid from:3/13/15, 12:00 AM, Valid until:12/31/38, 12:00 AM
selenium-hub   | 09:24:40.414 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:00:92:b8:88:db:b0:8a:c1:63, Subject:CN=CA Disig Root R2, O=Disig a.s., L=Bratislava, C=SK, Issuer:CN=CA Disig Root R2, O=Disig a.s., L=Bratislava, C=SK, Key type:RSA, Length:4096, Cert Id:747175721, Valid from:7/19/12, 9:15 AM, Valid until:7/19/42, 9:15 AM
selenium-hub   | 09:24:40.416 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA384withRSA, Serial:6d:8c:14:46:b1:a6:0a:ee, Subject:CN=AffirmTrust Premium, O=AffirmTrust, C=US, Issuer:CN=AffirmTrust Premium, O=AffirmTrust, C=US, Key type:RSA, Length:4096, Cert Id:2164683341, Valid from:1/29/10, 2:10 PM, Valid until:12/31/40, 2:10 PM
selenium-hub   | 09:24:40.418 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA384withECDSA, Serial:21:2a:56:0c:ae:da:0c:ab:40:45:bf:2b:a2:2d:3a:ea, Subject:CN=OISTE WISeKey Global Root GC CA, OU=OISTE Foundation Endorsed, O=WISeKey, C=CH, Issuer:CN=OISTE WISeKey Global Root GC CA, OU=OISTE Foundation Endorsed, O=WISeKey, C=CH, Key type:EC, Length:384, Cert Id:2781801839, Valid from:5/9/17, 9:48 AM, Valid until:5/9/42, 9:58 AM
selenium-hub   | 09:24:40.419 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:00:d9:b5:43:7f:af:a9:39:0f:00:00:00:00:55:65:ad:58, Subject:CN=Entrust Root Certification Authority - G4, OU="(c) 2015 Entrust, Inc. - for authorized use only", OU=See www.entrust.net/legal-terms, O="Entrust, Inc.", C=US, Issuer:CN=Entrust Root Certification Authority - G4, OU="(c) 2015 Entrust, Inc. - for authorized use only", OU=See www.entrust.net/legal-terms, O="Entrust, Inc.", C=US, Key type:RSA, Length:4096, Cert Id:1368037548, Valid from:5/27/15, 11:11 AM, Valid until:12/27/37, 11:41 AM
selenium-hub   | 09:24:40.420 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:54:16:bf:3b:7e:39:95:71:8d:d1:aa:00:a5:86:0d:2b:8f:7a:05:4e, Subject:CN=CommScope Public Trust RSA Root-02, O=CommScope, C=US, Issuer:CN=CommScope Public Trust RSA Root-02, O=CommScope, C=US, Key type:RSA, Length:4096, Cert Id:1341146455, Valid from:4/28/21, 5:16 PM, Valid until:4/28/46, 5:16 PM
selenium-hub   | 09:24:40.423 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA1withRSA, Serial:5e:c3:b7:a6:43:7f:a4:e0, Subject:C=ES, O=ACCV, OU=PKIACCV, CN=ACCVRAIZ1, Issuer:C=ES, O=ACCV, OU=PKIACCV, CN=ACCVRAIZ1, Key type:RSA, Length:4096, Cert Id:3702856060, Valid from:5/5/11, 9:37 AM, Valid until:12/31/30, 9:37 AM
selenium-hub   | 09:24:40.424 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:00, Subject:OU=Security Communication RootCA2, O="SECOM Trust Systems CO.,LTD.", C=JP, Issuer:OU=Security Communication RootCA2, O="SECOM Trust Systems CO.,LTD.", C=JP, Key type:RSA, Length:2048, Cert Id:1521072570, Valid from:5/29/09, 5:00 AM, Valid until:5/29/29, 5:00 AM
selenium-hub   | 09:24:40.425 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:00:8e:0f:f9:4b:90:71:68:65:33:54:f4:d4:44:39:b7:e0, Subject:CN=Certainly Root R1, O=Certainly, C=US, Issuer:CN=Certainly Root R1, O=Certainly, C=US, Key type:RSA, Length:4096, Cert Id:2255958535, Valid from:4/1/21, 12:00 AM, Valid until:4/1/46, 12:00 AM
selenium-hub   | 09:24:40.426 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA1withRSA, Serial:50:94:6c:ec:18:ea:d5:9c:4d:d5:97:ef:75:8f:a0:ad, Subject:CN=XRamp Global Certification Authority, O=XRamp Security Services Inc, OU=www.xrampsecurity.com, C=US, Issuer:CN=XRamp Global Certification Authority, O=XRamp Security Services Inc, OU=www.xrampsecurity.com, C=US, Key type:RSA, Length:2048, Cert Id:3342493210, Valid from:11/1/04, 5:14 PM, Valid until:1/1/35, 5:37 AM
selenium-hub   | 09:24:40.428 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA1withRSA, Serial:07:56:22:a4:e8:d4:8a:89:4d:f4:13:c8:f0:f8:ea:a5, Subject:CN=Secure Global CA, O=SecureTrust Corporation, C=US, Issuer:CN=Secure Global CA, O=SecureTrust Corporation, C=US, Key type:RSA, Length:2048, Cert Id:2818194321, Valid from:11/7/06, 7:42 PM, Valid until:12/31/29, 7:52 PM
selenium-hub   | 09:24:40.429 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA384withRSA, Serial:08:f9:b4:78:a8:fa:7e:da:6a:33:37:89:de:7c:cf:8a, Subject:CN=DigiCert TLS RSA4096 Root G5, O="DigiCert, Inc.", C=US, Issuer:CN=DigiCert TLS RSA4096 Root G5, O="DigiCert, Inc.", C=US, Key type:RSA, Length:4096, Cert Id:165956757, Valid from:1/15/21, 12:00 AM, Valid until:1/14/46, 11:59 PM
selenium-hub   | 09:24:40.430 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA256withRSA, Serial:10:fc:aa:c4, Subject:CN=SeleniumHQ, OU=Software Freedom Conservancy, O=SeleniumHQ, L=Unknown, ST=Unknown, C=Unknown, Issuer:CN=SeleniumHQ, OU=Software Freedom Conservancy, O=SeleniumHQ, L=Unknown, ST=Unknown, C=Unknown, Key type:RSA, Length:2048, Cert Id:2370614792, Valid from:3/24/25, 12:30 AM, Valid until:3/22/35, 12:30 AM
selenium-hub   | 09:24:40.431 DEBUG [EventHelper.logX509CertificateEvent] - X509Certificate: Alg:SHA384withRSA, Serial:02:03:e5:ae:c5:8d:04:25:1a:ab:11:25:aa, Subject:CN=GTS Root R2, O=Google Trust Services LLC, C=US, Issuer:CN=GTS Root R2, O=Google Trust Services LLC, C=US, Key type:RSA, Length:4096, Cert Id:948387669, Valid from:6/22/16, 12:00 AM, Valid until:6/22/36, 12:00 AM


------------------------------------------------

And more certifictes are here. I skipped them to decrease log.

------------------------------------------------


selenium-hub   | 09:24:40.664 DEBUG [HttpTracing.inject] - Injecting (GET) /status into org.openqa.selenium.remote.tracing.empty.NullContext@7a8b978b at org.openqa.selenium.grid.node.remote.RemoteNode:252
selenium-hub   | 09:24:40.668 DEBUG [JdkHttpClient.execute0] - Executing request: (GET) /status
selenium-hub   | 09:24:40.769 DEBUG [JdkHttpClient.execute0] - Ending request (GET) /status in 100ms
selenium-hub   | 09:24:40.773 DEBUG [GridModel.add] - Adding node with id 1c0fe352-541d-43a7-9f6a-8059c9dc8d99 and URI http://172.18.0.3:5555
selenium-hub   | 09:24:40.774 DEBUG [LocalDistributor.updateNodeAvailability] - Health check result for http://172.18.0.3:5555 was UP
selenium-hub   | 09:24:40.774 INFO [GridModel.setAvailability] - Switching Node 1c0fe352-541d-43a7-9f6a-8059c9dc8d99 (uri: http://172.18.0.3:5555) from DOWN to UP
selenium-hub   | 09:24:40.775 INFO [LocalDistributor.add] - Added node 1c0fe352-541d-43a7-9f6a-8059c9dc8d99 at http://172.18.0.3:5555. Health check every 120s
node-docker-1  | 09:24:40.780 INFO [NodeServer.lambda$createHandlers$2] - Node has been added
selenium-hub   | 09:25:12.902 DEBUG [LoggingHandler.channelRead] - [id: 0x51a5678e, L:/[0:0:0:0:0:0:0:0]:4444] READ: [id: 0x51b00694, L:/172.18.0.2:4444 - R:/192.168.1.124:11241]
selenium-hub   | 09:25:12.904 DEBUG [LoggingHandler.channelRead] - [id: 0x51a5678e, L:/[0:0:0:0:0:0:0:0]:4444] READ: [id: 0xa5e19a9c, L:/172.18.0.2:4444 - R:/192.168.1.124:11242]
selenium-hub   | 09:25:12.905 DEBUG [LoggingHandler.channelReadComplete] - [id: 0x51a5678e, L:/[0:0:0:0:0:0:0:0]:4444] READ COMPLETE
selenium-hub   | 09:25:12.918 DEBUG [AbstractByteBuf.<clinit>] - -Dio.netty.buffer.checkAccessible: true
selenium-hub   | 09:25:12.918 DEBUG [AbstractByteBuf.<clinit>] - -Dio.netty.buffer.checkBounds: true
selenium-hub   | 09:25:12.918 DEBUG [ResourceLeakDetectorFactory$DefaultResourceLeakDetectorFactory.newResourceLeakDetector] - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@2bd4f1f6


------------------------------------------------

Then my request for session came ->

------------------------------------------------

selenium-hub   | 09:26:39.264 DEBUG [JdkHttpClient.execute0] - Executing request: (GET) /status
selenium-hub   | 09:26:39.275 DEBUG [JdkHttpClient.execute0] - Ending request (GET) /status in 11ms
selenium-hub   | 09:26:39.276 DEBUG [LocalDistributor.updateNodeAvailability] - Health check result for http://172.18.0.3:5555 was UP
selenium-hub   | 09:26:46.058 DEBUG [LoggingHandler.channelRead] - [id: 0x51a5678e, L:/[0:0:0:0:0:0:0:0]:4444] READ: [id: 0xd4e01d2d, L:/172.18.0.2:4444 - R:/192.168.1.124:11264]
selenium-hub   | 09:26:46.058 DEBUG [LoggingHandler.channelReadComplete] - [id: 0x51a5678e, L:/[0:0:0:0:0:0:0:0]:4444] READ COMPLETE
selenium-hub   | 09:26:46.066 DEBUG [RequestConverter.channelRead0] - Incoming message: DefaultHttpRequest(decodeResult: success, version: HTTP/1.1)
selenium-hub   | POST /session HTTP/1.1
selenium-hub   | Connection: Upgrade, HTTP2-Settings
selenium-hub   | Content-Length: 907
selenium-hub   | Host: 192.168.1.137:4444
selenium-hub   | HTTP2-Settings: AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA
selenium-hub   | Upgrade: h2c
selenium-hub   | Content-Type: application/json; charset=utf-8
selenium-hub   | traceparent: 00-27c51ad6bc103023487eda1f0dd84e21-480c1a504e0650d6-01
selenium-hub   | User-Agent: selenium/4.16.1 (java windows)
selenium-hub   | 09:26:46.066 DEBUG [RequestConverter.channelRead0] - Start of http request: DefaultHttpRequest(decodeResult: success, version: HTTP/1.1)
selenium-hub   | POST /session HTTP/1.1
selenium-hub   | Connection: Upgrade, HTTP2-Settings
selenium-hub   | Content-Length: 907
selenium-hub   | Host: 192.168.1.137:4444
selenium-hub   | HTTP2-Settings: AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA
selenium-hub   | Upgrade: h2c
selenium-hub   | Content-Type: application/json; charset=utf-8
selenium-hub   | traceparent: 00-27c51ad6bc103023487eda1f0dd84e21-480c1a504e0650d6-01
selenium-hub   | User-Agent: selenium/4.16.1 (java windows)
selenium-hub   | 09:26:46.067 DEBUG [RequestConverter.channelRead0] - Incoming message: DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 907, cap: 907/907, unwrapped: PooledUnsafeDirectByteBuf(ridx: 907, widx: 907, cap: 2048)), decoderResult: success)
selenium-hub   | 09:26:46.067 DEBUG [RequestConverter.channelRead0] - End of http request: DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 907, widx: 907, cap: 907/907, unwrapped: PooledUnsafeDirectByteBuf(ridx: 907, widx: 907, cap: 2048)), decoderResult: success)
selenium-hub   | 09:26:46.068 DEBUG [HttpTracing.inject] - Injecting (POST) /session into org.openqa.selenium.remote.tracing.empty.NullSpan@2809aeec at org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler:85
selenium-hub   | 09:28:39.261 DEBUG [LocalDistributor.lambda$asRunnableHealthCheck$8] - Running healthcheck for Node http://172.18.0.3:5555

Operating System

Ubuntu Server 24.10

Docker Selenium version (image tag)

4.30.0-20250323

Selenium Grid chart version (chart version)

No response

Copy link

@ekadov, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@ekadov
Copy link
Author

ekadov commented Apr 4, 2025

Hi.
Can anybody help with the issue?
I'll be really appreciated)

@pietrygamat
Copy link

pietrygamat commented Apr 6, 2025

It looks like the problem described in this section or README:

/opt/selenium/config.toml is the default path for the config file in all images. Once volumes config is shared to node browser containers, its config.toml could be overwritten by node-docker container config file.

In this case, mount your config.toml file to /opt/selenium/docker.toml in node-docker container. And set the environment variable SE_NODE_DOCKER_CONFIG_FILENAME=docker.toml to specify that config file name for the startup script.

services:
  node-docker:
    image: selenium/node-docker:4.30.0-20250323
    volumes:
      - ./assets:/opt/selenium/assets
      - ./config.toml:/opt/selenium/docker.toml
      - /var/run/docker.sock:/var/run/docker.sock
    depends_on:
      - selenium-hub
    environment:
      - SE_EVENT_BUS_HOST=selenium-hub
      - SE_NODE_DOCKER_CONFIG_FILENAME=docker.toml

@VietND96
Copy link
Member

VietND96 commented Apr 6, 2025

Thank you @pietrygamat! That is the same as my answer for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants