Score:0

Ubuntu Server 22.04.2 LTS persistent error systemd-networkd-wait-online.service

cn flag

Running Ubuntu server 22.04.2 LTS, runs normally but there is a persistent failed systemd service: "systemd-networkd-wait-online.service", tried verious things including disabling (doesn't work) masking (again not allowing me to), systemctl status gives me degraded. Output of networkctl is:

IDX LINK   TYPE     OPERATIONAL SETUP      
  1 lo     loopback carrier     unmanaged
  2 eno1   ether    routable    configured 
  3 eno2   ether    no-carrier  configuring
  4 usb0   ether    off         unmanaged
  5 virbr0 bridge   no-carrier  unmanaged

5 links listed."

I suspect its the eno2 interface, output from systemctl gives:

Jul 01 14:00:47 supermicro systemd[1]: Starting Wait for Network to be Configured...
Jul 01 14:00:57 supermicro systemd-networkd-wait-online[7530]: Timeout occurred while waiting for network connectivity.
Jul 01 14:00:57 supermicro systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 14:00:57 supermicro systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Jul 01 14:00:57 supermicro systemd[1]: Failed to start Wait for Network to be Configured.

The server is connected to a router via RJ45 cable and there is only one ethernet socket on the motherboard. Not sure what else to do? Any assistance welcome.....

Score:1
br flag

You can add RequiredForOnline=no to the config of "eno2" and it will not check the online status for the interface.

https://www.freedesktop.org/software/systemd/man/systemd.network.html

Raffa avatar
jp flag
Nice workaround +1 ... Probably also `eno2` configuration is worth a deeper check to correct the issue making it take so long to process/configure ... Also a pointer to the configuration file and the process to add `RequiredForOnline=no` would make it easier to apply.
Marco avatar
br flag
@Raffa thanks for the remark. It is always the question: "How much of the manual should be copied in the answer?"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.