The default openvpn-server configuration file depends on systemd-networkd-wait-online, which times out with error:

systemd-networkd-wait-online[279]: Event loop failed: Connection timed out

My system has only 2 interfaces:

  • lo, which is ignored
  • eth0, is up and running and perfectly configured

Why does this times out? Is it a systemd bug?



Basically the same answer as @alexei, but the option --any allows you to wait for any interface to come online. See the documentation.

sudo systemctl edit systemd-networkd-wait-online.service

and add

ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any

It might be due to systemd-networkd-wait-online utility waiting for interfaces that are not going to come up (e.g. ethernet ports with unplugged cables) in some corner cases, like having two ethernet interfaces.

In my case, the workaround was to edit the service to pass --ignore arguments to the utility for the interfaces I don't want to wait for.

sudo systemctl edit systemd-networkd-wait-online.service

Add these lines:

ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --ignore=enp0s31f6

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.