Unable to connect workers to leader via hostname.local

Hi,
in the process of setting up a cluster consisting of one leader and three workers. The leader is unable to find the workers via hostname.local. All RaspberryPis are in the same network, reachable via ssh, and the workers leds are shining blue. I’m able to ping the ip-adresses of the workers via the leader, but not via hostname.local. This leads me to two questions:

  1. Is this some weird quirk of my network, or did i miss a configuration option somewhere?
  2. Is it possible to add workers to the leader via ip-adress or something comparable?

I’ve used the most recent images to set up the leader and the workers respectively.

Except from this problem, i’ve really enjoyed working with the pioreactor.
Cheers

Hi @EBTPio

Hm, this makes me think it’s a router problem. Are you using your building’s router, or the local-access-point? If the former, do you have access to the make & model of it?

Have you been able to access the UI via pioreactor.local or leader-hostname.local, or are you only able to access is via the IP?

Anyways, here’s a possible (temporary) fix:

SSH into leader, and we’ll add aliases to the IPs:

  1. sudo nano /etc/hosts
  2. here, add the pair of ipv4 and hostname.local to the end of the list. For example (using dummy IPs):
127.0.0.1	localhost
::1		localhost ip6-localhost ip6-loopback
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

127.0.0.1	leader
100.93.165.59	pio02.local
100.96.18.97	pio03.local
100.82.247.103	pio04.local
  1. Save and exit (crlt-x).
  2. Try pinging one of the workers now, via it’s hostname:
     ping pio2.local
    

Does that succeed? If so, I think you’re good to go.

Note that this hardcoded the IPs, so if the IPs change, you’ll need to update (hence why I call this solution temporary!)

Hi @CamDavidsonPilon
this solved the problem, thanks!
You also assumed correctly that i’m only able to access via the ip, not via pioreactor.local etc.
Thanks again for the fast reply, i really didn’t expect an answer of this quality this fast.
Cheers