systemctl status Failed to read server status: Transport endpoint is not connected

出现背景

运行systemctl 会报错systemctl status Failed to read server status: Transport endpoint is not connected。且systemd会占用大量的cpu。

问题分析

使用命令strace -f -p 1 可以看到大量卡在时区文件。

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3522, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3522, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3522, ...}) = 0

 解决方案

 

重新修复/etc/localtime

ln -sf /usr/share/zoneinfo/Etc /etc/localtime

版权声明:
作者:佛西
链接:https://foxi.buduanwang.vip/virtualization/pve/kb/2762.html/
文章版权归作者所有,未经允许请勿转载
如需获得支持,请点击网页右上角
THE END
分享
二维码
海报
systemctl status Failed to read server status: Transport endpoint is not connected
出现背景 运行systemctl 会报错systemctl status Failed to read server status: Transport endpoint is not connected。且systemd会占用大量的cpu。 问题分析……
<<上一篇
下一篇>>
文章目录
关闭
目 录