Closed EloyBote closed 5 months 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"
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)
#
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.
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)
[
{
"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
}
}
}
}
]
#
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?
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.
`
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.
I am closing this because we never got an answer.
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.
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
Relevant log output
Operating System
Debian GNU/Linux 10 (buster) arm64
Docker Selenium version (tag)
114.0