[systemd-bugs] systemd-211 Failed to save link data /run/systemd/network/links/2: No such file or directory warning
Stanley
jpsinthemix at verizon.net
Fri Mar 14 00:24:54 PDT 2014
Hi,
I replaced dhcpcd with systemd-networkd dhcp on installing systemd-210,
and all works
perfectly. Beginning with systemd-211, on every boot I'm getting the
systemd-networkd
warning/error message:
Failed to save link data /run/systemd/network/links/2: No such file
or directory
So far as I can tell all is working fine (the network is up, and once
logged in,
/run/systemd/network/links/2 is present), so I'm curious about why this
warning
occurs. Is this issue occurring for anyone else ?
My system: software-based,i686-pc-linux-gnu [Intel(R) Pentium(R) 4 CPU
3.00GHz];
linux-3.13.6,binutils-2.24,glibc-2.19,gcc-4.8.2,systemd-211
My systemd dhcp setup:
$ ls /etc/systemd/network
10-dhcp.network
$ cat /etc/systemd/network/10-dhcp.network
[Match]
Name=[ew]*
[Network]
DHCP=yes
I have rebuilt systemd with some added debug to determine the codepath
and error
details; what I found is as follows:
in systemd-211/src/network/networkd-manager.c
a call to link_add():206
in systemd-211/src/network/networkd-link.c, from link_add():1293
a call to link_configure():1280
a call to link_enter_enslave():1290
a call to link_save():1138
a call to mkdir_safe_label():1370 to create
"/run/systemd/network/links"
in systemd-211/src/shared/mkdir-label.c, from
mkdir_safe_label():39
a call to mkdir_safe_internal():40, passing label_mkdir
in systemd-211/src/shared/mkdir.c, from
mkdir_safe_internal():34
a call to _mkdir():37, _mkdir := label_mkdir():371 in
systemd-211/src/shared/label.c
a call to lstat():41
In systemd-211/src/shared/mkdir.c, we have:
37 if (_mkdir(path, mode) >= 0) <----------------------------
the error actually occurs here, but
38 if (chmod_and_chown(path, mode, uid, gid) < 0)
is detected in the lstat():41 call
39 return -errno;
40
41 if (lstat(path, &st) < 0) <--- at this point, only
/run/systemd exists, ie, the network/links
42 return -errno; component(s) have yet to be
created, hence the error
systemd-networkd status, journalctl entries, and /run/systemd/network files:
---------------------------------------------------------------------------
$ sudo systemctl -l status systemd-networkd
systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled)
Active: active (running) since Thu 2014-03-13 19:23:03 EDT; 1min 31s ago
Docs: man:systemd-networkd.service(8)
Main PID: 172 (systemd-network)
Status: "Processing requests..."
CGroup: /system.slice/systemd-networkd.service
`-172 /lib/systemd/systemd-networkd
Mar 13 19:23:03 b-movie systemd[1]: Starting Network Service...
Mar 13 19:23:03 b-movie systemd-networkd[172]: Failed to save link data
/run/systemd/network/links/2: No such file or directory
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: link is up
Mar 13 19:23:03 b-movie systemd[1]: Started Network Service.
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: carrier on
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: DHCPv4 address
192.168.0.100/24 via 192.168.0.1
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: link configured
$ sudo journalctl -xb | grep -iE 'enp2s2|dhcp|network'
Mar 13 19:23:03 b-movie systemd[1]: Starting Network Service...
Mar 13 19:23:03 b-movie avahi-daemon[169]: Network interface enumeration
completed.
Mar 13 19:23:03 b-movie systemd-networkd[172]: Failed to save link data
/run/systemd/network/links/2: No such file or directory
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: link is up
Mar 13 19:23:03 b-movie systemd[1]: Started Network Service.
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: carrier on
Mar 13 19:23:03 b-movie systemd[1]: Starting Network.
Mar 13 19:23:03 b-movie systemd[1]: Reached target Network.
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: DHCPv4 address
192.168.0.100/24 via 192.168.0.1
Mar 13 19:23:03 b-movie systemd-networkd[172]: enp2s2: link configured
$ ls -lta /run/systemd/network/links
total 4
drwxr-xr-x 2 root root 60 Mar 13 19:11 .
drwxr-xr-x 4 root root 100 Mar 13 19:11 ..
-rw-r--r-- 1 root root 105 Mar 13 19:11 2
$ ls -lta /run/systemd/network/leases
total 4
drwxr-xr-x 2 root root 60 Mar 13 19:11 .
drwxr-xr-x 4 root root 100 Mar 13 19:11 ..
-rw-r--r-- 1 root root 148 Mar 13 19:11 test.lease
$ cat /run/systemd/network/leases/test.lease
# This is private data. Do not parse.
ADDRESS=192.168.0.100
ROUTER=192.168.0.1
NETMASK=255.255.255.0
SERVER_ADDRESS=192.168.0.1
NEXT_SERVER=0.0.0.0
thanks much,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140314/7229251c/attachment.html>
More information about the systemd-bugs
mailing list