On Wednesday, 6 February 2019 17.56.00 CET beth.flippo@telegrid.com wrote: [...]
I am having a problem getting alfred retrieve info from other nodes. I am running openwrt and alfred 2018.0.
Which OpenWrt version should that be? There is no release with 2018.0 and the current version in master is also newer.
I am able to start the alfred server with no errors both from boot and the command line.
root@OpenWrt:~# /etc/init.d/alfred restart /etc/init.d/alfred: waiting 30 secs for br-lan address... /etc/init.d/alfred: starting alfred /etc/init.d/alfred: starting batadv-vis
I can see it with ps
4290 root 816 S /usr/sbin/alfred -i br-lan -m -b bat0
I can issue a set and then a receive and I see the value I set but only locally. It does not get any info from the other nodes in my network. They are all running alfred servers as master.
Have you checked whether process_alfred_announce_master (recv.c) rejects the incoming packet for some reason and thus doesn't add it to the server list?
If not, have you checked whether sync_data (send.c) really sends out the data via push_data to the remote server?
I have added a firewall rule to open the port.
If I have 2 nodes running alfred and I run tcpdump -i br-lan udp port 16962 - I see packets from the other node:
16:21:49.279086 IP6 fe80::2d0:12ff:fe00:f0c7.16962 > ip6-allnodes.16962: UDP, length 4
[...]
I think these might be the master announcements but when I issue an alfred -r # - I do not see any new messages in the tcpdump.
If all daemons are in server mode then they will not create a request via `alfred -r`. Instead, they regularly sync [1] their facts between each other (same port but different packet type).
Kind regards, Sven
[1] https://www.open-mesh.org/projects/alfred/wiki/Alfred_architecture#Synchroni...