As copied from https://discourse.ubuntu.com/t/suspected-race-condition- error-in-systemd-startup-order/69668/3 by skj22306:
In this particular case, it turned out to be a startup race condition between [email protected] and netfilter-persistent.service (iptables restore). It was resolved (workaround) by creating a systemd override file at: /etc/systemd/system/[email protected]/override.conf with the following contents: [Unit] After=netfilter-persistent.service Requires=netfilter-persistent.service I also added a lightweight verification script (/usr/local/bin/wgcheck.sh) that runs at boot via cron (@reboot) to confirm that WireGuard, NAT, and forwarding rules are healthy — it automatically repairs the configuration if anything’s missing. Since applying these changes, the system has been stable across multiple reboots, and WireGuard comes up cleanly every time. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2129961 Title: systemd unit race condition between [email protected] and netfilter- persistent.service integration To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wireguard/+bug/2129961/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
