docker-rpi-monitor icon indicating copy to clipboard operation
docker-rpi-monitor copied to clipboard

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.

Open sebastienhouzet opened this issue 6 years ago • 15 comments

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.

sebastienhouzet avatar Jan 24 '19 21:01 sebastienhouzet

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.

beercity avatar Apr 10 '19 14:04 beercity

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

jamesbiederbeck avatar Jan 11 '20 21:01 jamesbiederbeck

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

mcgyver83 avatar May 18 '20 07:05 mcgyver83

Is there any update on this?

Ubique88 avatar May 24 '20 19:05 Ubique88

@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.

jamesbiederbeck avatar May 24 '20 22:05 jamesbiederbeck

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!

NuAlex avatar Jan 27 '21 03:01 NuAlex

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

mpuff avatar Jan 27 '21 15:01 mpuff

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)

mcgyver83 avatar Jan 27 '21 18:01 mcgyver83

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.

  • /dev/vcsm (worked over years)
  • /dev/vcsm-cma
  • /dev/vcs
  • no-entry

Warning and docker will not start

kaluxx avatar Apr 07 '21 14:04 kaluxx

should we just close this?

maxidebello avatar May 07 '21 14:05 maxidebello

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

Goro2030 avatar Jun 26 '21 05:06 Goro2030

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. :)

johntdavis84 avatar Jul 17 '21 03:07 johntdavis84

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.

mcgyver83 avatar Jul 23 '21 12:07 mcgyver83

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

gist901 avatar Nov 14 '21 20:11 gist901

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

mauroao avatar Aug 09 '22 23:08 mauroao