bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.6k stars 528 forks source link

[ERROR] Failed to locate cgroup mountpoints #316

Open org0000h opened 2 years ago

org0000h commented 2 years ago

$ ctop [ERROR] Failed to locate cgroup mountpoints.

system info: Linux version 5.15.0-48-generic (buildd@bos02-arm64-037) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #54-Ubuntu SMP Fri Aug 26 13:31:33 UTC 2022

org0000h commented 2 years ago

How to solve this problem ?

OleksandrKorovii commented 2 years ago

Same problem on Ubuntu 22.04 LTS

mbirth commented 2 years ago

The version in Ubuntu is ancient.

Run this:

curl https://azlux.fr/repo.gpg | sudo apt-key add -
sudo apt-add-repository deb http://packages.azlux.fr/debian stable main

Then remove package ctop (Ubuntu version) and install the now available docker-ctop.

oitconz commented 10 months ago

@mbirth Ubuntu 22.04 - Fails after following the above instructions

sudo apt remove ctop sudo apt install docker-ctop docker-ctop >> command not found****

sudo apt-get install docker-ctop

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docker-ctop is already the newest version (0.7.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

sudo locate docker-ctop /``` usr/share/doc/docker-ctop /usr/share/doc/docker-ctop/changelog.Debian.gz /var/lib/dpkg/info/docker-ctop.list /var/lib/dpkg/info/docker-ctop.md5sums

alexinthis commented 8 months ago

Just type ctop instead of docker-ctop

sergeykad commented 8 months ago

Installing from the repository does not work anymore due to security issues. The only way it worked for me was by using these instructions.

E: The repository 'http://packages.azlux.fr/debian jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
skull-squadron commented 2 months ago

Forget installing old ctop from system packages, just use pipx: pipx install ctop

Sun-ZhenXing commented 2 weeks ago

@skull-squadron I used pipx to install ctop on my Ubuntu-22.04 and it still doesn't work.

[ERROR] Failed to locate cgroup mountpoints.