hi,
i’m using systemd-resolved with network manager. i’ve installed the systemd-resolved package and created a symlink to /etc/resolv.conf.
i want to use systemd-resolved because i need split DNS with VPN connections.
everything is working fine except one thing:
when i reboot my notebook systemd-resolved fails to start, see journalctl:
Aug 20 16:21:46 systemd[1]: Starting Network Name Resolution...
Aug 20 16:21:46 (resolved)[1023]: Failed to create destination mount point node '/run/systemd/mount-rootfs/var/tmp', ignoring: Permission denied
Aug 20 16:21:46 (resolved)[1023]: Failed to mount /run/systemd/unit-private-tmp/var-tmp to /run/systemd/mount-rootfs/var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1023]: systemd-resolved.service: Failed to set up mount namespacing: /var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1023]: systemd-resolved.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-resolved: No such file or directory
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=226/NAMESPACE
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:46 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 1.
Aug 20 16:21:46 systemd[1]: Starting Network Name Resolution...
Aug 20 16:21:46 (resolved)[1029]: Failed to create destination mount point node '/run/systemd/mount-rootfs/var/tmp', ignoring: Permission denied
Aug 20 16:21:46 (resolved)[1029]: Failed to mount /run/systemd/unit-private-tmp/var-tmp to /run/systemd/mount-rootfs/var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1029]: systemd-resolved.service: Failed to set up mount namespacing: /var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1029]: systemd-resolved.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-resolved: No such file or directory
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=226/NAMESPACE
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:46 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 2.
Aug 20 16:21:46 systemd[1]: Starting Network Name Resolution...
Aug 20 16:21:46 (resolved)[1034]: Failed to create destination mount point node '/run/systemd/mount-rootfs/var/tmp', ignoring: Permission denied
Aug 20 16:21:46 (resolved)[1034]: Failed to mount /run/systemd/unit-private-tmp/var-tmp to /run/systemd/mount-rootfs/var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1034]: systemd-resolved.service: Failed to set up mount namespacing: /var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1034]: systemd-resolved.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-resolved: No such file or directory
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=226/NAMESPACE
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:46 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 3.
Aug 20 16:21:46 systemd[1]: Starting Network Name Resolution...
Aug 20 16:21:46 (resolved)[1038]: Failed to create destination mount point node '/run/systemd/mount-rootfs/var/tmp', ignoring: Permission denied
Aug 20 16:21:46 (resolved)[1038]: Failed to mount /run/systemd/unit-private-tmp/var-tmp to /run/systemd/mount-rootfs/var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1038]: systemd-resolved.service: Failed to set up mount namespacing: /var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1038]: systemd-resolved.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-resolved: No such file or directory
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=226/NAMESPACE
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:46 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 4.
Aug 20 16:21:46 systemd[1]: Starting Network Name Resolution...
Aug 20 16:21:46 (resolved)[1097]: Failed to create destination mount point node '/run/systemd/mount-rootfs/var/tmp', ignoring: Permission denied
Aug 20 16:21:46 (resolved)[1097]: Failed to mount /run/systemd/unit-private-tmp/var-tmp to /run/systemd/mount-rootfs/var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1097]: systemd-resolved.service: Failed to set up mount namespacing: /var/tmp: No such file or directory
Aug 20 16:21:46 (resolved)[1097]: systemd-resolved.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-resolved: No such file or directory
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=226/NAMESPACE
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:46 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 20 16:21:46 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:46 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:47 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 20 16:21:47 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:47 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:47 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 20 16:21:47 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:47 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:47 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 20 16:21:47 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:47 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:48 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 20 16:21:48 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:48 systemd[1]: Failed to start Network Name Resolution.
Aug 20 16:21:52 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 20 16:21:52 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 20 16:21:52 systemd[1]: Failed to start Network Name Resolution.
weird thing is, when i’ve logged into my gnome session and open up a terminal and restart systemd-resolved via sudo systemctl restart systemd-resolved it starts fine and runs well.
has anyone an idea how to get systemd-resolved to directly start on boot without crashing?
the mentioned directories / files are present:
# ls -lah /usr/lib/systemd/systemd-resolved
-rwxr-xr-x. 1 root root 563K Aug 4 10:54 /usr/lib/systemd/systemd-resolved
# ls -lah /var/tmp
total 0
drwxrwxrwt. 1 root root 2.2K Aug 21 15:31 .
except for this one:
# ls -lah /run/systemd/mount-rootfs/var/tmp
ls: cannot access '/run/systemd/mount-rootfs/var/tmp': No such file or directory
but i think i should not create directories in /run/systemd, right?
any help welcome ![]()
thanks and greetings