You are not logged in.

#1 2020-06-06 18:39:22

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,157

[SOLVED] systemd-networkd-wait-online fails

On my laptop in recent weeks I have been seeing that although my networking seems fine after boot I am seeing fail messages in the log and for the status of the systemd unit as per:

Jun 06 19:21:05 lenovo1 systemd-networkd-wait-online[1039]: Event loop failed: Connection timed out
Jun 06 19:21:05 lenovo1 systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Jun 06 19:21:05 lenovo1 systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Jun 06 19:21:05 lenovo1 systemd[1]: Failed to start Wait for Network to be Configured.

and

$ sudo systemctl status systemd-networkd-wait-online
● systemd-networkd-wait-online.service - Wait for Network to be Configured
     Loaded: loaded (/usr/lib/systemd/system/systemd-networkd-wait-online.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sat 2020-06-06 19:21:05 BST; 7min ago
       Docs: man:systemd-networkd-wait-online.service(8)
   Main PID: 1039 (code=exited, status=1/FAILURE)

Jun 06 19:19:05 lenovo1 systemd[1]: Starting Wait for Network to be Configured...
Jun 06 19:21:05 lenovo1 systemd-networkd-wait-online[1039]: Event loop failed: Connection timed out
Jun 06 19:21:05 lenovo1 systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Jun 06 19:21:05 lenovo1 systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Jun 06 19:21:05 lenovo1 systemd[1]: Failed to start Wait for Network to be Configured.

I am not sure what is happening but that never used to happen.  I use systemd-networkd on this machine and it seems to be connected fine to wifi.

Any idea what I may need to do to work around this?

Thanks.

Edit:  I disabled the systemd-networkd-wait-online service and on reboot the network comes up just fine, so I guess although I have had that for some years, it is no longer needed.

Last edited by mcloaked (2020-06-06 21:33:28)


Mike C

Offline

#2 2021-05-16 19:46:59

lothar_m
Member
From: Portugal
Registered: 2010-04-25
Posts: 31
Website

Re: [SOLVED] systemd-networkd-wait-online fails

Hi
Just wanted to add i ran into the same issue and solved it by editing the service unit with the "--timeout" parameter (default is 2 mins).

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

Change the following line, by adding "--timeout-10":

ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --timeout=10

Last edited by lothar_m (2021-05-16 19:47:33)


“Clearly, Field Marshal Haig is about to make yet another gargantuan effort to move his drinks cabinet six inches closer to Berlin.”
-----------------------------------------------------------------------------
GitHub

Offline

Board footer

Powered by FluxBB