Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] network do not come up after booting, only manual reloading (systemd-networkd)
Date: Sun, 05 Sep 2021 19:51:50
Message-Id: CADPrc83MZhDL2L+aqZq8C23+ZyYfn3H2nQOGMvgEw49dqnEXsg@mail.gmail.com
In Reply to: Re: [gentoo-user] network do not come up after booting, only manual reloading (systemd-networkd) by Tamer Higazi
1 On Sun, Sep 5, 2021 at 1:36 PM Tamer Higazi <th982a@××××××××××.com> wrote:
2 [...]
3
4 > × systemd-networkd-wait-online.service - Wait for Network to be Configured
5 > Loaded: loaded
6 > (/lib/systemd/system/systemd-networkd-wait-online.service; enabled;
7 > vendor preset: disabled)
8 > Active: failed (Result: exit-code) since Sun 2021-09-05 20:22:19
9 > CEST; 11min ago
10 > Docs: man:systemd-networkd-wait-online.service(8)
11 > Main PID: 984 (code=exited, status=1/FAILURE)
12
13
14 > Sep 05 20:20:18 tux systemd[1]: Starting Wait for Network to be
15 > Configured...
16 > Sep 05 20:22:19 tux systemd-networkd-wait-online[984]: Timeout occurred
17 > while waiting for network connectivity.
18 > Sep 05 20:22:19 tux systemd[1]: systemd-networkd-wait-online.service:
19 > Main process exited, code=exited, status=1/FAILURE
20 > Sep 05 20:22:19 tux systemd[1]: systemd-networkd-wait-online.service:
21 > Failed with result 'exit-code'.
22 > Sep 05 20:22:19 tux systemd[1]: Failed to start Wait for Network to be
23 > Configured.
24 >
25
26 There's your problem: systemd-networkd-wait-online.service is timing out:
27
28 Sep 05 20:22:19 tux systemd-networkd-wait-online[984]: Timeout
29 occurred while waiting for network connectivity.
30
31 The systemd-networkd-wait-online service runs relatively early and waits
32 for *ALL* interfaces it is aware of to be fully configured or failed[1], so
33 it probably one of your interfaces is taking too long to be ready. Between
34 timing out and you restarting systemd-networkd.service, the interface
35 reaches the ready state (or fails), and
36 systemd-networkd-wait-online.service doesn't time out anymore.
37
38 By your logs, you have two ethernet interfaces: enp6s0 and enp7s0, the
39 latter not in use. Do you .network files in /etc/systemd/network/ or
40 /run/systemd/network/? Any changes (uncommented lines) in
41 /etc/systemd/networkd.conf?
42
43 Regards.
44
45 [1]
46 https://man7.org/linux/man-pages/man8/systemd-networkd-wait-online.8.html
47 --
48 Dr. Canek Peláez Valdés
49 Profesor de Carrera Asociado C
50 Departamento de Matemáticas
51 Facultad de Ciencias
52 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] network do not come up after booting, only manual reloading (systemd-networkd) Tamer Higazi <th982a@××××××××××.com>