Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: systemd-networkd-wait-online.service failed

  1. #1
    Join Date
    Sep 2023
    Beans
    6

    systemd-networkd-wait-online.service failed

    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
    Last edited by nasgul; September 25th, 2023 at 06:52 AM. Reason: resolved

  2. #2
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,266
    Distro
    Ubuntu Budgie Development Release

    Re: systemd-networkd-wait-online.service failed

    Moved to Virtualisation.
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  3. #3
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: systemd-networkd-wait-online.service failed

    Would you please try this:
    Code:
    sudo systemctl edit systemd-networkd-wait-online.service
    And modify to read exactly like:
    Code:
    [Service]
    ExecStart=
    ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any
    If that not satisfactory then change:
    Code:
    ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=eth0
    That will cause the service to ignore all other interfaces.
    Keep us posted.
    And as pointed out:
    Quote Originally Posted by crtlbreak View Post
    Dont forget to do a
    Code:
    systemctl restart systemd-networkd-wait-online.service
    Last edited by #&thj^%; October 17th, 2023 at 05:33 PM.

  4. #4
    Join Date
    Sep 2023
    Beans
    1

    Re: systemd-networkd-wait-online.service failed

    I have the same issue on multiple ubuntu 22.04 virtual servers, they run fine, but take longer to boot up.
    The first time I saw the error in monitoring was September 13.

    Quote Originally Posted by 1fallen;14158617

    [code
    ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=eth0[/code]

    That will cause the service to ignore all other interfaces.
    Keep us posted.
    I tested the two, --any had no effect, same error when I restarted the service, but --interface=eth0 fixed it.

    To me it looks like systemd-networkd-wait-online somehow doesn't know about the interfaces.

  5. #5
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: systemd-networkd-wait-online.service failed

    Just an observation...

    Maybe do:
    Code:
    ip a
    Change "--interface=eth0" to the active Ethernet device name from that output. Linux deprecated using ethX a while ago, and now remaps them to denote PCIe bus/slot. Example: enp7s0

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  6. #6
    Join Date
    Sep 2023
    Beans
    6

    Re: systemd-networkd-wait-online.service failed

    Quote Originally Posted by 1fallen View Post
    Code:
    ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=eth0
    This one worked for me but in my case it's
    Code:
    ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=enp6s18
    Before I got any responses in this thread, I also tried out changing the /etc/netplan/00-installer-config.yaml config with renderer set from NetworkManager to networkd which also resolved the issue for me:

    Code:
    network:
      ethernets:
        enp6s18:
          dhcp4: no
          addresses: [192.168.1.239/24]
          routes:
            - to: default
              via: 192.168.1.1
          nameservers:
            addresses: [192.168.1.239, 9.9.9.9, 1.1.1.2, 208.67.222.222]
      version: 2
      renderer: networkd

  7. #7
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: systemd-networkd-wait-online.service failed

    LOL. Yup.

    By coincidence, both 1fallen and I were just talking privately the other day about the log error messages we see from systems using NetworkManager and that we both use networkd as our preference.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  8. #8
    Join Date
    Mar 2008
    Location
    London
    Beans
    89
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: systemd-networkd-wait-online.service failed

    Quote Originally Posted by 1fallen View Post
    Would you please try this:
    Code:
    sudo systemctl edit systemd-networkd-wait-online.service
    And modify to read exactly like:
    Code:
    [Service]
    ExecStart=
    ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any
    If that not satisfactory then change:
    Code:
    ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=eth0
    That will cause the service to ignore all other interfaces.
    Keep us posted.

    Dont forget to do a
    Code:
    systemctl restart systemd-networkd-wait-online.service
    Last edited by crtlbreak; October 17th, 2023 at 04:34 PM.
    0,= ,-_-. =.
    ((_/)o o(\_))
    `' `-'(. .)`-'
    '''00\_/

  9. #9
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: systemd-networkd-wait-online.service failed

    Quote Originally Posted by crtlbreak View Post
    Dont forget to do a
    Code:
    systemctl restart systemd-networkd-wait-online.service
    +1
    Quote Originally Posted by MAFoElffen View Post
    LOL. Yup.

    By coincidence, both 1fallen and I were just talking privately the other day about the log error messages we see from systems using NetworkManager and that we both use networkd as our preference.
    Code:
    systemctl status systemd-networkd
    ● systemd-networkd.service - Network Configuration
         Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled;>
         Active: active (running) since Tue 2023-10-17 10:43:41 MDT; 2min 34s ago
    TriggeredBy: ● systemd-networkd.socket
           Docs: man:systemd-networkd.service(8)
                 man:org.freedesktop.network1(5)
       Main PID: 681 (systemd-network)
         Status: "Processing requests..."
          Tasks: 1 (limit: 18275)
       FD Store: 0 (limit: 512)
         Memory: 3.4M
            CPU: 55ms
         CGroup: /system.slice/systemd-networkd.service
                 └─681 /usr/lib/systemd/systemd-networkd

  10. #10
    Join Date
    Sep 2024
    Beans
    1

    Re: systemd-networkd-wait-online.service failed

    I tried everything suggested in the thread to no avail. What finally solved it for me was adding "link-local: [ ]" to the network configuration file as shown below.

    /etc/netplan/00-installer-config.yaml
    network:
    version: 2
    ethernets:
    ens160:
    link-local: [ ]
    dhcp4: false


    vlans:
    vlan.671:
    id: 671
    link: ens160
    link-local: [ ipv4 ]
    dhcp4: true

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •