Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


SOLVED lots of Docker cgroup stats errors in collectd.log


  • I was hunting for errors in log files and opened /home/yellowtent/platformdata/collectd/collectd.log
    and found a looping error with a bunch of docker related stats :

    grc tail -f collectd.log
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/cpuacct/docker/b56b4b70255b56ee525ec4fde1270e883edf02004ad74c9f45b471acae66381a/cpuacct.stat": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/memory/docker/17d1a87b2d51ec25363c25c28cf7162d768c98cd55ccbc52ced9956be60177c5/memory.stat": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/memory/docker/17d1a87b2d51ec25363c25c28cf7162d768c98cd55ccbc52ced9956be60177c5/memory.max_usage_in_bytes": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/cpuacct/docker/17d1a87b2d51ec25363c25c28cf7162d768c98cd55ccbc52ced9956be60177c5/cpuacct.stat": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/memory/docker/233854ae0b305dda70224075e463401935d85c6ab17d870b4849390932d63340/memory.stat": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/memory/docker/233854ae0b305dda70224075e463401935d85c6ab17d870b4849390932d63340/memory.max_usage_in_bytes": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/cpuacct/docker/233854ae0b305dda70224075e463401935d85c6ab17d870b4849390932d63340/cpuacct.stat": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/memory/docker/e9f05fd49280fa6bd4c3029c74046b7a187bc3ca1e9b8e2c2ee08774dea77c56/memory.stat": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/memory/docker/e9f05fd49280fa6bd4c3029c74046b7a187bc3ca1e9b8e2c2ee08774dea77c56/memory.max_usage_in_bytes": No such file or directory.
    [2020-11-09 16:17:49] table plugin: Failed to open file "/sys/fs/cgroup/cpuacct/docker/e9f05fd49280fa6bd4c3029c74046b7a187bc3ca1e9b8e2c2ee08774dea77c56/cpuacct.stat": No such file or directory.

    Not sure what's the cause of this but this keep feeding my collectd.log file

    anyone having the same ?


  • @rmdes I have no such log file there.
    Only collectd.conf and collectd.conf.d/ full of app .conf files.

    However

    in the collectd.conf file this line points to a different path

       File "/home/yellowtent/platformdata/logs/collectd/collectd.log"
    

    this is different from your path.

    Looking there:

    -rw-r--r--  1 yellowtent yellowtent 6.1M Nov  9 16:30 collectd.log
    -rw-r--r--  1 yellowtent yellowtent  11M Nov  7 06:25 collectd.log.1
    

    same errors.

  • Staff

    Ah, this happens because those apps are "stopped" and thus there are no metrics to collect.

  • Staff

    This is fixed in the next release. Thanks for reporting!