Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babeld "Interface lan4_17 has no link-local address" [was: Assorted error messages] #1003

Open
ilario opened this issue Apr 5, 2023 · 4 comments

Comments

@ilario
Copy link
Member

ilario commented Apr 5, 2023

Just switch on an isolated router running the current code on OpenWrt 22.03 and observed some error messages in logread:

cron.err crond[...]: USER root pid ... cmd ((deferable-reboot &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((for dataFile in /var/shared-state/data/* ; do shared-state bleach $(basename $dataFile .json); done &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state sync babeld-hosts &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state sync bat-hosts &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-hosts &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-leases &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-servers &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state sync nodes_and_links &> /dev/null)&)
cron.err crond[...]: USER root pid ... cmd ((sleep $(($RANDOM % 120)); shared-state-multiwriter sync network_nodes &> /dev/null)&)
cron.err crond[...]: time disparity of 133561 minutes detected
daemon.err babeld[...]: Interface eth0_17 has no link-local address.
daemon.err babeld[...]: Interface eth1_17 has no link-local address.
daemon.err babeld[...]: Warning: couldn't determine channel of interface eth0_17.
daemon.err babeld[...]: Warning: couldn't determine channel of interface eth1_17.
daemon.err babeld[...]: Warning: couldn't determine channel of interface wlan0-mesh_17.
daemon.err babeld[...]: Warning: couldn't determine channel of interface wlan1-mesh_17.
daemon.err babeld[...]: kernel_route(FLUSH): No such process
daemon.err babeld[...]: send: Address not available
daemon.err babeld[...]: setsockopt(IPV6_LEAVE_GROUP): Address not available
daemon.err dnsmasq[...]: cannot read /var/shared-state/dnsmasq_servers: No such file or directory
daemon.err watchping[...]: RTNETLINK answers: No such process
@ilario
Copy link
Member Author

ilario commented Apr 6, 2023

This is the logread on a YouHua WR1200JS running LibreMesh packages installed on OpenWrt 22.03:
http://sprunge.us/CvTVwP
(plenty of errors)

and this is another router of the same model with LibreMesh packages installed on OpenWrt 19.07:
http://sprunge.us/OmFOCv
(no error)

@ilario
Copy link
Member Author

ilario commented Apr 6, 2023

According to this comment, we have to consider that all the error messages coming from Busybox components, including cron, could be both errors or info:
https://forum.openwrt.org/t/cron-err-why/68655/6

@ilario
Copy link
Member Author

ilario commented Apr 6, 2023

But the Babeld errors seems real. The most abundant flooding of messages look like this:

daemon.err babeld[...]: Interface lan4_17 has no link-local address.
daemon.err babeld[...]: setsockopt(IPV6_LEAVE_GROUP): Address not available

@ilario
Copy link
Member Author

ilario commented Apr 6, 2023

But the Babeld errors seems real. The most abundant flooding of messages look like this:

daemon.err babeld[...]: Interface lan4_17 has no link-local address.
daemon.err babeld[...]: setsockopt(IPV6_LEAVE_GROUP): Address not available

For getting rid of these ones, we could manually assign link-local addresses like we add IPv4 addresses here:

uci:set("network", owrtInterfaceName, "proto", "static")
uci:set("network", owrtInterfaceName, "ipaddr", ipv4:host():string())
uci:set("network", owrtInterfaceName, "netmask", "255.255.255.255")
uci:save("network")

@G10h4ck @spiccinini do you know if there is a better way?

@ilario ilario changed the title Assorted error messages Babeld "Interface lan4_17 has no link-local address" [was: Assorted error messages] Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant