user4460179
user4460179

Reputation:

Selenium Grid Error: Hub is Down or Not Responding on EC2 (AWS) Server

I'm trying to connect to an EC2 (Amazon Web Services) remote instance/server via Selenum Grid from my local machine. I have set

my local machine as a "hub" and can view the config on localhost (so I know it was set correctly).

However, when I try to set the remote server as a "grid" and connect to my local machine I am unable to do so succesfully. The

code I am using on the remote server is:

java -jar selenium-server-standalone-2.44.0.jar -role node  -hub http://REMOTEIP:4444/grid/register

The error I keep getting is: Unable to connect.. Hub is down or not responding..

I tried different variations like adding -hubHost and -host as parameter (as per the following threads on SO

Selenium Grid2 - Remote Node not connecting to HUB and

Setting up Selenium Grid) but whatever I do I keep getting the same error.

The other threads where all about connecting to a remote server that is not running on AWS platform. Perhaps there are certain

configurations needed for AWS? I have installed all appropiate jar files on the remote machine..

I have a dynamic IP but I don't think this is the problem because I have not changed my IP address (i.e, IP matches my current IP).

Thanks

Upvotes: 0

Views: 2769

Answers (2)

Largo_code
Largo_code

Reputation: 31

you have to change the REMOTEIP with your adresse of the nodes. check when you configure the hub. with which adresse the nodes are registered. in my case: INFO - Nodes should register to http://xxx.xxx.xx:4444/grid/register/

So the code when you use the remote server should be: java -jar selenium-server-standalone-2.44.0.jar -role node -hub http://xxx.xxx.xx:4444/grid/register

Upvotes: 0

Freya
Freya

Reputation: 63

java -jar selenium-server-standalone-2.44.0.jar -role node -hub http://REMOTEIP:4444/grid/register

The REMOTEIP(in your example) should be the IP of the hub, and not of the remote instance. Are you sure you have the correct IP set ?

Upvotes: 0

Related Questions