Bug#985786: systemd: should be restartable even with mounted network filesystems
biebl at debian.org
Tue Mar 23 15:23:45 GMT 2021
Control: tags -1 + upstream
Am 23.03.21 um 15:05 schrieb Marc Lehmann:
> we were just debugging an issue where systemd-networkd did not restart on
> some systems, with the following error:
> Mar 23 13:29:50 cert systemd: Starting Network Service...
> Mar 23 13:29:50 cert systemd: systemd-networkd.service: Failed to set up mount namespacing: /run/systemd/unit-r...
> Mar 23 13:29:50 cert systemd: systemd-networkd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-...
> Mar 23 13:29:50 cert systemd: systemd-networkd.service: Main process exited, code=exited, status=226/NAMESPACE
> Mar 23 13:29:50 cert systemd: systemd-networkd.service: Failed with result 'exit-code'.
> Mar 23 13:29:50 cert systemd: Failed to start Network Service.
> As it turns out, this is due to an extremely fragile setup of networkd -
> essentially, it requires working network connectivity to be restartable.
> In our case, the issue above (which, btw., we could only diagnose by
> strace'ing systemd as systemd gives absolutely no useful error message for
> this) was a shared network filesystem mounted as /shared. And since we
> had a network problem (that restarting networkd with a better config was
> supposed to fix), at some point accesses to /shared caused it to fail with
> This in turn caused sysstemd to not be able to set up the private fs
> namespace, eventually causing the failure:
> [pid 564996] statx(4, "shared", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW|AT_NO_AUTOMOUNT, 0, 0x7ffdadcf3d30) = -1 ENOTCONN (Transport endpoint is not connected)
Please consider raising this upstream at
It's very likely that upstream has some follow up questions.
I would suggest to include your strace in that upstream bug report and
also attach your /etc/fstab.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 840 bytes
Desc: OpenPGP digital signature
More information about the Pkg-systemd-maintainers