systemd.resolved 无法启动——文件句柄过时

systemd.resolved 无法启动——文件句柄过时

我在解析任何 DNS 时遇到问题,我检查了网络设置,没有问题。然后我意识到 systemd-resolved 没有启动。你能帮我解决这个问题吗?

我尝试检查了不同机器上的服务配置,没有发现任何问题

在不同的帖子上我发现帮助将严格参数更改为完全相同的问题

更新了所有软件包

Ubuntu 20.04 lts

日志

    root@de00srvapp732r1:/run/systemd/unit-root# sudo systemctl start systemd-resolved
Job for systemd-resolved.service failed.
See "systemctl status systemd-resolved.service" and "journalctl -xe" for details.
root@de00srvapp732r1:/run/systemd/unit-root# sudo systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-11-27 17:46:48 CET; 11s ago
       Docs: man:systemd-resolved.service(8)
             https://www.freedesktop.org/wiki/Software/systemd/resolved
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
    Process: 2990134 ExecStart=/lib/systemd/systemd-resolved (code=exited, status=226/NAMESPACE)
   Main PID: 2990134 (code=exited, status=226/NAMESPACE)

Nov 27 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
Nov 27 17:46:48 systemd[1]: Stopped Network Name Resolution.
Nov 27 17:46:48 systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Nov 27 17:46:48  systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Nov 27 17:46:48 dsystemd[1]: Failed to start Network Name Resolution.



systemd-resolved.service: Failed with result 'exit-code'.
Failed to start Network Name Resolution.
systemd-resolved.service: Scheduled restart job, restart counter is at 4.
Stopped Network Name Resolution.
Starting Network Name Resolution...
systemd-resolved.service: Failed to set up mount namespacing: /run/systemd/unit-root/home: Stale file handle
systemd-resolved.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-resolved: Stale file handle
systemd-resolved.service: Main process exited, code=exited, status=226/NAMESPACE
systemd-resolved.service: Failed with result 'exit-code'.
Failed to start Network Name Resolution.
systemd-resolved.service: Scheduled restart job, restart counter is at 5.
Stopped Network Name Resolution.
systemd-resolved.service: Start request repeated too quickly.
systemd-resolved.service: Failed with result 'exit-code'.
Failed to start Network Name Resolution.

相关内容