Datadog-agent: [Bug] Agent broken with Docker on Amazon Linux 2

Created on 8 Nov 2018  路  3Comments  路  Source: DataDog/datadog-agent

Output of the info page (if this is a bug)

[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target blkio from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpu from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target memory from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target blkio from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpu from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target memory from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target blkio from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpu from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target memory from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target blkio from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpu from mounts
[ AGENT ] 2018-11-07 23:43:29 UTC | ERROR | (cgroup_detect.go:53 in cgroupFilePath) | Missing target cpuacct from mounts

Describe what happened:
Successfully installed the Datadog Agent as a daemon service on my ECS cluster, per the instructions at https://docs.datadoghq.com/integrations/amazon_ecs/

With CloudFormation, updated the working AMI to Amazon Linux 2
amzn-ami-2018.03.h-amazon-ecs-optimized -> amzn2-ami-ecs-hvm-2.0.20181017-x86_64-ebs

Describe what you expected:
The 'docker' facet on our Datadog logs blew up with thousands of Error level messages after the upgrade. See the log output above.

Steps to reproduce the issue:
run the task https://docs.datadoghq.com/json/datadog-agent-ecs-logs.json on Amazon Linux 2

Additional environment details (Operating System, Cloud provider, etc):
Amazon Linux 2018.03 and Amazon Linux 2.20181017 and Datadog Agent v6.6.0

documentation

Most helpful comment

On Amazon Linux 2, the cgroup folder path changed from the custom /cgroup/ to the standard /sys/fs/cgroup/, you'll need to update the sourcePath value in your task definition.

Pinging @DataDog/baklava for the template update

All 3 comments

On Amazon Linux 2, the cgroup folder path changed from the custom /cgroup/ to the standard /sys/fs/cgroup/, you'll need to update the sourcePath value in your task definition.

Pinging @DataDog/baklava for the template update

Thanks @xvello! I figured it was something related to the mounts, but haven鈥檛 had time to dig into it.

https://github.com/DataDog/documentation/pull/3449 updates the json file. Will also submit a PR to update the docs page to support both AMI versions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pvalsecc picture pvalsecc  路  5Comments

omb picture omb  路  3Comments

tunguyen9889 picture tunguyen9889  路  4Comments

cvele picture cvele  路  3Comments

thepwagner picture thepwagner  路  4Comments