我有一個使用Selenium插件在Jenkins上運行的Selenium Grid集線器。 我有一個Selenium網格節點在同一臺機器上運行,並且它已成功連接到集線器。 從外部機器我似乎不能ping通集線器通過Jenkins運行的4444端口。 如果通過命令行單獨啓動集線器,我可以ping該端口。 我的兩臺機器都禁用了防火牆,所以它不是網絡問題。Jenkins selenium grid hub拒絕來自外部IP的傳入硒節點連接
java -jar selenium-server-standalone-2.46.0.jar -role node -hub http://<IP>:4444/grid/register -timeout 10000 -browserTimeout 10000 -sessionMaxIdleTimeInSeconds 10000
16:34:58.122 INFO - Launching a Selenium Grid node 16:34:59.982 WARN - error getting the parameters from the hub. The node may end up with wrong timeouts.Connect to <IP>:4444 [<IP>] failed: Connection refused: connect 16:35:00.029 INFO - Java: Oracle Corporation 25.51-b03 16:35:00.029 INFO - OS: Windows 8.1 6.3 amd64 16:35:00.044 INFO - v2.46.0, with Core v2.46.0. Built from revision 87c69e2 16:35:00.107 INFO - Driver class not found: com.opera.core.systems.OperaDriver 16:35:00.107 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered 16:35:00.154 INFO - Version Jetty/5.1.x 16:35:00.154 INFO - Started HttpContext[/selenium-server,/selenium-server] 16:35:00.154 INFO - Started [email protected] 16:35:00.154 INFO - Started HttpContext[/wd,/wd] 16:35:00.154 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] 16:35:00.154 INFO - Started HttpContext[/,/] 16:35:00.154 INFO - Started SocketListener on 0.0.0.0:5555 16:35:00.154 INFO - Started [email protected] 16:35:00.154 INFO - Selenium Grid node is up and ready to register to the hub 16:35:00.185 INFO - Starting auto registration thread. Will try to register every 5000 ms. 16:35:00.200 INFO - Registering the node to the hub: http://<IP>/grid/register 16:35:01.232 INFO - Couldn't register this node: Error sending the registration request: Connect to <IP>:4444 [IP] failed: Connection refused: connect 16:35:07.232 INFO - Couldn't register this node: The hub is down or not responding: Connect to <IP>:4444 [IP] failed: Connection refused: connect
任何幫助表示讚賞。
我試過了,但似乎沒有幫助。沒有其他節點連接到集線器。 –
您可以telnet.ping系統端口.....在集線器嘗試netstat -an和驗證端口收聽與否。 –