2

我正在尝试在差异主机上运行 docker Selenium

在 Hub 上使用这些命令

docker run -d -p 4444:4444 --name hub selenium-hub:1.0.0

节点

docker run -d -p 5556:5556 -e REMOTE_HOST="http://nodeip:5556" -e HUB_PORT_4444_TCP_ADDR=hubip -e HUB_PORT_4444_TCP_PORT=4444 --name chrome-node3 selenium-chrome-node:1.0.0

但是,我看到该节点已注册,但是当我启动测试时,请求显示为待处理

这是 Hub 日志

 14:50:29.078 WARN - Cleaning up stale test sessions on the unregistered node http://10.205.87.185:5557
14:50:29.107 INFO - Registered a node http://10.205.87.185:5557
14:50:29.473 INFO - Marking the node http://10.205.87.185:5556 as down: cannot reach the node for 2 tries
14:50:39.121 INFO - Marking the node http://10.205.87.185:5557 as down: cannot reach the node for 2 tries
14:50:59.489 INFO - Unregistering the node http://10.205.87.185:5556 because it's been down for 30016 milliseconds
14:50:59.489 WARN - Cleaning up stale test sessions on the unregistered node http://10.205.87.185:5556
14:50:59.516 INFO - Registered a node http://10.205.87.185:5556
14:51:09.192 INFO - Unregistering the node http://10.205.87.185:5557 because it's been down for 30071 milliseconds
14:51:09.192 WARN - Cleaning up stale test sessions on the unregistered node http://10.205.87.185:5557
14:51:09.541 INFO - Marking the node http://10.205.87.185:5556 as down: cannot reach the node for 2 tries

节点似乎已启动并正在运行。不确定可能是什么问题

4

0 回答 0