selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Selenium GRID | Nodes with the same name cannot connect on the HUB

Open mstankovic86 opened this issue 9 years ago • 6 comments

I have a very big problem with selenium grid after updating to selenium 3. I have 70+ win10 nodes created from one template (using VMware ESXi) and each of them has the same name

screen shot 2017-01-19 at 11 28 25 am

they are trying to connect on the HUB, but only ONE is able to connect on the HUB, all others are refused (500 Internal Server Error). I suppose because all have the same ID (computer name)

screen shot 2017-01-19 at 11 31 07 am

before updating, with selenium 2.53.1, my nodes were able to connect successfully. they are connected with different IDs (IP+port)

screen shot 2017-01-19 at 11 32 07 am

Please help.

mstankovic86 avatar Jan 19 '17 11:01 mstankovic86

also my method for returning IP of node not working anymore

method is implemented as it is described on https://gist.github.com/danggrianto/4607677

and now my object returning

{"msg":"slot found !","success":true,"session":"e8e0b6c4-6b3e-4838-8c7a-38237282c6b1","internalKey":"ad1c6634-32e3-4fb8-812a-f839799441ba","inactivityTime":22,"proxyId":"DESKTOP-RNBF0DD"}

method fails with the

<java.net.MalformedURLException: no protocol: DESKTOP-RNBF0DD>

mstankovic86 avatar Jan 19 '17 11:01 mstankovic86

Regarding the same name (id) -- Check your node configuration (either the -nodeConfig json or the command line used). If you are specifying the sameid on every node, you will encounter this issue. If you do not specify id it will assume the form of http://{host}:{port}

mach6 avatar Jan 24 '17 21:01 mach6

Note: you can also encounter this issue if your -nodeConfig json specifies the same remoteHost value on every node. You should not use the remoteHost json config property in Selenium 3.

mach6 avatar Jan 24 '17 21:01 mach6

@mach6 do we have this documented anywhere?

manoj9788 avatar Jan 25 '17 05:01 manoj9788

%> java -jar selenium-server-standalone-3.0.1.jar -role node -h
   -id
       <String> : optional **unique** identifier for the node. Defaults to the url
       of the remoteHost, when not specified.

mach6 avatar Jan 25 '17 19:01 mach6

Thanks a lot! This is an issue on the Selenium Grid Extras. I tried to configure grid with selenium-server-standalone-3.0.1.jar and everything works as it is expected. You can close this one.

Thanks again!

mstankovic86 avatar Jan 26 '17 11:01 mstankovic86