seleniumhq-community / docker-seleniarm

Multi-Arch (arm64/armhf/amd64) Docker images for the Selenium Grid Server
https://hub.docker.com/u/seleniarm
Other
249 stars 26 forks source link

[🐛 Bug]: Network issue with BPI M2 Pro #41

Closed EloyBote closed 5 months ago

EloyBote commented 1 year ago

What happened?

Hey,

I'm trying to make the seleniarm hub work with a Banana pi M2 Pro board (a raspberry pi alternative) but I can't figure out what's wrong with the network. Maybe the problem is the VNC? Because the log says "INFO exited: novnc (exit status 1; not expected)" several times. The hub works fine, but the nodes (and the standalone) crash.

Command used to start Selenium Grid with Docker

docker network create seleniumgrid

docker run -d -p 4442-4444:4442-4444 --net seleniumgrid --name seleniarm-hub seleniarm/hub:latest

docker run -d --name seleniarm-chromium-node --net seleniumgrid -e SE_EVENT_BUS_HOST=seleniarm-hub \
    --shm-size="2g" \
    -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
    -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
    seleniarm/node-chromium:latest

docker run -d --name seleniarm-firefox-node --net seleniumgrid -e SE_EVENT_BUS_HOST=seleniarm-hub \
    --shm-size="2g" \
    -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
    -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
    seleniarm/node-firefox:latest

docker run --name seleniarm-standalone-chromium --rm -it -p 4444:4444 -p 5900:5900 -p 7900:7900 --shm-size 2g seleniarm/standalone-chromium:latest

Relevant log output

Selinarm chromium node log:

2023-06-20 21:24:12,652 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing
2023-06-20 21:24:12,763 INFO RPC interface 'supervisor' initialized
2023-06-20 21:24:12,763 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-06-20 21:24:12,764 INFO supervisord started with pid 8
2023-06-20 21:24:13,769 INFO spawned: 'xvfb' with pid 9
2023-06-20 21:24:13,775 INFO spawned: 'vnc' with pid 10
2023-06-20 21:24:13,780 INFO spawned: 'novnc' with pid 11
2023-06-20 21:24:13,785 INFO spawned: 'selenium-node' with pid 12
2023-06-20 21:24:13,906 INFO success: selenium-node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
E: [pulseaudio] main.c: Daemon startup failed.
No PulseAudio daemon running, or not running as session daemon.
No PulseAudio daemon running, or not running as session daemon.
No PulseAudio daemon running, or not running as session daemon.
Generating Selenium Config
Configuring server...
Setting up SE_NODE_HOST...
Setting up SE_NODE_PORT...
Setting up SE_NODE_GRID_URL...
find: '/home/seluser/.config/chromium/Crash Reports/pending/': No such file or directory
2023-06-20 21:24:14,794 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:14,794 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:14,794 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:14,934 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:14,938 INFO spawned: 'novnc' with pid 86
Tracing is disabled
Selenium Grid Node configuration: 
[events]
publish = "tcp://seleniarm-hub:4442"
subscribe = "tcp://seleniarm-hub:4443"

[node]
session-timeout = "300"
override-max-sessions = false
detect-drivers = false
drain-after-session-count = 0
max-sessions = 1

[[node.driver-configuration]]
display-name = "chrome"
stereotype = '{"browserName": "chrome", "browserVersion": "113.0", "platformName": "Linux"}'
max-sessions = 1

Starting Selenium Grid Node...
2023-06-20 21:24:16,024 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:16,025 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:16,273 INFO spawned: 'novnc' with pid 147
2023-06-20 21:24:16,352 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:16,369 INFO spawned: 'vnc' with pid 158
2023-06-20 21:24:17,399 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:17,400 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:17,403 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:18,124 INFO spawned: 'novnc' with pid 181
21:24:18.154 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
2023-06-20 21:24:18,192 INFO exited: vnc (exit status 1; not expected)
21:24:18.195 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
2023-06-20 21:24:18,200 INFO spawned: 'vnc' with pid 188
21:24:19.066 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://seleniarm-hub:4442 and tcp://seleniarm-hub:4443
2023-06-20 21:24:19,255 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:19,257 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:19,259 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:19,264 INFO spawned: 'novnc' with pid 210
21:24:19.442 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://seleniarm-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: seleniarm-hub: Temporary failure in name resolution
    at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
21:24:19.484 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://seleniarm-hub:4442 and tcp://seleniarm-hub:4443 failed
2023-06-20 21:24:20,086 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:20,496 INFO spawned: 'vnc' with pid 227
2023-06-20 21:24:20,497 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:20,497 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:20,502 INFO spawned: 'novnc' with pid 228
2023-06-20 21:24:21,562 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:21,563 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:21,564 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:22,158 INFO spawned: 'novnc' with pid 256
2023-06-20 21:24:22,210 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:22,221 INFO spawned: 'vnc' with pid 267
2023-06-20 21:24:23,235 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:23,235 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:23,236 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:23,884 INFO spawned: 'novnc' with pid 285
2023-06-20 21:24:23,936 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:23,941 INFO spawned: 'vnc' with pid 296
2023-06-20 21:24:24,955 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:24,956 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:24,957 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:25,602 INFO spawned: 'novnc' with pid 314
2023-06-20 21:24:25,751 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:25,838 INFO spawned: 'vnc' with pid 326
2023-06-20 21:24:26,673 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:26,674 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:27,500 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:27,503 INFO spawned: 'novnc' with pid 343
2023-06-20 21:24:27,555 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:27,566 INFO spawned: 'vnc' with pid 354
2023-06-20 21:24:28,583 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:28,584 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:28,585 INFO exited: novnc (exit status 1; not expected)
21:24:29.195 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #1. Retrying.
2023-06-20 21:24:29,200 INFO spawned: 'novnc' with pid 371
21:24:29.198 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://seleniarm-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: seleniarm-hub
    at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
21:24:29.202 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://seleniarm-hub:4442 and tcp://seleniarm-hub:4443 failed
2023-06-20 21:24:29,289 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:29,439 INFO spawned: 'vnc' with pid 384
2023-06-20 21:24:30,266 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:30,267 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:31,098 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:31,101 INFO spawned: 'novnc' with pid 401
2023-06-20 21:24:31,254 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:31,343 INFO spawned: 'vnc' with pid 413
2023-06-20 21:24:32,171 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:32,172 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:33,002 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:33,005 INFO spawned: 'novnc' with pid 430
2023-06-20 21:24:33,056 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:33,065 INFO spawned: 'vnc' with pid 441
2023-06-20 21:24:34,079 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:34,079 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:34,080 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:34,728 INFO spawned: 'novnc' with pid 459
2023-06-20 21:24:34,884 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:34,967 INFO spawned: 'vnc' with pid 471
2023-06-20 21:24:35,800 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:35,802 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:36,626 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:36,629 INFO spawned: 'novnc' with pid 488
2023-06-20 21:24:36,696 INFO exited: vnc (exit status 1; not expected)
21:24:36.744 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #2. Retrying.
2023-06-20 21:24:36,749 INFO spawned: 'vnc' with pid 500
21:24:36.748 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://seleniarm-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: seleniarm-hub: Temporary failure in name resolution
    at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
21:24:36.752 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://seleniarm-hub:4442 and tcp://seleniarm-hub:4443 failed
2023-06-20 21:24:37,701 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:37,703 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:38,414 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:38,417 INFO spawned: 'novnc' with pid 517
2023-06-20 21:24:38,468 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:38,478 INFO spawned: 'vnc' with pid 528
2023-06-20 21:24:39,495 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:39,495 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:39,496 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:40,140 INFO spawned: 'novnc' with pid 546
2023-06-20 21:24:40,296 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:40,381 INFO spawned: 'vnc' with pid 558
2023-06-20 21:24:41,209 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:41,210 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:42,041 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:42,044 INFO spawned: 'novnc' with pid 575
2023-06-20 21:24:42,110 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:42,284 INFO spawned: 'vnc' with pid 587
2023-06-20 21:24:43,115 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:43,116 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:43,943 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:43,946 INFO spawned: 'novnc' with pid 604
2023-06-20 21:24:43,997 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:44,005 INFO spawned: 'vnc' with pid 615
2023-06-20 21:24:45,018 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:45,018 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:45,020 INFO exited: novnc (exit status 1; not expected)
21:24:45.101 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #3. Retrying.
2023-06-20 21:24:45,106 INFO spawned: 'novnc' with pid 631
21:24:45.103 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://seleniarm-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: seleniarm-hub
    at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
21:24:45.108 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://seleniarm-hub:4442 and tcp://seleniarm-hub:4443 failed
2023-06-20 21:24:45,761 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:46,172 INFO spawned: 'vnc' with pid 648
2023-06-20 21:24:46,173 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:46,174 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:46,178 INFO spawned: 'novnc' with pid 649
2023-06-20 21:24:47,303 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:47,303 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:47,305 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:47,841 INFO spawned: 'novnc' with pid 677
2023-06-20 21:24:47,895 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:47,901 INFO spawned: 'vnc' with pid 688
2023-06-20 21:24:48,919 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:48,919 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:48,920 INFO exited: novnc (exit status 1; not expected)
2023-06-20 21:24:49,565 INFO spawned: 'novnc' with pid 706
2023-06-20 21:24:49,616 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:49,623 INFO spawned: 'vnc' with pid 717
2023-06-20 21:24:50,636 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:50,636 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-20 21:24:50,638 INFO exited: novnc (exit status 1; not expected)
21:24:51.074 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #4. Retrying.
2023-06-20 21:24:51,079 INFO spawned: 'novnc' with pid 733
21:24:51.098 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://seleniarm-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: seleniarm-hub: Temporary failure in name resolution
    at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
21:24:51.102 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://seleniarm-hub:4442 and tcp://seleniarm-hub:4443 failed
21:24:51.104 WARN [UnboundZmqEventBus.lambda$new$5] - Connection aborted.
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
Caused by: org.openqa.selenium.grid.config.ConfigException: java.lang.reflect.InvocationTargetException
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:115)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    ... 6 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    ... 15 more
Caused by: org.zeromq.ZMQException: seleniarm-hub : Address not available
    at zmq.io.net.tcp.TcpAddress.resolve(TcpAddress.java:161)
    at zmq.io.net.tcp.TcpAddress.<init>(TcpAddress.java:39)
    at zmq.io.net.NetProtocol$2.zresolve(NetProtocol.java:61)
    at zmq.io.net.Address.resolve(Address.java:103)
    at zmq.io.net.NetProtocol$2.resolve(NetProtocol.java:55)
    at zmq.SocketBase.connectInternal(SocketBase.java:646)
    at zmq.SocketBase.connect(SocketBase.java:461)
    at org.zeromq.ZMQ$Socket.connect(ZMQ.java:3190)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:126)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    ... 23 more
Caused by: java.net.UnknownHostException: seleniarm-hub
    at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at zmq.io.net.tcp.TcpAddress.resolve(TcpAddress.java:138)
    ... 40 more
Exception in thread "Thread-0" java.lang.NullPointerException
    at org.openqa.selenium.grid.node.httpd.NodeServer.lambda$new$0(NodeServer.java:80)
    at java.base/java.lang.Thread.run(Thread.java:829)
2023-06-20 21:24:51,374 INFO exited: vnc (exit status 1; not expected)
2023-06-20 21:24:51,393 INFO spawned: 'vnc' with pid 750
2023-06-20 21:24:51,479 INFO exited: selenium-node (exit status 1; not expected)
2023-06-20 21:24:51,479 WARN received SIGINT indicating exit request
2023-06-20 21:24:51,480 INFO waiting for xvfb, vnc, novnc to die
2023-06-20 21:24:51,647 INFO stopped: novnc (terminated by SIGTERM)
2023-06-20 21:24:51,917 INFO stopped: vnc (terminated by SIGTERM)
2023-06-20 21:24:52,920 INFO stopped: xvfb (terminated by SIGTERM)

Seleniarm chromium standalone log:

2023-06-21 14:26:49,174 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing
2023-06-21 14:26:49,285 INFO RPC interface 'supervisor' initialized
2023-06-21 14:26:49,286 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-06-21 14:26:49,287 INFO supervisord started with pid 8
2023-06-21 14:26:50,292 INFO spawned: 'xvfb' with pid 9
2023-06-21 14:26:50,297 INFO spawned: 'vnc' with pid 10
2023-06-21 14:26:50,303 INFO spawned: 'novnc' with pid 11
2023-06-21 14:26:50,308 INFO spawned: 'selenium-standalone' with pid 12
Setting up SE_NODE_GRID_URL...
2023-06-21 14:26:50,343 INFO success: xvfb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2023-06-21 14:26:50,344 INFO success: vnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2023-06-21 14:26:50,344 INFO success: novnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2023-06-21 14:26:50,344 INFO success: selenium-standalone entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
find: '/home/seluser/.config/chromium/Crash Reports/pending/': No such file or directory
Selenium Grid Standalone configuration: 
[network]
relax-checks = true

[node]
session-timeout = "300"
override-max-sessions = false
detect-drivers = false
drain-after-session-count = 0
max-sessions = 1

[[node.driver-configuration]]
display-name = "chrome"
stereotype = '{"browserName": "chrome", "browserVersion": "114.0", "platformName": "Linux"}'
max-sessions = 1

Starting Selenium Grid Standalone...
Tracing is disabled
2023-06-21 14:26:51,450 INFO exited: novnc (exit status 1; not expected)
14:26:53.822 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
14:26:53.855 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
14:26:55.322 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 70e7f3ccf9da
14:26:55.988 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 70e7f3ccf9da
2023-06-21 14:26:57,918 INFO exited: vnc (exit status 1; not expected)
14:26:58.357 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 70e7f3ccf9da
14:26:58.380 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 70e7f3ccf9da
14:26:58.432 INFO [NodeOptions.getSessionFactories] - Detected 4 available processors
14:26:58.739 INFO [NodeOptions.report] - Adding chrome for {"browserName": "chrome","browserVersion": "114.0","platformName": "linux","se:noVncPort": 7900,"se:vncEnabled": true} 1 times (Host)
14:26:58.837 INFO [Node.<init>] - Binding additional locator mechanisms: relative
14:26:58.961 INFO [GridModel.setAvailability] - Switching Node d5d2e970-6cde-46b2-8cf0-7f2e3d63569b (uri: http://70e7f3ccf9da:4444) from DOWN to UP
14:26:58.964 INFO [LocalDistributor.add] - Added node d5d2e970-6cde-46b2-8cf0-7f2e3d63569b at http://70e7f3ccf9da:4444. Health check every 120s
14:26:59.396 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 70e7f3ccf9da
14:26:59.630 WARN [NetUtilInitializations.networkInterfaces] - Failed to retrieve the list of available network interfaces
java.net.SocketException: Permission denied (Socket creation failed)
    at java.base/java.net.NetworkInterface.getAll(Native Method)
    at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:359)
    at io.netty.util.NetUtilInitializations.networkInterfaces(NetUtilInitializations.java:74)
    at io.netty.util.NetUtil.<clinit>(NetUtil.java:151)
    at io.netty.util.internal.MacAddressUtil.bestAvailableMac(MacAddressUtil.java:50)
    at io.netty.util.internal.MacAddressUtil.defaultMachineId(MacAddressUtil.java:129)
    at io.netty.channel.DefaultChannelId.<clinit>(DefaultChannelId.java:99)
    at io.netty.channel.AbstractChannel.newId(AbstractChannel.java:113)
    at io.netty.channel.AbstractChannel.<init>(AbstractChannel.java:73)
    at io.netty.bootstrap.FailedChannel.<init>(FailedChannel.java:33)
    at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:320)
    at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272)
    at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268)
    at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:246)
    at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:158)
    at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:51)
    at org.openqa.selenium.grid.commands.Standalone.execute(Standalone.java:261)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:122)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:56)
    at org.openqa.selenium.grid.Main.main(Main.java:41)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
14:26:59.635 WARN [NetUtilInitializations.determineLoopback] - Failed to find the loopback interface
14:26:59.646 WARN [MacAddressUtil.defaultMachineId] - Failed to find a usable hardware address from the network interfaces; using random bytes: 66:f3:da:56:ad:3f:31:87
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
Caused by: io.netty.channel.ChannelException: Unable to create Channel from class class io.netty.channel.socket.nio.NioServerSocketChannel
    at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:46)
    at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:310)
    at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272)
    at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268)
    at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:246)
    at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:158)
    at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:51)
    at org.openqa.selenium.grid.commands.Standalone.execute(Standalone.java:261)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:122)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:56)
    at org.openqa.selenium.grid.Main.main(Main.java:41)
    ... 6 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:44)
    ... 17 more
Caused by: io.netty.channel.ChannelException: Failed to open a socket.
    at io.netty.channel.socket.nio.NioServerSocketChannel.newChannel(NioServerSocketChannel.java:65)
    at io.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:89)
    at io.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:82)
    at io.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:75)
    ... 22 more
Caused by: java.net.SocketException: Permission denied
    at java.base/sun.nio.ch.Net.socket0(Native Method)
    at java.base/sun.nio.ch.Net.serverSocket(Net.java:438)
    at java.base/sun.nio.ch.ServerSocketChannelImpl.<init>(ServerSocketChannelImpl.java:103)
    at java.base/sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56)
    at io.netty.channel.socket.nio.NioServerSocketChannel.newChannel(NioServerSocketChannel.java:63)
    ... 25 more
2023-06-21 14:26:59,921 INFO exited: selenium-standalone (exit status 1; not expected)
2023-06-21 14:26:59,921 WARN received SIGINT indicating exit request
2023-06-21 14:26:59,922 INFO waiting for xvfb to die
2023-06-21 14:27:02,927 INFO waiting for xvfb to die
2023-06-21 14:27:03,929 INFO stopped: xvfb (terminated by SIGTERM)

Operating System

Debian GNU/Linux 10 (buster) arm64

Docker Selenium version (tag)

114.0

jamesmortensen commented 1 year ago

Hi. What happens if you try to use docker-compose instead. Here's a file that could help you get started:

docker-compose-multi-arch.yml:

# To execute this docker-compose yml file use `docker-compose -f docker-compose-multi-arch.yml up`
# Add the `-d` flag at the end for detached execution
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-multi-arch.yml down`
version: "3"
services:
  chrome:
    image: seleniarm/node-chromium:latest
    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

  firefox:
    image: seleniarm/node-firefox:latest
    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

  selenium-hub:
    image: seleniarm/hub:latest
    container_name: selenium-hub
    ports:
      - "4442:4442"
      - "4443:4443"
      - "4444:4444"
EloyBote commented 1 year ago

Hey James,

I'm afraid the result is the same. This is the firefox node log:

# docker logs root-firefox-1
2023-06-27 22:29:26,367 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing
2023-06-27 22:29:26,386 INFO RPC interface 'supervisor' initialized
2023-06-27 22:29:26,387 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-06-27 22:29:26,389 INFO supervisord started with pid 8
2023-06-27 22:29:27,395 INFO spawned: 'xvfb' with pid 9
2023-06-27 22:29:27,401 INFO spawned: 'vnc' with pid 10
2023-06-27 22:29:27,406 INFO spawned: 'novnc' with pid 11
2023-06-27 22:29:27,412 INFO spawned: 'selenium-node' with pid 12
2023-06-27 22:29:27,578 INFO success: selenium-node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Generating Selenium Config
Configuring server...
Setting up SE_NODE_HOST...
Setting up SE_NODE_PORT...
Setting up SE_NODE_GRID_URL...
2023-06-27 22:29:28,675 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:28,675 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:28,676 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:28,678 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:28,905 INFO spawned: 'novnc' with pid 78
Tracing is disabled

Selenium Grid Node configuration:

[events]
publish = "tcp://selenium-hub:4442"
subscribe = "tcp://selenium-hub:4443"

[node]
session-timeout = "300"
override-max-sessions = false
detect-drivers = false
drain-after-session-count = 0
max-sessions = 1

[[node.driver-configuration]]
display-name = "firefox"
stereotype = '{"browserName": "firefox", "browserVersion": "112.0", "platformName": "Linux"}'
max-sessions = 1
Starting Selenium Grid Node...
2023-06-27 22:29:30,088 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:30,092 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:31,102 INFO spawned: 'novnc' with pid 116
2023-06-27 22:29:32,319 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:32,717 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:32,721 INFO spawned: 'novnc' with pid 133
2023-06-27 22:29:33,885 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:34,126 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:35,134 INFO spawned: 'novnc' with pid 153
22:29:36.150 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
2023-06-27 22:29:36,204 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
22:29:36.247 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
2023-06-27 22:29:36,572 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:37,578 INFO spawned: 'novnc' with pid 170
22:29:38.292 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443
2023-06-27 22:29:38,871 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:39,068 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:39,073 INFO spawned: 'novnc' with pid 188
22:29:39.416 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: selenium-hub: Temporary failure in name resolution
    at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
22:29:39.528 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443 failed
2023-06-27 22:29:40,106 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:40,289 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:40,293 INFO spawned: 'novnc' with pid 203
2023-06-27 22:29:41,442 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:41,445 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:41,451 INFO spawned: 'novnc' with pid 217
2023-06-27 22:29:41,856 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:42,034 INFO spawned: 'vnc' with pid 252
2023-06-27 22:29:42,526 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:42,527 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:42,531 INFO spawned: 'novnc' with pid 269
2023-06-27 22:29:43,043 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:43,591 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:43,592 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:43,727 INFO spawned: 'novnc' with pid 295
2023-06-27 22:29:43,855 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:43,991 INFO spawned: 'vnc' with pid 307
2023-06-27 22:29:44,794 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:44,796 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:44,800 INFO spawned: 'novnc' with pid 322
2023-06-27 22:29:45,082 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:45,725 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:45,867 INFO spawned: 'vnc' with pid 338
2023-06-27 22:29:45,868 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:45,869 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:45,873 INFO spawned: 'novnc' with pid 339
2023-06-27 22:29:46,934 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:46,935 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:46,936 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:46,940 INFO spawned: 'novnc' with pid 365
2023-06-27 22:29:47,603 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:48,010 INFO spawned: 'vnc' with pid 381
2023-06-27 22:29:48,012 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:48,013 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:48,017 INFO spawned: 'novnc' with pid 382
22:29:49.001 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #1. Retrying.
22:29:49.005 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: selenium-hub
    at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
2023-06-27 22:29:49,008 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
22:29:49.009 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443 failed
2023-06-27 22:29:49,146 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:49,148 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:49,695 INFO spawned: 'novnc' with pid 410
2023-06-27 22:29:49,748 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:49,755 INFO spawned: 'vnc' with pid 421
2023-06-27 22:29:50,773 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:50,774 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:50,775 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:50,779 INFO spawned: 'novnc' with pid 437
2023-06-27 22:29:51,493 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:51,845 INFO spawned: 'vnc' with pid 453
2023-06-27 22:29:51,846 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:51,847 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:51,852 INFO spawned: 'novnc' with pid 454
2023-06-27 22:29:52,919 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:52,920 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:52,921 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:52,926 INFO spawned: 'novnc' with pid 480
2023-06-27 22:29:53,628 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:54,004 INFO spawned: 'vnc' with pid 496
2023-06-27 22:29:54,006 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:54,007 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:54,012 INFO spawned: 'novnc' with pid 497
2023-06-27 22:29:55,077 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:55,078 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:55,079 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:55,083 INFO spawned: 'novnc' with pid 523
2023-06-27 22:29:55,737 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:56,146 INFO spawned: 'vnc' with pid 539
2023-06-27 22:29:56,147 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:56,148 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:56,153 INFO spawned: 'novnc' with pid 540
2023-06-27 22:29:57,216 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:57,217 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:57,218 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:57,222 INFO spawned: 'novnc' with pid 566
22:29:57.522 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #2. Retrying.
22:29:57.527 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: selenium-hub: Temporary failure in name resolution
    at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
22:29:57.530 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443 failed
2023-06-27 22:29:57,888 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:29:58,284 INFO spawned: 'vnc' with pid 582
2023-06-27 22:29:58,285 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:58,286 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:58,290 INFO spawned: 'novnc' with pid 583
2023-06-27 22:29:59,351 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:59,352 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:29:59,353 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:29:59,357 INFO spawned: 'novnc' with pid 609
2023-06-27 22:30:00,007 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:30:00,439 INFO spawned: 'vnc' with pid 625
2023-06-27 22:30:00,441 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:00,442 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:00,446 INFO spawned: 'novnc' with pid 626
2023-06-27 22:30:01,506 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:01,507 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:01,508 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:01,513 INFO spawned: 'novnc' with pid 652
2023-06-27 22:30:02,179 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:30:02,575 INFO spawned: 'vnc' with pid 668
2023-06-27 22:30:02,576 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:02,577 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:02,581 INFO spawned: 'novnc' with pid 669
22:30:03.163 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #3. Retrying.
22:30:03.169 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: selenium-hub
    at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
22:30:03.179 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443 failed
2023-06-27 22:30:03,641 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:03,641 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:03,642 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:03,646 INFO spawned: 'novnc' with pid 695
2023-06-27 22:30:04,352 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:30:04,709 INFO spawned: 'vnc' with pid 711
2023-06-27 22:30:04,711 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:04,712 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:04,717 INFO spawned: 'novnc' with pid 712
2023-06-27 22:30:05,794 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:05,794 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:05,795 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:05,799 INFO spawned: 'novnc' with pid 738
2023-06-27 22:30:06,438 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:30:06,862 INFO spawned: 'vnc' with pid 754
2023-06-27 22:30:06,863 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:06,864 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:06,869 INFO spawned: 'novnc' with pid 755
2023-06-27 22:30:07,935 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:07,935 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:07,936 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:07,940 INFO spawned: 'novnc' with pid 781
2023-06-27 22:30:08,603 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:30:09,003 INFO spawned: 'vnc' with pid 797
2023-06-27 22:30:09,004 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:09,005 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:09,009 INFO spawned: 'novnc' with pid 798
2023-06-27 22:30:10,070 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:10,071 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:10,072 INFO exited: novnc (exit status 1; not expected)
2023-06-27 22:30:10,076 INFO spawned: 'novnc' with pid 824
22:30:10.530 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #4. Retrying.
22:30:10.549 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4
java.net.UnknownHostException: selenium-hub: Temporary failure in name resolution
    at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1256)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:170)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:125)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
22:30:10.553 WARN [UnboundZmqEventBus.lambda$new$3] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443 failed
22:30:10.555 WARN [UnboundZmqEventBus.lambda$new$5] - Connection aborted.
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
Caused by: org.openqa.selenium.grid.config.ConfigException: java.lang.reflect.InvocationTargetException
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:115)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.node.httpd.NodeServer.createHandlers(NodeServer.java:118)
    at org.openqa.selenium.grid.node.httpd.NodeServer.asServer(NodeServer.java:184)
    at org.openqa.selenium.grid.node.httpd.NodeServer.execute(NodeServer.java:239)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    ... 6 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    ... 15 more
Caused by: org.zeromq.ZMQException: selenium-hub : Address not available
    at zmq.io.net.tcp.TcpAddress.resolve(TcpAddress.java:161)
    at zmq.io.net.tcp.TcpAddress.<init>(TcpAddress.java:39)
    at zmq.io.net.NetProtocol$2.zresolve(NetProtocol.java:61)
    at zmq.io.net.Address.resolve(Address.java:103)
    at zmq.io.net.NetProtocol$2.resolve(NetProtocol.java:55)
    at zmq.SocketBase.connectInternal(SocketBase.java:646)
    at zmq.SocketBase.connect(SocketBase.java:461)
    at org.zeromq.ZMQ$Socket.connect(ZMQ.java:3190)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:126)
    at dev.failsafe.Functions.lambda$toCtxSupplier$9(Functions.java:228)
    at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
    at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
    at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
    at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376)
    at dev.failsafe.FailsafeExecutor.run(FailsafeExecutor.java:220)
    at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.<init>(UnboundZmqEventBus.java:122)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:53)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    ... 23 more
Caused by: java.net.UnknownHostException: selenium-hub
    at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
    at zmq.io.net.tcp.TcpAddress.resolve(TcpAddress.java:138)
    ... 40 more
Exception in thread "Thread-0" java.lang.NullPointerException
    at org.openqa.selenium.grid.node.httpd.NodeServer.lambda$new$0(NodeServer.java:80)
    at java.base/java.lang.Thread.run(Thread.java:829)
2023-06-27 22:30:10,729 INFO exited: vnc (exit status 1; not expected)
2023-06-27 22:30:10,936 INFO spawned: 'vnc' with pid 842
2023-06-27 22:30:10,937 INFO exited: selenium-node (exit status 1; not expected)
2023-06-27 22:30:10,938 WARN received SIGINT indicating exit request
2023-06-27 22:30:10,939 INFO waiting for xvfb, vnc, novnc to die
2023-06-27 22:30:11,206 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-27 22:30:11,207 INFO stopped: novnc (exit status 1)
2023-06-27 22:30:11,459 INFO stopped: vnc (terminated by SIGTERM)
2023-06-27 22:30:12,462 INFO stopped: xvfb (terminated by SIGTERM)
# 

`

And this is the selenium-hub log:

`# docker logs selenium-hub  
2023-06-27 22:29:25,106 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-hub.conf" during parsing
2023-06-27 22:29:25,124 INFO RPC interface 'supervisor' initialized
2023-06-27 22:29:25,125 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-06-27 22:29:25,127 INFO supervisord started with pid 9
2023-06-27 22:29:26,131 INFO spawned: 'selenium-grid-hub' with pid 10
Tracing is disabled
2023-06-27 22:29:26,151 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
22:29:30.755 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
22:29:30.811 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
Caused by: org.openqa.selenium.grid.config.ConfigException: java.lang.reflect.InvocationTargetException
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:115)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.commands.Hub.createHandlers(Hub.java:125)
    at org.openqa.selenium.grid.TemplateGridServerCommand.asServer(TemplateGridServerCommand.java:48)
    at org.openqa.selenium.grid.commands.Hub.execute(Hub.java:228)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    ... 6 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    ... 15 more
Caused by: org.openqa.selenium.WebDriverException: java.net.SocketException: Permission denied (Socket creation failed)
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '4.9.312-BPI-M5', java.version: '11.0.18'
Driver info: driver.version: unknown
    at org.openqa.selenium.net.DefaultNetworkInterfaceProvider.<init>(DefaultNetworkInterfaceProvider.java:50)
    at org.openqa.selenium.net.NetworkUtils.<init>(NetworkUtils.java:49)
    at org.openqa.selenium.events.zeromq.BoundZmqEventBus.<init>(BoundZmqEventBus.java:47)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:51)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    ... 23 more
Caused by: java.net.SocketException: Permission denied (Socket creation failed)
    at java.base/java.net.NetworkInterface.getAll(Native Method)
    at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:359)
    at org.openqa.selenium.net.DefaultNetworkInterfaceProvider.<init>(DefaultNetworkInterfaceProvider.java:48)
    ... 27 more
2023-06-27 22:29:32,632 INFO exited: selenium-grid-hub (exit status 1; not expected)
# 
jamesmortensen commented 1 year ago

There are two workarounds you could try, from https://github.com/SeleniumHQ/selenium/issues/7541. One of them is to disable IPv6, which seems quite unnecessary but also worth a try. The other option is to pass in a Java command line flag that tells the system to prefer IPv4 IP addresses.

See https://github.com/SeleniumHQ/docker-selenium#se_java_opts-java-environment-options on how to set JAVA_SE_OPTS when starting the grid.

EloyBote commented 1 year ago

The error now is permission denied crating the socket. This is the log and inspect of the hub:

# docker logs selenium-hub
2023-06-29 22:40:03,573 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-hub.conf" during parsing
2023-06-29 22:40:03,587 INFO RPC interface 'supervisor' initialized
2023-06-29 22:40:03,588 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-06-29 22:40:03,589 INFO supervisord started with pid 8
2023-06-29 22:40:04,594 INFO spawned: 'selenium-grid-hub' with pid 9
Tracing is disabled
2023-06-29 22:40:04,616 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
22:40:08.515 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
22:40:08.570 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
    at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
Caused by: org.openqa.selenium.grid.config.ConfigException: java.lang.reflect.InvocationTargetException
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:115)
    at org.openqa.selenium.grid.server.EventBusOptions.createBus(EventBusOptions.java:51)
    at org.openqa.selenium.grid.server.EventBusOptions.getEventBus(EventBusOptions.java:41)
    at org.openqa.selenium.grid.commands.Hub.createHandlers(Hub.java:125)
    at org.openqa.selenium.grid.TemplateGridServerCommand.asServer(TemplateGridServerCommand.java:48)
    at org.openqa.selenium.grid.commands.Hub.execute(Hub.java:228)
    at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:129)
    at org.openqa.selenium.grid.Main.launch(Main.java:83)
    at org.openqa.selenium.grid.Main.go(Main.java:57)
    at org.openqa.selenium.grid.Main.main(Main.java:42)
    ... 6 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:50)
    at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:100)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:95)
    ... 15 more
Caused by: org.openqa.selenium.WebDriverException: java.net.SocketException: Permission denied (Socket creation failed)
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '4.9.312-BPI-M5', java.version: '11.0.18'
Driver info: driver.version: unknown
    at org.openqa.selenium.net.DefaultNetworkInterfaceProvider.<init>(DefaultNetworkInterfaceProvider.java:50)
    at org.openqa.selenium.net.NetworkUtils.<init>(NetworkUtils.java:49)
    at org.openqa.selenium.events.zeromq.BoundZmqEventBus.<init>(BoundZmqEventBus.java:47)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:51)
    at org.openqa.selenium.events.zeromq.ZeroMqEventBus.create(ZeroMqEventBus.java:79)
    ... 23 more
Caused by: java.net.SocketException: Permission denied (Socket creation failed)
    at java.base/java.net.NetworkInterface.getAll(Native Method)
    at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:359)
    at org.openqa.selenium.net.DefaultNetworkInterfaceProvider.<init>(DefaultNetworkInterfaceProvider.java:48)
    ... 27 more
2023-06-29 22:40:10,366 INFO exited: selenium-grid-hub (exit status 1; not expected)

docker inspect selenium-hub

[
    {
        "Id": "6c93f78ca6dbe367bd5a3584284aca816462d8e783b7ede9c56781bc471aa71b",
        "Created": "2023-06-29T22:39:59.304382238Z",
        "Path": "/opt/bin/entry_point.sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 4195,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2023-06-29T22:40:02.681050689Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:467acf6a18fd330aaf00c9d9c66816c873459119872a06f249ed8141e8097f5a",
        "ResolvConfPath": "/var/lib/docker/containers/6c93f78ca6dbe367bd5a3584284aca816462d8e783b7ede9c56781bc471aa71b/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/6c93f78ca6dbe367bd5a3584284aca816462d8e783b7ede9c56781bc471aa71b/hostname",
        "HostsPath": "/var/lib/docker/containers/6c93f78ca6dbe367bd5a3584284aca816462d8e783b7ede9c56781bc471aa71b/hosts",
        "LogPath": "/var/lib/docker/containers/6c93f78ca6dbe367bd5a3584284aca816462d8e783b7ede9c56781bc471aa71b/6c93f78ca6dbe367bd5a3584284aca816462d8e783b7ede9c56781bc471aa71b-json.log",
        "Name": "/selenium-hub",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "root_default",
            "PortBindings": {
                "4442/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4442"
                    }
                ],
                "4443/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4443"
                    }
                ],
                "4444/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4444"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "host",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/0673990acb5ec4f2ff9b2f6fbccd446b4ba6194c7e74fe53ef553b3a00e3e84a-init/diff:/var/lib/docker/overlay2/0f76a134353a8c6b7300f1c82e181eb6323e0a3cfb619deb51c8e35ec6ee33c4/diff:/var/lib/docker/overlay2/6687239ca996f597e9239aae9cb9bd4277305df53fbf8104d567f2b2db36dad2/diff:/var/lib/docker/overlay2/63a35325c0deda028f91a111ee35b8aa503e12b17a33945b049ef81c4f1eae6a/diff:/var/lib/docker/overlay2/dbde128d54a2e0e1531b8a74d6e33f5fcf77b40554aa787f5138b006a19389d5/diff:/var/lib/docker/overlay2/df3e7788ab4812bb2c682afcd6641f0bdc2736c2e79f4b68cd8738e8b1b7096a/diff:/var/lib/docker/overlay2/91a64fb58c8d703efb0aafc5df2325f13f4053e470c1e0660223810adb68cfd8/diff:/var/lib/docker/overlay2/9c48d3ce2ca82a6aaf8908a90b24ed527df1ee7af4af5f05dfce5a0a9b0c337c/diff:/var/lib/docker/overlay2/3b507ff0649e3f56a5a60d48bc3525a4cf2a9cc6e904acdd5e22fdeb484efd38/diff:/var/lib/docker/overlay2/e7dc94416f1f8348e3a0d9e9f94d57049e5607df9cda60dea2f193c08d1b86e4/diff:/var/lib/docker/overlay2/3813dbcfc806c85b8fa456bb6bad84957de9c92e947c6020f5a440acd42d5f75/diff:/var/lib/docker/overlay2/3053a29fa94e2dd11ffdc2de64f6a020a7f3ee4403ec9ddd4908a0a07ca27ff1/diff:/var/lib/docker/overlay2/184790f776c450d83d047b7c40c4c3b9825fba34693f3a3416007b27da5f34d1/diff:/var/lib/docker/overlay2/bdbbb40cafdb98256ac317240a79fce3a538ac46805d56bd92244b49c2c507fb/diff",
                "MergedDir": "/var/lib/docker/overlay2/0673990acb5ec4f2ff9b2f6fbccd446b4ba6194c7e74fe53ef553b3a00e3e84a/merged",
                "UpperDir": "/var/lib/docker/overlay2/0673990acb5ec4f2ff9b2f6fbccd446b4ba6194c7e74fe53ef553b3a00e3e84a/diff",
                "WorkDir": "/var/lib/docker/overlay2/0673990acb5ec4f2ff9b2f6fbccd446b4ba6194c7e74fe53ef553b3a00e3e84a/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "6c93f78ca6db",
            "Domainname": "",
            "User": "1200",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "4442/tcp": {},
                "4443/tcp": {},
                "4444/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "SE_JAVA_OPTS=-Djava.net.preferIPv4Stack=true",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "DEBIAN_FRONTEND=noninteractive",
                "DEBCONF_NONINTERACTIVE_SEEN=true",
                "TZ=UTC",
                "HOME=/home/seluser",
                "SE_BIND_HOST=false",
                "SE_SESSION_REQUEST_TIMEOUT=300",
                "SE_SESSION_RETRY_INTERVAL=15",
                "SE_RELAX_CHECKS=true"
            ],
            "Cmd": [
                "/opt/bin/entry_point.sh"
            ],
            "Image": "seleniarm/hub:latest",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "authors": "",
                "com.docker.compose.config-hash": "4c86fd8a1109b1d9f76e50bfa17ffb917fa610caeb2c4269a64507449391e003",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:467acf6a18fd330aaf00c9d9c66816c873459119872a06f249ed8141e8097f5a",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "root",
                "com.docker.compose.project.config_files": "/root/seleniarm-compose.yml",
                "com.docker.compose.project.working_dir": "/root",
                "com.docker.compose.replace": "4f8676390d135c502228dfa98368e6e19c99a71e40058a6cf36431ebe260d0bc",
                "com.docker.compose.service": "selenium-hub",
                "com.docker.compose.version": "2.18.1"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "6c8e50aac3aff8daa68099b56746f0a5f04a6977a34f0b20e03e845ec0583386",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "4442/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "4442"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "4442"
                    }
                ],
                "4443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "4443"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "4443"
                    }
                ],
                "4444/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "4444"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "4444"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/6c8e50aac3af",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "root_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "selenium-hub",
                        "selenium-hub",
                        "6c93f78ca6db"
                    ],
                    "NetworkID": "9f8938b05c46e81c6ab4a3e1ac6776f23748d3ec4b7917a6714e0eb7db5741bd",
                    "EndpointID": "3c34faef2cb9f81694194e23d35ff37b27fe142bff9df3aceed35a81974ba271",
                    "Gateway": "172.18.0.1",
                    "IPAddress": "172.18.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:12:00:02",
                    "DriverOpts": null
                }
            }
        }
    }
]
# 
jamesmortensen commented 1 year ago

Are you able to run docker run hello-world or beyond that just start a standalone chromium or Firefox container without docker compose?

docker run --rm -it -p 4444:4444 --shm-size 2g seleniarm/standalone-chromium:latest

Does docker have permissions it needs?

EloyBote commented 1 year ago

Yes I can run the hello world. For some reason the standalone doesn't have access to the network, it's the same as the hub.

`# docker run --rm -it -p 4444:4444 --shm-size 2g seleniarm/standalone-chromium:latest 2023-07-01 23:29:46,303 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing 2023-07-01 23:29:46,416 INFO RPC interface 'supervisor' initialized 2023-07-01 23:29:46,417 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2023-07-01 23:29:46,418 INFO supervisord started with pid 8 2023-07-01 23:29:47,423 INFO spawned: 'xvfb' with pid 9 2023-07-01 23:29:47,429 INFO spawned: 'vnc' with pid 10 2023-07-01 23:29:47,434 INFO spawned: 'novnc' with pid 11 2023-07-01 23:29:47,440 INFO spawned: 'selenium-standalone' with pid 12 Setting up SE_NODE_GRID_URL... 2023-07-01 23:29:47,475 INFO success: xvfb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2023-07-01 23:29:47,475 INFO success: vnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2023-07-01 23:29:47,476 INFO success: novnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2023-07-01 23:29:47,476 INFO success: selenium-standalone entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) find: '/home/seluser/.config/chromium/Crash Reports/pending/': No such file or directory 2023-07-01 23:29:48,781 INFO exited: novnc (exit status 1; not expected) Selenium Grid Standalone configuration: [network] relax-checks = true

[node] session-timeout = "300" override-max-sessions = false detect-drivers = false drain-after-session-count = 0 max-sessions = 1

[[node.driver-configuration]] display-name = "chrome" stereotype = '{"browserName": "chrome", "browserVersion": "114.0", "platformName": "Linux"}' max-sessions = 1

Starting Selenium Grid Standalone... Tracing is disabled 23:29:52.352 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding 23:29:52.388 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing 23:29:53.971 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: fe056894e1ef 23:29:54.695 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: fe056894e1ef 2023-07-01 23:29:55,194 INFO exited: vnc (exit status 1; not expected) 23:29:57.097 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: fe056894e1ef 23:29:57.121 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: fe056894e1ef 23:29:57.178 INFO [NodeOptions.getSessionFactories] - Detected 4 available processors 23:29:57.499 INFO [NodeOptions.report] - Adding chrome for {"browserName": "chrome","browserVersion": "114.0","platformName": "linux","se:noVncPort": 7900,"se:vncEnabled": true} 1 times (Host) 23:29:57.606 INFO [Node.] - Binding additional locator mechanisms: relative 23:29:57.740 INFO [GridModel.setAvailability] - Switching Node 69889d07-0b95-418e-8e3c-def339f3b779 (uri: http://fe056894e1ef:4444) from DOWN to UP 23:29:57.742 INFO [LocalDistributor.add] - Added node 69889d07-0b95-418e-8e3c-def339f3b779 at http://fe056894e1ef:4444. Health check every 120s 23:29:58.182 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: fe056894e1ef 23:29:58.392 WARN [NetUtilInitializations.networkInterfaces] - Failed to retrieve the list of available network interfaces java.net.SocketException: Permission denied (Socket creation failed) at java.base/java.net.NetworkInterface.getAll(Native Method) at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:359) at io.netty.util.NetUtilInitializations.networkInterfaces(NetUtilInitializations.java:74) at io.netty.util.NetUtil.(NetUtil.java:151) at io.netty.util.internal.MacAddressUtil.bestAvailableMac(MacAddressUtil.java:50) at io.netty.util.internal.MacAddressUtil.defaultMachineId(MacAddressUtil.java:129) at io.netty.channel.DefaultChannelId.(DefaultChannelId.java:99) at io.netty.channel.AbstractChannel.newId(AbstractChannel.java:113) at io.netty.channel.AbstractChannel.(AbstractChannel.java:73) at io.netty.bootstrap.FailedChannel.(FailedChannel.java:33) at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:320) at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:246) at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:158) at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:51) at org.openqa.selenium.grid.commands.Standalone.execute(Standalone.java:261) at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:122) at org.openqa.selenium.grid.Main.launch(Main.java:83) at org.openqa.selenium.grid.Main.go(Main.java:56) at org.openqa.selenium.grid.Main.main(Main.java:41) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77) at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70) 23:29:58.396 WARN [NetUtilInitializations.determineLoopback] - Failed to find the loopback interface 23:29:58.408 WARN [MacAddressUtil.defaultMachineId] - Failed to find a usable hardware address from the network interfaces; using random bytes: 9b:8d:de:9f:9f:2b:04:5f java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77) at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70) Caused by: io.netty.channel.ChannelException: Unable to create Channel from class class io.netty.channel.socket.nio.NioServerSocketChannel at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:46) at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:310) at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:246) at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:158) at org.openqa.selenium.netty.server.NettyServer.start(NettyServer.java:51) at org.openqa.selenium.grid.commands.Standalone.execute(Standalone.java:261) at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:122) at org.openqa.selenium.grid.Main.launch(Main.java:83) at org.openqa.selenium.grid.Main.go(Main.java:56) at org.openqa.selenium.grid.Main.main(Main.java:41) ... 6 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:44) ... 17 more Caused by: io.netty.channel.ChannelException: Failed to open a socket. at io.netty.channel.socket.nio.NioServerSocketChannel.newChannel(NioServerSocketChannel.java:65) at io.netty.channel.socket.nio.NioServerSocketChannel.(NioServerSocketChannel.java:89) at io.netty.channel.socket.nio.NioServerSocketChannel.(NioServerSocketChannel.java:82) at io.netty.channel.socket.nio.NioServerSocketChannel.(NioServerSocketChannel.java:75) ... 22 more Caused by: java.net.SocketException: Permission denied at java.base/sun.nio.ch.Net.socket0(Native Method) at java.base/sun.nio.ch.Net.serverSocket(Net.java:438) at java.base/sun.nio.ch.ServerSocketChannelImpl.(ServerSocketChannelImpl.java:103) at java.base/sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56) at io.netty.channel.socket.nio.NioServerSocketChannel.newChannel(NioServerSocketChannel.java:63) ... 25 more 2023-07-01 23:29:58,796 INFO exited: selenium-standalone (exit status 1; not expected) 2023-07-01 23:29:58,797 WARN received SIGINT indicating exit request 2023-07-01 23:29:58,797 INFO waiting for xvfb to die 2023-07-01 23:30:01,803 INFO waiting for xvfb to die 2023-07-01 23:30:02,805 INFO stopped: xvfb (terminated by SIGTERM)

`

jamesmortensen commented 1 year ago

What operating system are you running? What architecture? Aarch64 or armhf armv7l? It seems like maybe there is some security getting in the way of docker creating a socket or accessing network interfaces. Does docker have all of the permissions it needs? On Unmbuntu, some users have disabled AppArmor to resolve similar issues, although it isn't recommended to do so as there as be security implications of doing so.

diemol commented 5 months ago

I am closing this because we never got an answer.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.