El tiempo de espera del servicio systemd-networkd-wait-online se agota durante el arranque

El tiempo de espera del servicio systemd-networkd-wait-online se agota durante el arranque

He tenido este problema durante bastante tiempo, así que hoy probé una sugerencia que encontré en línea y la ejecuté systemd-analyze ploty verifiqué el resultado.

Adjunto aquí el archivo SVG porque, a menos que me equivoque, solo hay dos cosas que tardan un tiempo absurdamente largo en arrancar, una de ellas systemd-networkd-wait-online(por supuesto) pero luego, curiosamente, sendmailque ni siquiera uso en este servidor es dentro de mi red doméstica y solo funciona como seedbox/servidor de medios.

¿Me estoy perdiendo de algo? Lo desactivé wlananteriormente para descartarlo, ya que es una máquina cableada y no necesita wlan.

https://c0ld.net/slowboot.svg

Lo deshabilité sendmail, reinicié, vi que se agotó el tiempo de espera y luego lo ejecuté nuevamente y ahora lo único que lleva tiempo es lo que estoy tratando de arreglar. Cualquier ayuda será muy apreciada.

https://c0ld.net/slowboot-nosendmail.svg

Aquí hay un diario completo:http://0x0.st/Xo36.txt

Tiene una IP estática, no tiene conexión a Internet, ejecuta plex, bittorrent-noxy jellyfintiene un par de discos duros USB montados en el arranque para almacenamiento y eso es todo lo que se ejecuta aparte de webminy cockpit. Tiene Ubuntu GNome completo instalado pero no arranca al inicio, solo lo quería para divertirme si alguna vez necesito usarlo como una PC de respaldo.

Realmente no quiero simplemente enmascarar el problema desactivando el servicio. Incluso intenté cambiar a renderer: networkddesde renderer: NetworkManagerennetplan

Destinado a agregar, salida denetworkctl

  1 lo     loopback carrier     unmanaged
  2 eno1   ether    routable    configured
  3 wlp1s0 wlan     off         unmanaged

3 links listed.

Entonces no hay nada loco allí.

También tengo optional: truela configuración de eno1 en netplan.

EDITAR: También intenté agregar --any y --interface=eno1 como se especifica a continuación y ambos todavía tienen el mismo tiempo de espera. https://ubuntuforums.org/showthread.php?t=2490962

Apr 21 15:15:16 jays-lenovo 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 3886.
Apr 21 15:17:16 jays-lenovo systemd-networkd-wait-online[4967]: Timeout occurred while waiting for network connectivity.
Apr 21 15:17:16 jays-lenovo 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.
Apr 21 15:17:16 jays-lenovo 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'.
Apr 21 15:17:16 jays-lenovo 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 3886 and the job result is failed.

¡Esto fue después de reiniciar el servicio con --interface=eno1, que definitivamente está activo!

La misma verificación para systemd-networkd.service

-- Boot 984031206640442cb02a40798ddf3b7f --
Apr 21 14:21:12 jays-lenovo systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 49.
Apr 21 14:21:12 jays-lenovo systemd-networkd[1178]: lo: Link UP
Apr 21 14:21:12 jays-lenovo systemd-networkd[1178]: lo: Gained carrier
Apr 21 14:21:12 jays-lenovo systemd-networkd[1178]: Enumeration completed
Apr 21 14:21:12 jays-lenovo systemd[1]: Started Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has finished successfully.
░░
░░ The job identifier is 49.
Apr 21 14:23:15 jays-lenovo systemd-networkd[1178]: eno1: Link UP
Apr 21 14:23:18 jays-lenovo systemd-networkd[1178]: eno1: Gained carrier
Apr 21 14:23:19 jays-lenovo systemd-networkd[1178]: eno1: Gained IPv6LL
Apr 21 14:51:50 jays-lenovo systemd-networkd[1178]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 14:51:51 jays-lenovo systemd-networkd[1178]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 14:51:51 jays-lenovo systemd-networkd[1178]: eno1: DHCPv6 lease lost
Apr 21 14:52:23 jays-lenovo systemd[1]: Stopping Network Configuration...
░░ Subject: A stop job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 4966.
Apr 21 14:52:23 jays-lenovo systemd-networkd[1178]: eno1: DHCPv6 lease lost
Apr 21 14:52:23 jays-lenovo systemd[1]: systemd-networkd.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd.service has successfully entered the 'dead' state.
Apr 21 14:52:23 jays-lenovo systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 4966 and the job result is done.
-- Boot dc2cb94cb1f649c49648ba8e085192db --
Apr 21 14:53:19 jays-lenovo systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 25.
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: lo: Link UP
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: lo: Gained carrier
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: Enumeration completed
Apr 21 14:53:19 jays-lenovo systemd[1]: Started Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has finished successfully.
░░
░░ The job identifier is 25.
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: eno1: Link UP
Apr 21 14:53:22 jays-lenovo systemd-networkd[1172]: eno1: Gained carrier
Apr 21 14:53:24 jays-lenovo systemd-networkd[1172]: eno1: Gained IPv6LL
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: DHCPv6 lease lost
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: DHCPv6 lease lost

Llenohttps://c0ld.net/dmesg.htmldisponible aquí. No sé qué más probar a estas alturas, he buscado en Internet.

eno1 también está configurado como una IP estática, por lo que no tiene sentido que tarde más en estar disponible que menos tiempo.

192.168.2.1 es el enrutador principal para toda mi casa con múltiples enrutadores diferentes y decenas de dispositivos, ninguno más tiene ningún problema.

# This is the network config written by 'subiquity'
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      optional: false
      addresses:
        - 192.168.2.99/24
      nameservers:
        addresses: [192.168.2.1]
      routes:
        - to: default
          via: 192.168.2.1

Respuesta1

Oh, vaya, está bien, fue necesario un poco de manipulación, para los futuros viajeros, fue un desastre de NetworkManager, netplan y networkd, todos unidos. Fui y seguí (o me faltaban los bits de todos modos) de estos dos y todo funciona perfectamente, reinicie en unos segundos :)

https://linux.fernandocejas.com/docs/how-to/switch-from-network-manager-to-systemd-networkd

https://askubuntu.com/questions/1336247/removing-netplan-to-use-systemd-networkd-directly

información relacionada