Replies: 4 comments 15 replies
-
May I ask why this was converted from issue to discussion? I opened it as being a bug report. |
Beta Was this translation helpful? Give feedback.
-
This are actually very good hints. Nowadays, root != root: Just because a process is running as root (uid 0) does not mean it has all rights. A root (privileged) user has capability flags. A full root has all capabilities. Typically root inside a containers has very few flags set (and that is how the add-on runs, as a container). You can configure what capabilities your add-on requires by setting the
The kernel config seems to be enabled ( |
Beta Was this translation helpful? Give feedback.
-
git clone version: 0.12.0-beta7 /addons add to config.yaml name: Frigate (Full Access) Beta (0.12.0)
refresh addon repos |
Beta Was this translation helpful? Give feedback.
-
I just figured out how to get this working without privileged mode. You need the |
Beta Was this translation helpful? Give feedback.
-
Describe the issue you are experiencing
Frigate 0.12 has a feature to monitor GPU stats, and it uses
intel_gpu_top
for the task. It works normally when outside of the HaOS, but not inside of it. The add-on protection mode apparently makes no difference for the issue.Looking up online I found some things:
https://gitlab.freedesktop.org/drm/intel/-/issues/5018
But neither setcap and intel_gpu_top is present in HassOS itself. Also, the add-on runs as root so I suspect that's not the issue.
Another thing that I found was https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/94, in which a maintainer asked:
Which I don't the answer, but maybe HaOS's kernel lacks this CONFIG_PERF_EVENTS?
What operating system image do you use?
generic-x86-64 (Generic UEFI capable x86-64 systems)
What version of Home Assistant Operating System is installed?
9.4
Did you upgrade the Operating System.
Yes
Steps to reproduce the issue
Failed to initialize PMU! (Permission denied)
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
I don't think so, but here they are: Jan 23 15:45:08 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.4Rqe8D.mount: Deactivated successfully. Jan 23 15:45:31 homeassistant kernel: kauditd_printk_skb: 1 callbacks suppressed Jan 23 15:45:31 homeassistant kernel: audit: type=1334 audit(1674488731.537:638): prog-id=0 op=UNLOAD Jan 23 15:45:38 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.D2GSgP.mount: Deactivated successfully. Jan 23 15:45:55 homeassistant systemd[1]: Starting Hostname Service... Jan 23 15:45:55 homeassistant kernel: audit: type=1334 audit(1674488755.823:639): prog-id=161 op=LOAD Jan 23 15:45:55 homeassistant kernel: audit: type=1334 audit(1674488755.823:640): prog-id=162 op=LOAD Jan 23 15:45:55 homeassistant kernel: audit: type=1334 audit(1674488755.823:641): prog-id=163 op=LOAD Jan 23 15:45:56 homeassistant systemd[1]: Started Hostname Service. Jan 23 15:45:56 homeassistant kernel: audit: type=1334 audit(1674488756.195:642): prog-id=164 op=LOAD Jan 23 15:45:56 homeassistant kernel: audit: type=1334 audit(1674488756.195:643): prog-id=165 op=LOAD Jan 23 15:45:56 homeassistant kernel: audit: type=1334 audit(1674488756.195:644): prog-id=166 op=LOAD Jan 23 15:45:56 homeassistant systemd[1]: Starting Time & Date Service... Jan 23 15:45:56 homeassistant systemd[1]: Started Time & Date Service. Jan 23 15:46:26 homeassistant systemd[1]: systemd-hostnamed.service: Deactivated successfully. Jan 23 15:46:26 homeassistant kernel: audit: type=1334 audit(1674488786.257:645): prog-id=0 op=UNLOAD Jan 23 15:46:26 homeassistant kernel: audit: type=1334 audit(1674488786.257:646): prog-id=0 op=UNLOAD Jan 23 15:46:26 homeassistant kernel: audit: type=1334 audit(1674488786.257:647): prog-id=0 op=UNLOAD Jan 23 15:46:26 homeassistant systemd[1]: systemd-timedated.service: Deactivated successfully. Jan 23 15:46:26 homeassistant kernel: audit: type=1334 audit(1674488786.586:648): prog-id=0 op=UNLOAD Jan 23 15:46:26 homeassistant kernel: audit: type=1334 audit(1674488786.586:649): prog-id=0 op=UNLOAD Jan 23 15:46:26 homeassistant kernel: audit: type=1334 audit(1674488786.586:650): prog-id=0 op=UNLOAD Jan 23 15:46:38 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.d4CFDh.mount: Deactivated successfully. Jan 23 15:47:09 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.UxNtw7.mount: Deactivated successfully. Jan 23 15:47:39 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.i7Ez7G.mount: Deactivated successfully. Jan 23 15:49:09 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.cOd1Ci.mount: Deactivated successfully. Jan 23 15:49:54 homeassistant systemd[1]: docker-720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6.scope: Deactivated successfully. Jan 23 15:49:54 homeassistant systemd[1]: docker-720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6.scope: Consumed 1min 9.157s CPU time. Jan 23 15:49:54 homeassistant kernel: audit: type=1334 audit(1674488994.052:651): prog-id=0 op=UNLOAD Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.081603563Z" level=info msg="shim disconnected" id=720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6 Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.081686776Z" level=warning msg="cleaning up after shim disconnected" id=720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6 namespace=moby Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.081709995Z" level=info msg="cleaning up dead shim" Jan 23 15:49:54 homeassistant dockerd[429]: time="2023-01-23T15:49:54.082959550Z" level=info msg="ignoring event" container=720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.124521748Z" level=warning msg="cleanup warnings time=\"2023-01-23T15:49:54Z\" level=info msg=\"starting signal loop\" namespace=moby pid=129528 runtime=io.containerd.runc.v2\n" Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.308406292Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.308565197Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.308595715Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 Jan 23 15:49:54 homeassistant dockerd[438]: time="2023-01-23T15:49:54.311009471Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6 pid=129546 runtime=io.containerd.runc.v2 Jan 23 15:49:54 homeassistant systemd[1]: Started libcontainer container 720cf19cbe40ba4c86513fc2174cad97f4dd3d97a1338e378fa1fadb7bc708e6. Jan 23 15:49:54 homeassistant kernel: audit: type=1334 audit(1674488994.506:652): prog-id=167 op=LOAD Jan 23 15:49:54 homeassistant kernel: audit: type=1300 audit(1674488994.506:652): arch=c000003e syscall=321 success=yes exit=14 a0=5 a1=c000143a30 a2=78 a3=c0000249c0 items=0 ppid=129546 pid=129558 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null) Jan 23 15:49:54 homeassistant kernel: audit: type=1327 audit(1674488994.506:652): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F7661722F72756E2F646F636B65722F636F6E7461696E6572642F6461656D6F6E2F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F37323063663139 Jan 23 15:49:54 homeassistant kernel: audit: type=1334 audit(1674488994.506:653): prog-id=168 op=LOAD Jan 23 15:49:54 homeassistant kernel: audit: type=1300 audit(1674488994.506:653): arch=c000003e syscall=321 success=yes exit=16 a0=5 a1=c0001437c8 a2=78 a3=c000024a08 items=0 ppid=129546 pid=129558 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null) Jan 23 15:49:54 homeassistant kernel: audit: type=1327 audit(1674488994.506:653): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F7661722F72756E2F646F636B65722F636F6E7461696E6572642F6461656D6F6E2F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F37323063663139 Jan 23 15:49:54 homeassistant kernel: audit: type=1334 audit(1674488994.506:654): prog-id=0 op=UNLOAD Jan 23 15:49:54 homeassistant kernel: audit: type=1334 audit(1674488994.506:655): prog-id=0 op=UNLOAD Jan 23 15:49:54 homeassistant kernel: audit: type=1334 audit(1674488994.506:656): prog-id=169 op=LOAD Jan 23 15:50:10 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.UI7UUs.mount: Deactivated successfully. Jan 23 15:50:40 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.4BkKrM.mount: Deactivated successfully. Jan 23 15:51:40 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.a8Beih.mount: Deactivated successfully. Jan 23 15:54:11 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.LASdDi.mount: Deactivated successfully. Jan 23 15:57:12 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.iuWgri.mount: Deactivated successfully. Jan 23 15:58:42 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.YmqfID.mount: Deactivated successfully. Jan 23 16:00:13 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.SbtQGO.mount: Deactivated successfully. Jan 23 16:02:13 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.9sPMO1.mount: Deactivated successfully. Jan 23 16:02:43 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.oWlnNd.mount: Deactivated successfully. Jan 23 16:03:14 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.lSayxD.mount: Deactivated successfully. Jan 23 16:03:44 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.ERXcgC.mount: Deactivated successfully. Jan 23 16:06:15 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.0InBce.mount: Deactivated successfully. Jan 23 16:07:45 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.xrseGK.mount: Deactivated successfully. Jan 23 16:08:45 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.21CqcG.mount: Deactivated successfully. Jan 23 16:09:15 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.MtFB10.mount: Deactivated successfully. Jan 23 16:09:46 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.vfmHGV.mount: Deactivated successfully. Jan 23 16:10:16 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.lqdgaC.mount: Deactivated successfully. Jan 23 16:10:46 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.8UBxkx.mount: Deactivated successfully. Jan 23 16:12:47 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.N4t1Rh.mount: Deactivated successfully. Jan 23 16:13:47 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.KjzDpk.mount: Deactivated successfully. Jan 23 16:15:48 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.OMkejL.mount: Deactivated successfully. Jan 23 16:16:49 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.MSujU1.mount: Deactivated successfully. Jan 23 16:18:19 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.L4AGIK.mount: Deactivated successfully. Jan 23 16:19:20 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.5b9X2n.mount: Deactivated successfully. Jan 23 16:19:50 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.f5yag6.mount: Deactivated successfully. Jan 23 16:20:20 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.9tBmZE.mount: Deactivated successfully. Jan 23 16:21:51 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.AQGodF.mount: Deactivated successfully. Jan 23 16:22:21 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.eLlxHE.mount: Deactivated successfully. Jan 23 16:22:52 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.Z7WWtO.mount: Deactivated successfully. Jan 23 16:23:52 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.p9Lyny.mount: Deactivated successfully. Jan 23 16:25:53 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.lBjW9I.mount: Deactivated successfully. Jan 23 16:26:23 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.axjfy3.mount: Deactivated successfully. Jan 23 16:26:53 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.44J2CG.mount: Deactivated successfully. Jan 23 16:27:24 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.YXYxor.mount: Deactivated successfully. Jan 23 16:27:48 homeassistant dropbear[136584]: [136584] Jan 23 16:27:48 Child connection from 192.168.1.15:56540 Jan 23 16:27:49 homeassistant dropbear[136584]: [136584] Jan 23 16:27:49 Pubkey auth succeeded for 'root' with key sha1!! 35:84:96:b5:9f:37:50:82:c8:75:8d:12:3a:fa:ed:3a:15:31:88:30 from 192.168.1.15:56540 Jan 23 16:27:54 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.gOddY9.mount: Deactivated successfully. Jan 23 16:28:24 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.kBpWlP.mount: Deactivated successfully. Jan 23 16:28:54 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.gG0zgw.mount: Deactivated successfully. Jan 23 16:29:55 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.qljW8D.mount: Deactivated successfully. Jan 23 16:30:25 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.o6jSL9.mount: Deactivated successfully. Jan 23 16:30:56 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.GfUJPs.mount: Deactivated successfully. Jan 23 16:31:26 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.uTr9bB.mount: Deactivated successfully. Jan 23 16:32:27 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.oCJvXQ.mount: Deactivated successfully. Jan 23 16:33:57 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.hDmv4p.mount: Deactivated successfully. Jan 23 16:35:58 homeassistant kernel: kauditd_printk_skb: 2 callbacks suppressed Jan 23 16:35:58 homeassistant kernel: audit: type=1334 audit(1674491758.732:657): prog-id=170 op=LOAD Jan 23 16:35:58 homeassistant systemd[1]: Started Journal Gateway Service. Jan 23 16:35:58 homeassistant systemd-timesyncd[419]: Network configuration changed, trying to establish connection. Jan 23 16:35:58 homeassistant systemd-timesyncd[419]: Network configuration changed, trying to establish connection. Jan 23 16:35:58 homeassistant systemd-timesyncd[419]: Initial synchronization to time server 162.159.200.123:123 (time.cloudflare.com). Jan 23 16:35:59 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-2209aee875eaaa3e67109bb1f975074416c33a0bf6b6825bc39176af0760d360-runc.V0Qwy8.mount: Deactivated successfully. Jan 23 16:35:59 homeassistant systemd-journal-gatewayd[137925]: microhttpd: MHD_OPTION_EXTERNAL_LOGGER is not the first option specified for the daemon. Some messages may be printed by the standard MHD logger.
System information
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Sonoff
Additional information
Refs blakeblackshear/frigate#5156 (comment) and blakeblackshear/frigate#3912.
Beta Was this translation helpful? Give feedback.
All reactions