Description of problem: 执行systemctl list-unit-files命令报错:Failed to list unit files: Connection timed out [root@VM20210305-16 /]# systemctl list-unit-files Failed to list unit files: Connection timed out Version-Release number of selected component (if applicable): [root@VM20210305-16 boot]# cat /etc/os-release NAME="Anolis OS" VERSION="8.4" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="8.4" PLATFORM_ID="platform:an8" PRETTY_NAME="Anolis OS 8.4" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" [root@VM20210305-16 boot]# systemctl --version systemd 239 (239-58.0.3.an8_6.3) +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy [root@VM20210305-16 boot]# cat /proc/cmdline BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-12_rc1.an8.x86_64+debug root=UUID=169a0746-c62d-49a2-bd6b-0eaec098d42c ro crashkernel=2G crash_kexec_post_notifiers rhgb slub_debug=FPZU kmemleak=on console=tty0 console=ttyS0,115200 console=ttyAMA0,115200n8 How reproducible: 执行`systemctl list-unit-files`命令报错 Steps to Reproduce: 1.执行`systemctl list-unit-files`命令 2.查看返回结果 Actual results: 命令返回报错Failed to list unit files: Connection timed out Expected results: 显示开机启动项信息 Additional info:
[root@localhost ~]# systemctl --version systemd 239 (239-58.0.3.an8_6.3) +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy 我尝试了 rhck,anck 4.19 anck 5.10 都没有遇到这个问题
Created attachment 367 [details] systemctl list-unit-files执行超时截图