[Docker] couldn't read record #395
Replies: 3 comments
-
I have the same issue! |
Beta Was this translation helpful? Give feedback.
-
I was facing same issue.
|
Beta Was this translation helpful? Give feedback.
-
Hi, Yes, this is known. Adequate permissions have to be set on /sys/class/powercap files. The init.sh script does it, but is only there for testing purposes. In the beginning of scaphandre this was not an issue as those files were accessible with unprivileged user. A patch in the kernel changed that, which version is more and more present in all linux distributions, so now we need privileges to access them. This plus many other reasons : #135 #106 make running scaphandre (in docker but not only) needing privileges. --privileged will fix this in docker as @vbmade2000 said. |
Beta Was this translation helpful? Give feedback.
-
Bug description
Hello!
On a fresh new install, docker scaphandre returns errors (and 0 watts) with the following error:
Could'nt read record from /sys/class/powercap/intel-rapl:0/energy_uj, error was: Os { code: 2, kind: NotFound, message: "No such file or directory" }
.To Reproduce
On a fresh Debian install just do:
Expected behavior
It should work, I think.
Screenshots
none
Environment
Additional context
I've executed
init.sh
script and everyone can read/sys/class/powercap/intel-rapl:0/energy_uj
.Beta Was this translation helpful? Give feedback.
All reactions