Hi people,
After upgrading my gentoo box i see a new behavior, that my machine
after boot doen't configure my network. My network is configured through systemd-network,
Only if I manually after login execute: "systemctl restart
systemd-network" it gets configured.
Can somebody tell me why this is the case and how to fix it ?
systemctl Logs:
after start:
● systemd-networkd.service - Network Configuration
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-09-04 08:49:48 CEST; 1min
4s ago
TriggeredBy: ● systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
Main PID: 957 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 19136)
Memory: 2.3M
CGroup: /system.slice/systemd-networkd.service └─957 /lib/systemd/systemd-networkd
Sep 04 08:49:48 tux systemd[1]: Starting Network Configuration...
Sep 04 08:49:48 tux systemd-networkd[957]: lo: Link UP
Sep 04 08:49:48 tux systemd-networkd[957]: lo: Gained carrier
Sep 04 08:49:48 tux systemd-networkd[957]: Enumeration completed
Sep 04 08:49:48 tux systemd[1]: Started Network Configuration.
Sep 04 08:49:49 tux systemd-networkd[957]: eth0: Interface name change detected, renamed to enp6s0.
Sep 04 08:49:49 tux systemd-networkd[957]: eth1: Interface name change detected, renamed to enp7s0.
after manually restart (systemctl restart systemd-networkd):
● systemd-networkd.service - Network Configuration
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-09-04 08:51:47 CEST; 13s ago TriggeredBy: ● systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
Main PID: 1167 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 19136)
Memory: 1.0M
CGroup: /system.slice/systemd-networkd.service └─1167 /lib/systemd/systemd-networkd
Sep 04 08:51:47 tux systemd[1]: Starting Network Configuration...
Sep 04 08:51:47 tux systemd-networkd[1167]: enp6s0: Link UP
Sep 04 08:51:47 tux systemd-networkd[1167]: enp6s0: Gained carrier
Sep 04 08:51:47 tux systemd-networkd[1167]: lo: Link UP
Sep 04 08:51:47 tux systemd-networkd[1167]: lo: Gained carrier
Sep 04 08:51:47 tux systemd-networkd[1167]: Enumeration completed
Sep 04 08:51:47 tux systemd[1]: Started Network Configuration.
Sep 04 08:51:48 tux systemd-networkd[1167]: enp6s0: Gained IPv6LL
Hi people,
After upgrading my gentoo box i see a new behavior, that my machine
after boot doen't configure my network. My network is configured through systemd-network,
Only if I manually after login execute: "systemctl restart
systemd-network" it gets configured.
Can somebody tell me why this is the case and how to fix it ?
On Sun, Sep 5, 2021 at 2:46 AM Tamer Higazi <th982a@googlemail.com <mailto:th982a@googlemail.com>> wrote:
Hi people,
After upgrading my gentoo box i see a new behavior, that my machine
after boot doen't configure my network. My network is configured
through
systemd-network,
Only if I manually after login execute: "systemctl restart
systemd-network" it gets configured.
Can somebody tell me why this is the case and how to fix it ?
Could you please tell us the output of:
systemctl status systemd-networkd.socket
systemd-networkd-wait-online.service
*before* you restart systemd-networkd.service?
Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México
× systemd-networkd-wait-online.service - Wait for Network to be Configured
Loaded: loaded (/lib/systemd/system/systemd-networkd-wait-online.service; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2021-09-05 20:22:19
CEST; 11min ago
Docs: man:systemd-networkd-wait-online.service(8)
Main PID: 984 (code=exited, status=1/FAILURE)
Sep 05 20:20:18 tux systemd[1]: Starting Wait for Network to be
Configured...
Sep 05 20:22:19 tux systemd-networkd-wait-online[984]: Timeout occurred
while waiting for network connectivity.
Sep 05 20:22:19 tux systemd[1]: systemd-networkd-wait-online.service:
Main process exited, code=exited, status=1/FAILURE
Sep 05 20:22:19 tux systemd[1]: systemd-networkd-wait-online.service:
Failed with result 'exit-code'.
Sep 05 20:22:19 tux systemd[1]: Failed to start Wait for Network to be Configured.
On Sun, Sep 5, 2021 at 1:36 PM Tamer Higazi <th982a@googlemail.com <mailto:th982a@googlemail.com>> wrote:
[...]
× systemd-networkd-wait-online.service - Wait for Network to be
Configured
Loaded: loaded
(/lib/systemd/system/systemd-networkd-wait-online.service; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2021-09-05
20:22:19
CEST; 11min ago
Docs: man:systemd-networkd-wait-online.service(8)
Main PID: 984 (code=exited, status=1/FAILURE)
Sep 05 20:20:18 tux systemd[1]: Starting Wait for Network to be
Configured...
Sep 05 20:22:19 tux systemd-networkd-wait-online[984]: Timeout
occurred
while waiting for network connectivity.
Sep 05 20:22:19 tux systemd[1]: systemd-networkd-wait-online.service:
Main process exited, code=exited, status=1/FAILURE
Sep 05 20:22:19 tux systemd[1]: systemd-networkd-wait-online.service:
Failed with result 'exit-code'.
Sep 05 20:22:19 tux systemd[1]: Failed to start Wait for Network
to be
Configured.
There's your problem: systemd-networkd-wait-online.service is timing out:
Sep 05 20:22:19 tux systemd-networkd-wait-online[984]: Timeout occurred while waiting for network connectivity.
The systemd-networkd-wait-online service runs relatively early and
waits for *ALL* interfaces it is aware of to be fully configured or failed[1], so it probably one of your interfaces is taking too long to
be ready. Between timing out and you restarting
systemd-networkd.service, the interface reaches the ready state (or
fails), and systemd-networkd-wait-online.service doesn't time out anymore.
By your logs, you have two ethernet interfaces: enp6s0 and enp7s0, the latter not in use. Do you .network files in /etc/systemd/network/ or /run/systemd/network/? Any changes (uncommented lines) in /etc/systemd/networkd.conf?
Regards.
[1]
https://man7.org/linux/man-pages/man8/systemd-networkd-wait-online.8.html <https://man7.org/linux/man-pages/man8/systemd-networkd-wait-online.8.html> --
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México
Dear Dr. Valdés,^
/etc/systemd/network/20-wirded.network:
/etc/systemd/network/20-wirded.network:
configuration will be done before the devices are made and renamed to
enp6s0 and enp7s0.
/etc/systemd/network/20-wirded.network:^
Typo? Unimportant? Significant?
On Mon, Sep 6, 2021 at 2:46 PM Tamer Higazi <th982a@googlemail.com <mailto:th982a@googlemail.com>> wrote:
[...]
/etc/systemd/network/20-wirded.network:
[...]
That looks fine to me.
for enp7s0 there is no other network file.
That is as it should be.
I think with THIS systemd version, the whole problem is, that the
configuration will be done before the devices are made and renamed to
enp6s0 and enp7s0.
I don't think so; the renaming of ethernet devices happens really
early, and systemd-networkd detects it automatically (journal -b -g
enp6s0 should show "enp6s0: renamed from eth0" as first log line, and
then systemd-networkd detecting it).
The problem is, how to solve it ....
Try adding this to /etc/systemd/network/20-wirded.network, at the end:
[Link]
RequiredForOnline=false
but this is a workaround; everything should work automagically.
Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México
Dear Dr. Valdés,
I am sorry to tell you that the result still remains the same.
but somebody in the mailing list told me, that the "order" of process
might not be right ?
└─override.conf
[Unit]
After=systemd-udev-settle.service
cat /etc/systemd/system/systemd-networkd.service.d/override.conf
On Tue, Sep 7, 2021 at 2:35 PM Tamer Higazi <th982a@googlemail.com <mailto:th982a@googlemail.com>> wrote:
[Unit]
After=systemd-udev-settle.service
I think that's the problem; in my machines, that service is never run.
When did you add the override? What happens if you delete it? (Also
remove the [Link] section in your .network file).
Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México
Sep 07 22:15:19 tux systemd[1]: Starting Network Configuration...
Sep 07 22:15:19 tux systemd-networkd[958]: lo: Link UP
Sep 07 22:15:19 tux systemd-networkd[958]: lo: Gained carrier
Sep 07 22:15:19 tux systemd-networkd[958]: Enumeration completed
Sep 07 22:15:19 tux systemd[1]: Started Network Configuration.
Sep 07 22:15:20 tux systemd-networkd[958]: eth0: Interface name change detected, renamed to enp6s0.
Sep 07 22:15:20 tux systemd-networkd[958]: eth1: Interface name change detected, renamed to enp7s0.
systemctl list-dependencies --after systemd-networkd
my one outputs this:
tamer@tux ~ $ systemctl list-dependencies --after systemd-networkd systemd-networkd.service
● ├─-.mount
● ├─system.slice
● ├─systemd-journald.socket
● ├─systemd-networkd.socket
● ├─systemd-sysctl.service
○ ├─systemd-sysusers.service
○ ├─systemd-udev-settle.service
● ├─systemd-udevd.service
○ └─network-pre.target
In another. The only difference I see is the
systemd-udev-settle.service, do you have it enabled it? What systemd-* services do you have enabled? I have:
aztlan ~ # find /etc/systemd/system -name "systemd-*" -type l /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service /etc/systemd/system/sockets.target.wants/systemd-networkd.socket
Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México
I think the problem is somewhere deeper ....
I wish I knew what it might be.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 70:23:21 |
Calls: | 6,656 |
Calls today: | 2 |
Files: | 12,200 |
Messages: | 5,332,151 |
Posted today: | 1 |