Skip to content

Fix DNS race at boot: wait for network-online.target in feed and mlat units#113

Merged
d4rken merged 1 commit into
devfrom
fix/network-online-ordering
May 28, 2026
Merged

Fix DNS race at boot: wait for network-online.target in feed and mlat units#113
d4rken merged 1 commit into
devfrom
fix/network-online-ordering

Conversation

@d4rken

@d4rken d4rken commented May 28, 2026

Copy link
Copy Markdown
Member

Both airplanes-feed and airplanes-mlat make outbound connections to feed.airplanes.live and need DNS to be reachable before they start. network.target only signals that the networking subsystem is initialised — it does not wait for a resolver. The result at boot is a burst of "Temporary failure in name resolution" log entries before the daemon self-recovers.

Switching to network-online.target matches what airplanes-claim, airplanes-config-sync, and airplanes-diagnostics already declare. On this image NetworkManager-wait-online is already pulled into boot by the claim service, so there is no added boot delay.

Both daemons open outbound connections to feed.airplanes.live and need DNS to be ready. network.target only guarantees the networking subsystem is initialised, not that a resolver is reachable. Switching to network-online.target matches what airplanes-claim, airplanes-config-sync, and airplanes-diagnostics already declare.
@d4rken d4rken force-pushed the fix/network-online-ordering branch from b58bffb to b8c9492 Compare May 28, 2026 15:37
@d4rken d4rken merged commit d449749 into dev May 28, 2026
13 checks passed
@d4rken d4rken deleted the fix/network-online-ordering branch May 28, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant