oijkn / Docker-Raspberry-PI-Monitoring

A docker-compose stack solution for monitoring host and containers with Prometheus, Grafana, cAdvisor and NodeExporter.
MIT License
363 stars 55 forks source link

cadvisor [Failed to create a Container Manager: mountpoint for cpu not found] #2

Closed just5ky closed 2 years ago

just5ky commented 2 years ago

I'm using DietPi 32bit OS on my Raspberry Pi 4B 8B I have added cgroup_enable=memory cgroup_memory=1 in /boot/cmdline.txt I followed all the steps mentioned, still running into this issue.

image

oijkn commented 2 years ago

I would say that something very weird with your docker-ce installation, try to follow those steps :

# Install some required packages first
sudo apt update
sudo apt install -y \
     apt-transport-https \
     ca-certificates \
     curl \
     gnupg2 \
     software-properties-common

# Get the Docker signing key for packages
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -

# Add the Docker official repos
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
     $(lsb_release -cs) stable" | \
    sudo tee /etc/apt/sources.list.d/docker.list

# Install Docker
sudo apt update
sudo apt install -y --no-install-recommends \
    docker-ce \
    cgroupfs-mount

When it's done, you just need to run two more commands to have the Docker service started and automatically launched at boot.

sudo systemctl enable docker
sudo systemctl start docker
just5ky commented 2 years ago

Did all the above rebooted Pi still same

oijkn commented 2 years ago

I will try to rebuild cadvisor image with latest code and you try to ask dietpi's dev some help.

just5ky commented 2 years ago

ok I will ask for help on DietPi forum

just5ky commented 2 years ago

I switched back to RPi OS and everything is working. seems the issue is with DietPi.

martadinata666 commented 2 years ago

Just add some comments, for consideration. The image braingamer/cadvisor-arm:latest used in stack was old enough, it fine if used on raspi os that based on buster, on newer OS like dietpi that based on bullseye it will throw errors like cpu bla.. . Using newer image like zcube/cadvisor will work.

oijkn commented 2 years ago

@martadinata666 Thanks you for your feedback, I will try this new docker image and then update the stack. Perhaps I will add others metrics in the dashboard with this new version of cadvisor.

oijkn commented 2 years ago

@martadinata666 @Just5KY I just finish to update all stuff :)