Replies: 21 comments
-
|
Hi @MrCrunshy Please run the Glances in debug mode (GLANCES_OPT=-w -d) and paste/bin the glances.log file located in the Glances container (most of the time in /tmp/glances-root.log). Thanks |
Beta Was this translation helpful? Give feedback.
-
|
And here is the log file :) |
Beta Was this translation helpful? Give feedback.
-
|
@MrCrunshy found this log message: Under the wood, Glances use https://pypi.org/project/nvidia-ml-py/ to grab GPU stats. Please can you try this inside your Glances countainer: Thanks ! |
Beta Was this translation helpful? Give feedback.
-
|
I get the first error during nvmlInit(). |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue with a RTX 3060, docker compose is the same as above, the GPU works in other containers. I enabled debugging, and tried the python code in the container and get the same error after the nvmlInit() call. |
Beta Was this translation helpful? Give feedback.
-
|
@mrMightyM can you try to install the Nvidia Container Toolkit on your host. It should expose your GPU to the container. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html And try to run your Glances container again. |
Beta Was this translation helpful? Give feedback.
-
|
@nicolargo I already do have that installed. I use the GPU from other containers with no issue - Immich, Audiomuse and others all work fine. Glances just does not see it. From the host: From another container (Immich Machine Learning): From Glances container: Let me know if you need any other information. |
Beta Was this translation helpful? Give feedback.
-
|
Can you try to run Glances docker with the following command line (after stopping your Glances Docker compose): and test again. |
Beta Was this translation helpful? Give feedback.
-
|
Different error: I've never seen that before. |
Beta Was this translation helpful? Give feedback.
-
|
Add -it: |
Beta Was this translation helpful? Give feedback.
-
|
Ok, that brought glances up in the terminal. I do have this down the right side: with a bunch of other similar entries below that Should I see GPU usage anywhere? |
Beta Was this translation helpful? Give feedback.
-
|
Yes you should see the GPU plugin on top (between CPU and memory plugins)... Try to run it with -d (debug): Then enter in the running container (with docker exec) and have a look to the /tmp/glances-root.log file) for line about GPU (paste bin the file if possible). |
Beta Was this translation helpful? Give feedback.
-
|
Ok, there is no GPU between CPU and memory. New to pastebin, I think this link will work? The logs are growing exponentially so I've copied an pasted a portion of it, if you need more let me know |
Beta Was this translation helpful? Give feedback.
-
|
I need the startup sequence. Please clean the log. Restart Glances and paste bin the log file. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, lets try this link I did see this near the beginning
If you need more of the log let me know. |
Beta Was this translation helpful? Give feedback.
-
|
Last chance, try with the Ubuntu based image (ubuntu latest full): |
Beta Was this translation helpful? Give feedback.
-
|
Okay, I tried that, and it works great! I guess I need to stick with the ubuntu image then? Is there much of a difference between it and the Alpine verion in regards to resource usage? If there is anything else you want to try let me know. I feel like it should work with either image but I'm not sure how exactly it works |
Beta Was this translation helpful? Give feedback.
-
I tried it myself, but unfortunately nothing changed :( |
Beta Was this translation helpful? Give feedback.
-
Nope, the only difference is the image size (bigger for Ubuntu). I will add a note in the documentation to explain that only ubuntu based images are compliant with Glances GPU plugin. Thanks for your time. |
Beta Was this translation helpful? Give feedback.
-
Is https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html installed on your host ? |
Beta Was this translation helpful? Give feedback.
-
|
Here, I've checked again, everything's there: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm completely new to this. I've set up Glances via Docker, but my RTX 3050 isn't showing up.
My Jellyfin instance is running inside the Docker server and can access it without any problems.
Unfortunately, I can't find the cause of the problem.
My system (Ubuntu) is completely up to date.
Here's an excerpt from my Compose file:
To Reproduce
Steps to reproduce the behavior:
Screenshots
Environement (please complete the following information)
To be completed with result of: lsb_release -aNo LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
If you need any further information, please let me know.
Greets
Crunshy
Beta Was this translation helpful? Give feedback.
All reactions