This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LMHome auto-discovery fails after reboot with ZeroTier enabled
#1
Hello,

I'd like to report an issue we have reproduced on two LM5 units, both running firmware 20251204.

Symptom
When ZeroTier is enabled and the LogicMachine is rebooted, the LM Home app can no longer find the device with auto-discovery. The LM is still reachable via its IP address in the browser. Only discovery stops working.

What we see on the LM
In the running processes list, after the reboot, avahi-daemon stays in the registering state and never moves to running:

avahi-daemon: registering [<hostname>.local]

We waited several minutes and it did not change.

Steps to reproduce
1. Enable ZeroTier.
2. Reboot the LM.
3. Avahi stays in "registering" and the LM is not found by LM Home auto-discovery.

What restores discovery
1. Disable ZeroTier.
2. Reboot the LM. Avahi now goes to "running" and LM Home finds the device again.
3. Re-enable ZeroTier without rebooting. Avahi stays "running" and discovery keeps working.

So the problem seems to appear only when the LM boots with ZeroTier already enabled. Enabling ZeroTier on a running system does not cause it. Disabling ZeroTier after the fact does not help either: avahi stays in "registering" until the next reboot.

Our guess is that Avahi doesn't complete its registration because of the ZeroTier interface coming up during boot, but we may be wrong.

The workaround above only lasts until the next reboot (e.g. after a power outage), so it's not practical on installed systems.

Questions
- Is this a known issue?
- Is a fix planned, for example restricting Avahi to the Ethernet interface or changing the startup order?
- Is there a recommended configuration to use ZeroTier and LM Home auto-discovery together?

Thanks in advance.
Reply
#2
Try these updated packages with disabled mDNS on ZeroTier interfaces.
Install through System config > System > Packages > Add Package. Reboot LM afterwards.

https://dl.openrb.com/pkg/avahi-dbus-dae...0_imx6.ipk
https://dl.openrb.com/pkg/avahi-dbus-dae...0_imx6.sig

https://dl.openrb.com/pkg/libavahi-dbus-...0_imx6.ipk
https://dl.openrb.com/pkg/libavahi-dbus-...0_imx6.sig
Reply
#3
thanks, I'll try it later.

Another question, the LM5home app keeps logging out even if I'm not logged with admin and remember login and password is on with 365 days of expiration, am I doing something wrong?
Reply
#4
Keep LM Home app running in the background for some time, it should then cache the credentials.
Reply
#5
even if I reach the server through zerotier? Sometimes I use wifi and go only via LAN and sometimes I go with ZT
Reply
#6
ZT interface has a different IP address so credentials for it will be stored separately from local access. You will need to login twice - once for local and once for ZT.
Reply
#7
ok, no problem for that, but it keeps both stored right?
Reply
#8
It should keep booth. But since we don't have control how often the built-in browser cache is saved the app must be kept running in the background.
Reply


Forum Jump: