Pmie_logger 和 pmlogger daily 均无法启动

Pmie_logger 和 pmlogger daily 均无法启动

我尝试启用并重新启动这两项服务,但它们不断失败,即使在重新启动后也是如此。

The job identifier is 110800.
Oct 12 19:14:36 [server] pcp[2555877]: pmie_daily failed - see /var/log/pcp/pmie/pmie_daily.log
Oct 12 19:14:36 [server] systemd[1]: pmie_daily.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support 

导致

pmie_daily: Error: no pmie instance running for host "local:"
[/etc/pcp/pmie/control.d/local:5] ... inference engine for host "local:" unchanged

这导致

$version=1.1

# local primary inference engine
#Host           P?  S?  Directory                                 Arguments
LOCALHOSTNAME   y   n   PCP_LOG_DIR/pmie/LOCALHOSTNAME/pmie.log   -c config.default

Directory 'PCP_LOG_DIR/pmie/LOCALHOSTNAME' does not exist

pmlogger_daily 也一样

-- The unit pmlogger_daily.service has entered the 'failed' state with result 'exit-code'.
Oct 12 19:22:59 [server] systemd[1]: Failed to start Process archive logs.
-- Subject: A start job for unit pmlogger_daily.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

有任何想法吗?

答案1

在 1832262 上发现这个 – pmie_daily.service 以 pcp 身份运行但尝试执行 root 操作:

Andreas Waschinski 2023-06-08 01:16:00 UTC

(回复 Nathan Scott 的评论 #14)> 嗯,谢谢 - 您能说出该目录中由 root 拥有的具体文件吗?当然,今天是:pmie.log.20230607 之前,确切地说是 5 月 31 日,我甚至拥有最后两个由 root 拥有的轮换日志文件:

-rw-r–r–. 1 pcp pcp 100 5月31日 11:13 pmie.log -rw-r–r–. 1 pcp pcp 158 5月30日 00:08 pmie.log.20230529 -rw-r–r–. 1 root root 380 5月30日 14:48 pmie.log.20230530 -rw-r–r–. 1 root root 194 5月31日 11:13 pmie.log.20230531

他们知道(无论“他们”是谁)......

相关内容