mcelog:无法访问总线阈值触发器`bus-error-trigger':权限被拒绝

时间:2015-09-07 10:44:27

标签: cron centos vps plesk

从本周末开始,我每小时从服务器收到一封邮件,邮件如下:

/etc/cron.hourly/mcelog.cron:

mcelog: Cannot access bus threshold trigger `bus-error-trigger': Permission denied

With the subject: "Cron <root@s1> run-parts /etc/cron.hourly"

在我的VPS上,我运行了CentOS 6.7Plesk v12.0.18

有谁知道如何解决这个问题?

谢谢,亚历山大

1 个答案:

答案 0 :(得分:1)

我已经在启用了SELinux的几台Plesk服务器上看到了这一点。问题是/ etc / mcelog下脚本的安全上下文不正确,因此SELinux阻止mcelog执行它们。要解决此问题,请以root身份运行以下命令:

# semanage fcontext -a -t bin_t '/etc/mcelog/.*-error-trigger'
# restorecon -R /etc/mcelog

(如果semanage命令不可用,请安装policycoreutils-python包。您可以使用chcon,但这不会在文件系统重新标记后继续存在。)

请参阅:http://forum.odin.com/threads/mcelog-cron-error.334110/