categraf[3437]: 2024/01/17 01:37:30 ps.go:158: E! failed to get disk usage, mountpoint: /run/user/0/doc error: operation not permitted

Viewed 19

在/var/log/syslog 有条日志报错,categraf[3437]: 2024/01/17 01:37:30 ps.go:158: E! failed to get disk usage, mountpoint: /run/user/0/doc error: operation not permitted ,但是硬盘是没坏的,找不到是啥问题了,有大佬能帮忙看下不?

2 Answers

感觉像是权限不够,切换root试试,另外注意到这是临时目录,可以在 disk 的配置里排除就好

ignore_mount_points = ["/boot", "/var/lib/kubelet/pods"]

就是root权限

ps -eaf|grep categraf 执行截图看看呢

图片在下面