在系统运维过程中,通过journalctl日志发现D-Bus通信异常。同时,在检查systemd管理的蓝牙服务org.bluez激活情况时,发现该服务激活超时失败。此外,尝试重启pulseaudio服务时,系统提示该服务单元不存在。
先决条件
Red Hat Enterprise Linux release 8.6 (Ootpa)
问题现象
1.journalctl日志中出现D-Bus通信超时错误:
[root@shizhanxia.com ~]# journalctl -p err 3月 06 10:07:06 shizhanxia.com pulseaudio[60155]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message>
2.检查D-Bus服务状态:
[root@shizhanxia.com ~]# systemctl status dbus ... 3月 06 09:01:12 shizhanxia.com dbus-daemon[2244]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms) 3月 06 10:06:41 shizhanxia.com dbus-daemon[2244]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.1821' (uid=1001 pid=60155 comm="/usr/bin/pulseaudio --daemonize=no> ...
3.重启pulseaudio服务
[root@shizhanxia.com ~]# systemctl restart pulseaudio Failed to restart pulseaudio.service: Unit pulseaudio.service not found.
提示 “Failed to restart pulseaudio.service: Unit pulseaudio.service not found”,说明pulseaudio服务单元缺失。
解决方案
原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/2296.html