-
Notifications
You must be signed in to change notification settings - Fork 25
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
Ubios discover fails after restart on UDM #206
Comments
Probably related to this: #196 With my EFG, it sometimes doesn't provide custom names (from Network) and sometimes it does. |
Issue reproduced. Will fix. |
You can try running the dev version using this install command, it should resolve the problem.
|
Thanks. I’ll give it a try. It’s for the shadow console.
|
How do you install it on a shadow device? I thought there is no SSH there. We have the ability to view chat logs, but we never do unless we're troubleshooting something. |
I'm going to unplug the primary console and install via SSH on shadow while primary is down. Probably best way to install it. |
Sorry for the delay in responding but I did have a chance to try this out with the dev version (installed today). After a restart of the hardware I still get a ubios discover failure, but now there's more detail. Looks like it might just be taking too long for the built-in Mongo instance to come up?
I also get that "unable to create log ipc connection error" on every start of the service, not just on hardware reboots; but I can't see that it affects anything. |
Did you re-install the service or just upgrading new binary? You need to re-install ctrld service, so new dependency setup could take effects. |
I've noticed that discovery of client names from UnifiOs/Ubios fails on the first run of
ctrld
after my UDM is restarted. This has been happening since at least v1.3.10 of ctrld and v4.0.20 of UnifiOS; although it may have been occurring for longer and I just didn't notice it. Unfortunately I can't confirm the exact start date/versions.When ctrld starts after a device restart (either a true power off/power on or just a software reboot), I do see an error logged about Ubios discovery failing to initialize:
{"level":"error","error":"exit status 1","time":"2025-01-06T13:45:20-05:00.759","message":"could not init Ubios discover"}
If I restart the ctrld daemon, UnifiOS discovery will work properly. I'm positing that this is just a case of the discovery init occurring too early in the boot process although I can't be certain. Perhaps a fix is to just have the init re-attempt every x minutes until successful, etc.
This doesn't cause any resolution issues, but does mean that I get some duplicate clients for that endpoint as the clients get reported using another discovered name (usually via PTR or mDNS) until I restart ctrld, at which point they report using their UbiOS names again.
A full debug log after a recent restart is below; I don't see a lot that says why the discovery init is failing but I am happy to do additional testing and debugging if it helps.
Full log
The text was updated successfully, but these errors were encountered: