[问题描述]: An23.1 6.6.25-2_rc2.an23.aarch64 arm环境重启系统后systemd-suspend服务Failed 重启后查询失败服务 [root@anolis ~]# systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● systemd-suspend.service loaded failed failed System Suspend Legend: LOAD → Reflects whether the unit definition was properly loaded. ACTIVE → The high-level unit activation state, i.e. generalization of SUB. SUB → The low-level unit activation state, values depend on unit type. 1 loaded units listed. 服务状态 [root@anolis ~]# systemctl status systemd-suspend.service × systemd-suspend.service - System Suspend Loaded: loaded (/usr/lib/systemd/system/systemd-suspend.service; static) Active: failed (Result: exit-code) since Thu 2024-05-16 17:45:21 CST; 1min 42s ago Docs: man:systemd-suspend.service(8) Process: 7192 ExecStart=/usr/lib/systemd/systemd-sleep suspend (code=exited, status=1/FAILURE) Main PID: 7192 (code=exited, status=1/FAILURE) CPU: 493ms 5月 16 17:45:19 anolis systemd[1]: Starting systemd-suspend.service - System Suspend... 5月 16 17:45:19 anolis systemd-sleep[7192]: Failed to lock home directories: Unknown object '/org/freedesktop/home1'. 5月 16 17:45:19 anolis systemd-sleep[7192]: Performing sleep operation 'suspend'... 5月 16 17:45:21 anolis systemd-sleep[7192]: Failed to put system to sleep. System resumed again: Device or resource busy 5月 16 17:45:21 anolis systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE 5月 16 17:45:21 anolis systemd[1]: systemd-suspend.service: Failed with result 'exit-code'. 5月 16 17:45:21 anolis systemd[1]: Failed to start systemd-suspend.service - System Suspend. 报错日志: [root@anolis ~]# journalctl -xeu systemd-suspend.service ~ 5月 16 17:30:36 anolis systemd[1]: Starting systemd-suspend.service - System Suspend... ░░ Subject: systemd-suspend.service 单元已开始启动 ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ systemd-suspend.service 单元已开始启动。 5月 16 17:30:36 anolis systemd-sleep[4687]: Failed to lock home directories: Unknown object '/org/freedesktop/home1'. 5月 16 17:30:36 anolis systemd-sleep[4687]: Performing sleep operation 'suspend'... ░░ Subject: 系统已进入 suspend 睡眠状态 ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ 系统现已进入 suspend 睡眠状态。 5月 16 17:30:37 anolis systemd-sleep[4687]: Failed to put system to sleep. System resumed again: Device or resource busy ░░ Subject: 系统已离开 suspend 睡眠状态 ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ 系统现已离开 suspend 睡眠状态。 5月 16 17:30:37 anolis systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ An ExecStart= process belonging to unit systemd-suspend.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. 5月 16 17:30:37 anolis systemd[1]: systemd-suspend.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ The unit systemd-suspend.service has entered the 'failed' state with result 'exit-code'. 5月 16 17:30:37 anolis systemd[1]: Failed to start systemd-suspend.service - System Suspend. ░░ Subject: systemd-suspend.service 单元已失败 ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ systemd-suspend.service 单元已失败。 ░░ ░░ 结果为“failed”。 [环境信息]: 机器类型:鲲鹏物理机 [内核信息]: [root@anolis ~]# uname -r 6.6.25-2_rc2.an23.aarch64 [操作系统信息]: [root@anolis ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [问题发生概率]: 必现 [复现步骤]: 1、准备测试环境 2、重启环境 3、执行systemctl --failed 也可以执行systemctl restart systemd-suspend重启服务
在An23.1 6.6.25-2_rc3 arm环境中已修复 [root@anolis ~]# systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION 0 loaded units listed. [root@anolis ~]# systemctl list-unit-files| \ grep enabled | grep "Fail|fail" -E [root@anolis ~]# systemctl status systemd-suspend ○ systemd-suspend.service - System Suspend Loaded: loaded (/usr/lib/systemd/system/systemd-suspend.service; static) Active: inactive (dead) Docs: man:systemd-suspend.service(8) [root@anolis ~]# uname -r 6.6.25-2_rc3.an23.aarch64 [root@anolis ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/"
经验证已修复