Bug#1036949: systemd-networkd.service fails with Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.

Volker Theile votdev at gmx.de
Tue May 30 17:54:29 BST 2023


Package: systemd
Version: 247.3-7+deb11u2
Severity: important

Hello,

systemd-networkd is crashing with the error message

systemd-networkd.service fails with Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.

It can be forced into a running state by running "systemctl restart systemd-networkd.service" several times.

The following information can be provided to reproduce the issue.

OS: Debian 11
systemd version: 247 (247.3-7+deb11u2)
Linux kernel version used: 6.1.0-0.deb11.7-amd64
CPU architecture: x86_64

The following error is reported in syslog/journal:

May 30 17:28:13 omv6box systemd[1]: Starting Network Service...
May 30 17:28:13 omv6box systemd-networkd[10005]: bond0: netdev ready
May 30 17:28:13 omv6box systemd-networkd[10005]: vethcdaf262a: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10005]: veth2a72a113: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10005]: Enumeration completed
May 30 17:28:13 omv6box systemd[1]: Started Network Service.
May 30 17:28:13 omv6box systemd-networkd[10005]: bond0: netdev exists, using existing without changing its parameters
May 30 17:28:13 omv6box systemd-networkd[10005]: bond0: DHCPv4 address 192.172.16.165/24 via 192.172.16.1
May 30 17:28:13 omv6box systemd-networkd[10005]: ens6: DHCPv4 address 192.168.121.219/24 via 192.168.121.1
May 30 17:28:13 omv6box systemd-networkd[10005]: Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Main process exited, code=killed, status=6/ABRT
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Failed with result 'signal'.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 1.
May 30 17:28:13 omv6box systemd[1]: Stopped Network Service.
May 30 17:28:13 omv6box systemd[1]: Starting Network Service...
May 30 17:28:13 omv6box systemd-networkd[10007]: bond0: netdev ready
May 30 17:28:13 omv6box systemd-networkd[10007]: vethcdaf262a: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10007]: veth2a72a113: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10007]: Enumeration completed
May 30 17:28:13 omv6box systemd[1]: Started Network Service.
May 30 17:28:13 omv6box systemd-networkd[10007]: bond0: netdev exists, using existing without changing its parameters
May 30 17:28:13 omv6box systemd-networkd[10007]: bond0: DHCPv4 address 192.172.16.165/24 via 192.172.16.1
May 30 17:28:13 omv6box systemd-networkd[10007]: Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Main process exited, code=killed, status=6/ABRT
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Failed with result 'signal'.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 2.
May 30 17:28:13 omv6box systemd[1]: Stopped Network Service.
May 30 17:28:13 omv6box systemd[1]: Starting Network Service...
May 30 17:28:13 omv6box systemd-networkd[10008]: bond0: netdev ready
May 30 17:28:13 omv6box systemd-networkd[10008]: vethcdaf262a: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10008]: veth2a72a113: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10008]: Enumeration completed
May 30 17:28:13 omv6box systemd[1]: Started Network Service.
May 30 17:28:13 omv6box systemd-networkd[10008]: bond0: netdev exists, using existing without changing its parameters
May 30 17:28:13 omv6box systemd-networkd[10008]: bond0: DHCPv4 address 192.172.16.165/24 via 192.172.16.1
May 30 17:28:13 omv6box systemd-networkd[10008]: ens6: DHCPv4 address 192.168.121.219/24 via 192.168.121.1
May 30 17:28:13 omv6box systemd-networkd[10008]: Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Main process exited, code=killed, status=6/ABRT
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Failed with result 'signal'.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 3.
May 30 17:28:13 omv6box systemd[1]: Stopped Network Service.
May 30 17:28:13 omv6box systemd[1]: Starting Network Service...
May 30 17:28:13 omv6box systemd-networkd[10014]: bond0: netdev ready
May 30 17:28:13 omv6box systemd-networkd[10014]: vethcdaf262a: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10014]: veth2a72a113: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10014]: Enumeration completed
May 30 17:28:13 omv6box systemd[1]: Started Network Service.
May 30 17:28:13 omv6box systemd-networkd[10014]: bond0: netdev exists, using existing without changing its parameters
May 30 17:28:13 omv6box systemd-networkd[10014]: bond0: DHCPv4 address 192.172.16.165/24 via 192.172.16.1
May 30 17:28:13 omv6box systemd-networkd[10014]: Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Main process exited, code=killed, status=6/ABRT
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Failed with result 'signal'.
May 30 17:28:13 omv6box systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 4.
May 30 17:28:13 omv6box systemd[1]: Stopped Network Service.
May 30 17:28:13 omv6box systemd[1]: Starting Network Service...
May 30 17:28:13 omv6box systemd-networkd[10015]: bond0: netdev ready
May 30 17:28:13 omv6box systemd-networkd[10015]: vethcdaf262a: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10015]: veth2a72a113: Gained IPv6LL
May 30 17:28:13 omv6box systemd-networkd[10015]: Enumeration completed
May 30 17:28:13 omv6box systemd[1]: Started Network Service.
May 30 17:28:13 omv6box systemd-networkd[10015]: bond0: netdev exists, using existing without changing its parameters
May 30 17:28:13 omv6box systemd-networkd[10015]: bond0: DHCPv4 address 192.172.16.165/24 via 192.172.16.1
May 30 17:28:13 omv6box systemd-networkd[10015]: Assertion 'a' failed at src/network/networkd-address.c:1868, function address_is_ready(). Aborting.
May 30 17:28:14 omv6box systemd[1]: systemd-networkd.service: Main process exited, code=killed, status=6/ABRT
May 30 17:28:14 omv6box systemd[1]: systemd-networkd.service: Failed with result 'signal'.
May 30 17:28:14 omv6box systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 5.
May 30 17:28:14 omv6box systemd[1]: Stopped Network Service.
May 30 17:28:14 omv6box systemd[1]: systemd-networkd.service: Start request repeated too quickly.
May 30 17:28:14 omv6box systemd[1]: systemd-networkd.service: Failed with result 'signal'.
May 30 17:28:14 omv6box systemd[1]: Failed to start Network Service.




The systemd-networkd configuration files look like:

```
root at omv6box:~# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files systemd
group:          files systemd
shadow:         files
gshadow:        files

hosts:          files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns myhostname
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
```

```
root at omv6box:~# cat /etc/systemd/resolved.conf.d/99-openmediavault-mdns.conf
[Resolve]
# Avahi is responsible for that.
MulticastDNS=no
```

```
root at omv6box:/run/systemd/network# ls -alh
total 20K
drwxr-xr-x  2 root root 140 May 30 15:16 .
drwxr-xr-x 23 root root 560 May 30 15:16 ..
-rw-r--r--  1 root root 110 May 30 15:16 10-netplan-bond0.netdev
-rw-r--r--  1 root root 143 May 30 15:16 10-netplan-bond0.network
-rw-r--r--  1 root root 133 May 30 15:16 10-netplan-ens6.network
-rw-r--r--  1 root root  63 May 30 15:16 10-netplan-ens7.network
-rw-r--r--  1 root root  63 May 30 15:16 10-netplan-ens8.network
```

```
root at omv6box:/run/systemd/network# cat 10-netplan-bond0.netdev
[NetDev]
Name=bond0
Kind=bond

[Bond]
Mode=balance-rr
MIIMonitorSec=100ms
UpDelaySec=200ms
DownDelaySec=200ms
```

```
root at omv6box:/run/systemd/network# cat 10-netplan-bond0.network
[Match]
Name=bond0

[Network]
DHCP=ipv4
LinkLocalAddressing=no
ConfigureWithoutCarrier=yes

[DHCP]
RouteMetric=100
UseMTU=true
UseDomains=true
```

```
root at omv6box:/run/systemd/network# cat 10-netplan-ens6.network
[Match]
MACAddress=52:54:00:74:70:22

[Network]
DHCP=ipv4
LinkLocalAddressing=no

[DHCP]
RouteMetric=100
UseMTU=true
UseDomains=true
```

```
root at omv6box:/run/systemd/network# cat 10-netplan-ens7.network
[Match]
Name=ens7

[Network]
LinkLocalAddressing=no
Bond=bond0
```

```
root at omv6box:/run/systemd/network# cat 10-netplan-ens8.network
[Match]
Name=ens8

[Network]
LinkLocalAddressing=no
Bond=bond0
```

More information can be found in the systemd GH upstream issue at https://github.com/systemd/systemd/issues/27854 and https://github.com/systemd/systemd/issues/20232.

Regards
Volker



More information about the Pkg-systemd-maintainers mailing list