Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4

已查看 431 次
跳至第一个未读帖子

kelly chung

未读,
2022年1月23日 23:37:202022/1/23
收件人 Selenium Users
Hi all,

I tried to use this set up with aws ecs

I created a ecs task definition with containers defined in docker compose file above. 
The chrome node container was set up using the env variables:
  • - SE_EVENT_BUS_HOST=selenium-hub
  • - SE_EVENT_BUS_PUBLISH_PORT=4442
  • - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
The hub is working but the node cannot find it. It cannot find the hub. Both containers are running on same ec2 instance.

Getting this error: 
2022-01-21 16:23:28
21:23:28.574 WARN [UnboundZmqEventBus.lambda$new$4] - Failure #1. Retrying.
2022-01-21 16:23:28
21:23:28.576 WARN [UnboundZmqEventBus.isSubAddressIPv6] - Could not determine if the address tcp://selenium-hub:4442 is IPv6 or IPv4
2022-01-21 16:23:28
java.net.UnknownHostException: selenium-hub
2022-01-21 16:23:28
at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:797)
2022-01-21 16:23:28
at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1509)
2022-01-21 16:23:28
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1368)
2022-01-21 16:23:28
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1302)
2022-01-21 16:23:28
at java.base/java.net.InetAddress.getByName(InetAddress.java:1252)
2022-01-21 16:23:28
at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.isSubAddressIPv6(UnboundZmqEventBus.java:169)
2022-01-21 16:23:28
at org.openqa.selenium.events.zeromq.UnboundZmqEventBus.lambda$new$6(UnboundZmqEventBus.java:124)
2022-01-21 16:23:28
at net.jodah.failsafe.Functions.lambda$toSupplier$10(Functions.java:262

Any help would be much appreciated

Thanks
Kelly

Charles Smith

未读,
2022年6月27日 03:19:092022/6/27
收件人 Selenium Users
Hi Kelly,
We are struggling with the same thing. We had Selenium 3.x running in AWS on an ecs cluster. We had the hub running and we have a selenium scalar service that would create nodes as we needed them. We do this by have a docker image for the different nodes chrome firefox etc.  all defined in a task definition. 
My issue is when we start the hub its up and running but when we start the nodes the hub gets 502 bad gateway and the nodes start-up and then die. They never register. 
If you make any progress let me know ill do the same. 
回复全部
回复作者
转发
0 个新帖子