Running a VM of Ubuntu 22.04.3 LTS. I just encountered systemd-networkd-wait-online.service failed. Not sure how or why this happened as it's been running fine up until now. Anyone know how to fix this?
Code:
┌─[administrator@ubuntusrv]─[~]
└──╼ $systemctl --type=service --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
┌─[administrator@ubuntusrv]─[~]
└──╼ $sudo systemctl restart systemd-networkd-wait-online
[sudo] password for administrator:
Job for systemd-networkd-wait-online.service failed because the control process exited with error code.
See "systemctl status systemd-networkd-wait-online.service" and "journalctl -xeu systemd-networkd-wait-online.service" for details.
┌─[✗]─[administrator@ubuntusrv]─[~]
└──╼ $systemctl status systemd-networkd-wait-online.service
× systemd-networkd-wait-online.service - Wait for Network to be Configured
Loaded: loaded (/etc/systemd/system/systemd-networkd-wait-online.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2023-09-21 22:36:52 PST; 3min 31s ago
Docs: man:systemd-networkd-wait-online.service(8)
Process: 143981 ExecStart=/lib/systemd/systemd-networkd-wait-online --any (code=exited, status=1/FAILURE)
Main PID: 143981 (code=exited, status=1/FAILURE)
CPU: 3ms
Sep 21 22:34:52 ubuntusrv systemd[1]: Starting Wait for Network to be Configured...
Sep 21 22:36:52 ubuntusrv systemd-networkd-wait-online[143981]: Timeout occurred while waiting for network connectivity.
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Sep 21 22:36:52 ubuntusrv systemd[1]: Failed to start Wait for Network to be Configured.
┌─[✗]─[administrator@ubuntusrv]─[~]
└──╼ $journalctl -xeu systemd-networkd-wait-online.service
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Sep 21 16:46:36 ubuntusrv systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 12 and the job result is failed.
Sep 21 22:34:52 ubuntusrv systemd[1]: Starting Wait for Network to be Configured...
░░ Subject: A start job for unit systemd-networkd-wait-online.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has begun execution.
░░
░░ The job identifier is 3334.
Sep 21 22:36:52 ubuntusrv systemd-networkd-wait-online[143981]: Timeout occurred while waiting for network connectivity.
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit systemd-networkd-wait-online.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Sep 21 22:36:52 ubuntusrv systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 3334 and the job result is failed.
┌─[administrator@ubuntusrv]─[~]
└──╼ $lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
┌─[administrator@ubuntusrv]─[~]
└──╼ $uname -r
6.3.3-060303-generic