For 0.8 with the changes in services hostname approach, I changed it to following but it isn’t working now. The issue seems like node is not able to register to hub using a hostname, so I’m getting error like “Couldn’t register this node: Error sending the registration request: selenium-grid-hub”.
Also, the pipeline containers aren’t able to resolve services hostnames, so following isn’t working either… http://selenium-grid-hub:4444/wd/hub
I noticed it worked once, so could this be a timing issue. I tried depends_on, sleep options with services container but no use.
EDIT: I logged into the node container and checked if selenium-grid-hub resolves. It does sometimes but most of the times its not. So is there a way I can wait until the services hostnames are set or include dependency between services? Clearly, docker’s depends_on doesn’t work here and neither sleep as drone tries to bring up all services concurrently I guess.
I noticed it worked once, so could this be a timing issue. I tried depends_on, sleep options with services container but no use.
I doubt that is the issue.
If you look at the logs from our sample project, you will notice the selenium node will backoff and attempt to reconnect. This likely happens because the selenium grid is not yet available. The node handles this situation, which means a sleep or depends_on would not be required.
07:46:44.272 INFO - Couldn't register this node: Error sending the registration request: selenium
07:46:49.278 INFO - Couldn't register this node: The hub is down or not responding: selenium
07:46:54.309 INFO - Registering the node to the hub: http://selenium:4444/grid/register
07:46:54.345 INFO - The node is registered to the hub and ready to use
Thanks for the response and the example project. I ran your setup “as is” on Docker CE 17.07 it failed but passed on Docker CE 18.02. Same results with my setup as well, so I’m thinking its something to do with Docker version.
Sorry, haven’t investigated further.
22:51:59.002 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: selenium
22 22:52:04.011 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: selenium: Name or service not known