michaelmiklis / docker-rpi-monitor

RPI Monitor from RPi-Experiences implemented in a Docker Container
Apache License 2.0
67 stars 34 forks source link

Run Docker - Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/vcsm": no such file or directory. #4

Open sebastienhouzet opened 5 years ago

sebastienhouzet commented 5 years ago

Hello

I have an error during run docker :

root@pihome:/home/pi# docker run --device=/dev/vchiq --device=/dev/vcsm --volume=/opt/vc:/opt/vc --volume=/boot:/boot --volume=/sys:/dockerhost/sys:ro --volume=/etc:/dockerhost/etc:ro --volume=/proc:/dockerhost/proc:ro --volume=/usr/lib:/dockerhost/usr/lib:ro -p=8888:8888 --name="rpi-monitor" -d michaelmiklis/rpi-monitor:latest 73163e6ff8c1d98ba0d80f5b34ad0f637df7f3ce6c75e241b0dfcfcf393269a6

docker: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/vcsm": no such file or directory.

beercity commented 5 years ago

Having the same issue. I removed --device=/dev/vcsm from the command which works, but I am not sure what metrics I am missing now.

jamesbiederbeck commented 4 years ago

What platform are you folks on? I got this on a pi4 running a gutted debian-based distro

mcgyver83 commented 4 years ago

Same issue for me with a rpi 2B with Buster.

Ubique88 commented 4 years ago

Is there any update on this?

jamesbiederbeck commented 4 years ago

@Ubique88 did you try this:

Having the same issue. I removed --device=/dev/vcsm from the command which works, but I am not sure what metrics I am missing now.

NuAlex commented 3 years ago

I posted this same issue under Issue #10, my bad.

To fix it, you just need to replace --device=/dev/vcsm by --device=/dev/vcsm-cma

Here's the fixed command:

docker run --device=/dev/vchiq \
--device=/dev/vcsm-cma \
--volume=/opt/vc:/opt/vc \
--volume=/boot:/boot \
--volume=/sys:/dockerhost/sys:ro \
--volume=/etc:/dockerhost/etc:ro \
--volume=/proc:/dockerhost/proc:ro \
--volume=/usr/lib:/dockerhost/usr/lib:ro \
-p=8888:8888 \
--name="rpi-monitor" \
-d \
michaelmiklis/rpi-monitor:latest

And the expected output :

Unable to find image 'michaelmiklis/rpi-monitor:latest' locally
latest: Pulling from michaelmiklis/rpi-monitor
767a78b74803: Pull complete
(...)
Digest: sha256:######9f2b643ba0######3b8cc316######020aa52fb73c######
Status: Downloaded newer image for michaelmiklis/rpi-monitor:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
######b768e3eda8c09e######97a4a97563######4fa2d57c88386e######

Hope this helps.

Credit goes to @serotonie Thank you!

mpuff commented 3 years ago

i have the same problem on a pi4 with debian buster, i only have in /dev/ these folders: vcs vcs1 vcs2 vcs3 vcs4 vcs5 vcs6 vcsa vcsa1 vcsa2 vcsa3 vcsa4 vcsa5 vcsa6 vcsu vcsu1 vcsu2 vcsu3 vcsu4 vcsu5 vcsu6

no vcsm ore vcsm-cma

so i have changed the --device=/dev/vcsm by --device=/dev/vcs, the container is running and all data change in gui, so it looks like ok

mcgyver83 commented 3 years ago

I haven't any --device in my docker run script. I tried adding --device=/dev/vcs but still get the warning message (raspberry pi2 with buster)

kaluxx commented 3 years ago

I have the same issues:

ERROR: for rpi-monitor Cannot start service rpi-monitor: error gathering device information while adding custom device "/dev/vcsm": no such file or directory

Pi4. Independent of the device configurations proposed above.

Warning and docker will not start

maxidebello commented 3 years ago

should we just close this?

Goro2030 commented 3 years ago

I think this shouldn't be closed @maxidebello until this is clarified for users, depending on the PI they use, which vsc/vcsm-cma o vcsm should they use, and clarify that in the README

johntdavis84 commented 3 years ago

Thanks for this. Just trying to deploy this container for the first time ever, and ran into the device issue.

Platform:

||||||||| ||||    panoptitom@teletraan1
||||||||| ||||    os     Manjaro ARM Linux
||||      ||||    host   Raspberry Pi 4 Model B Rev 1.1
|||| |||| ||||    kernel 5.12.10-1-MANJARO-ARM
|||| |||| ||||    uptime 6d 6m
|||| |||| ||||    pkgs   1165
|||| |||| ||||    memory 946M / 3803M

Linux $hostname 5.12.10-1-MANJARO-ARM #1 SMP PREEMPT Mon Jun 14 09:55:08 CDT 2021 aarch64 GNU/Linux

I just got it working, on first attempt, with /dev/vcsm-cma.

I also didn't see any warning about using the wrong platform, even though the only tag I see on Docker Hub says it's for AMD64.

Some of the sensors and UI aren't reporting correctly, but it works. :)

mcgyver83 commented 3 years ago

I didn't get exactly where is the issue, I found issues from others projects/images complaining the same topic. As said above, I tried the suggestions given but no luck.

gist901 commented 2 years ago

Here is the docker compose file that I used to get it to work. I replace vscm with vcs. Everything appears to be working.

Takes a minute for the container to start working once you deploy.

version: '2'

services:

  rpi-monitor:
    container_name: rpi-monitor
    image: michaelmiklis/rpi-monitor:latest
    ports:
      - 8888:8888
    devices:
      - /dev/vchiq
      - /dev/vcs
    volumes:
      - /opt/vc:/opt/vc
      - /boot:/boot
      - /sys:/dockerhost/sys:ro
      - /etc:/dockerhost/etc:ro
      - /proc:/dockerhost/proc:ro
      - /usr/lib:/dockerhost/usr/lib:ro
    restart: unless-stopped
mauroao commented 2 years ago

I changed it to "vcsm-cma" and now works fine! Raspberry Pi 4