Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Off Topic
  4. Proxmox
  5. Frigate auf Coral USB im LXC-Container ...

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    7
    1
    67

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.4k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

Frigate auf Coral USB im LXC-Container ...

Geplant Angeheftet Gesperrt Verschoben Proxmox
10 Beiträge 4 Kommentatoren 2.0k Aufrufe 5 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • MartinPM Online
    MartinPM Online
    MartinP
    schrieb am zuletzt editiert von MartinP
    #1

    Für die grundlegende Konfiguration verweise ich erstmal auf die Arbeit von @Wal im Thread https://forum.iobroker.net/topic/64643/proxmox-lxc-mit-frigate

    Der erstellte LXC Container ist Unpriviligert (EDIT, der hat nicht funktioniert, mit Privilegierter ist es was geworden) erstellt worden!

    Das dort im Posting 1 geschriebene kann so weit ziemlich 1:1 erledigt werden (bis auf Privilegiert)- die dort bei der LXC-Container Konfiguration vorgeschlagene Ubuntu-Version wird nicht mehr angeboten, ich habe die nächsthöhere gewählt - 24.04 statt 23.4 ... Um die Hardware durchzureichen kann man inzwischen anders vorgehen ...

    Nach dem Erledigen der grundlegenden Arbeiten aus Beitrag 1 bis zur Sichtbarkeit des ersten Kamerabildes im frigate Browsertab habe ich erstmal den LXC-Container gestoppt, und ein Backup des LXC mit Proxmox-Bordmitteln gezogen.
    Vorher kann man ggfs. auf der Webseite der Frigate Instanz ein wenig stöbern, ob z. B. etwas Interessantes unter "Logs" zu sehen ist.

    (Wenn man sich verbastelt hat, muss man dann nicht von vorne anfangen, sondern kann immer aus dem Backup eine funktionierende Version zurückspielen!

    Dann weiter zu den Intel-Render-Beschleunigern (ohne den LXC-Container zu starten)... die "Durchreiche" an den LXC kann man im aktuellen Proxmox aus der Proxmox-Gui im Browser erledigen ...
    58f5eaa5-113b-4e15-8bb3-f76669965176-grafik.png

    Unter Hinzufügen wählt man "Device Passthrough"
    1ed7b3f7-32fa-4b47-9327-8ce55854dc2b-grafik.png
    Wenn man mehrere Grafikkarten hat, könnte es unter /dev/dri/ neben renderD128 noch weitere Einträge geben..

    In der PVE-Shell ggfs. nachschauen, was es da für "/dev/dri/render...." Einträge gibt das könnte interessant sein, wenn man die Streams der diversen Kameras auf mehrer Grafikkarten zum Transkodieren verteilen kann...

    root@pve:~# ls /dev/dri
    by-path  card0  renderD128
    root@pve:~# 
    
    

    Die Konfiguration des "Durchreichens" von Hardware an den LXC Container habe ich vorher schon nach der Anleitung von @Wal versucht zu erledigen - da ich den PVE Server nicht neu aufgesetzt habe, können Artefakte davon eine Rolle im Folgenden gespielt haben- bin aber eigentlich ziemlich sicher, dass das nicht der Fall ist.

    Dann den LXC-Container neu starten, und schauen, was da so alles an Devices angezeigt wird: mit user und group auf "root" scheint Docker klarzukommen mit "nobody" nicht ...

    frigate@ubuntu-frigate:~/frigate$ ls -l /dev/dri
    total 0
    crw-rw---- 1 root root 226, 128 Jul 23 16:29 renderD128
    

    dann das docker-compose.file anpassen

    version: "3.9"
    services:
      frigate:
        container_name: frigate
        privileged: true # this may not be necessary for all setups
        restart: unless-stopped
        image: ghcr.io/blakeblackshear/frigate:stable
        shm_size: "64mb" # update for your cameras based on calculation above
        cap_add:
          - CAP_PERFMON
        devices:
          - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - /home/frigate/frigate:/config 
          - /media/frigate:/media/frigate
          - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
            target: /tmp/cache
            tmpfs:
              size: 1000000000
        ports:
          - "5000:5000"
          - "1935:1935" # RTMP feeds
    

    So sah meine config.yml aus, nachdem die Intel-Render-Beschleunigung eingeschaltet war:

    mqtt:
      enabled: False
    
    cameras:
      stellplatz:
        ffmpeg:
          hwaccel_args: preset-vaapi
          inputs:
            - path: rtsp://192.168.2.189:8554/mjpeg/1
              roles:
                - detect
    
        detect:
          enabled: False
          width: 1280
          height: 720
    

    Docker neu gestartet und folgendes im Frigate-Logging gefunden...

    2024-07-23 16:30:34.897276981  [2024-07-23 16:30:34] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
    

    Das Problem habe ich bisher nicht lösen können - trotzdem Backup des LXC gemacht ...

    Weiter zum Google Coral Chip

    lsusb zeigte in der Proxmox-PVE Shell folgende

    Bus 002 Device 002: ID 1a6e:089a Global Unichip Corp.
    

    Ander sah es im wieder gestarteten LXC auch nicht aus, nachdem ich dorthin Bus 2/Device 2 durchgereicht hatte:
    b89ca7fa-4989-4d70-b3f6-d11e42216b87-grafik.png

    Eigentlich sollte da folgendes stehen:

    Bus 002 Device 003: ID 18d1:9302 Google Inc.
    

    Mal schauen, dachte ich...
    config.yml angepasst:

    mqtt:
      enabled: False
    detectors:
        coral:
            type: edgetpu
            device: usb
    
    cameras:
      stellplatz:
        ffmpeg:
          hwaccel_args: preset-vaapi
          inputs:
            - path: rtsp://192.168.2.189:8554/mjpeg/1
              roles:
                - detect
    
        detect:
          enabled: False
          width: 1280
          height: 720
    

    docker-compose.yml

    services:
      frigate:
        container_name: frigate
        privileged: true # this may not be necessary for all setups
        restart: unless-stopped
        image: ghcr.io/blakeblackshear/frigate:stable
        shm_size: "64mb" # update for your cameras based on calculation above
        cap_add:
          - CAP_PERFMON
        devices:
          - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
          - /dev/bus/usb/002/002
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - /home/frigate/frigate:/config 
          - /media/frigate:/media/frigate
          - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
            target: /tmp/cache
            tmpfs:
              size: 1000000000
        ports:
          - "5000:5000"
          - "1935:1935" # RTMP feeds
    

    Nachdem beides angepasst war Container neu gestartet:

    frigate@ubuntu-frigate:~/frigate$ lsusb
    Bus 002 Device 003: ID 18d1:9302 Google Inc. 
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
    Bus 001 Device 005: ID 303a:80c2 WEMOS.CC LOLIN-S2-MINI
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    

    Irgendwas im Code des Containers hat das Coral USB so angefasst, dass er sich "anständig" meldet (Neue Firmware geladen?)
    Richtig zufriedenstellen ist das nicht, aber die TPU wird erkannt, womit andere Probleme hatten ...

    2024-07-23 16:29:15.297071620  [INFO] Preparing Frigate...
    2024-07-23 16:29:15.464806686  [INFO] Starting Frigate...
    2024-07-23 16:29:23.754811837  [2024-07-23 16:29:23] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
    2024-07-23 16:29:23.877506883  [2024-07-23 16:29:23] peewee_migrate.logs            INFO    : Starting migrations
    2024-07-23 16:29:23.906106705  [2024-07-23 16:29:23] peewee_migrate.logs            INFO    : There is nothing to migrate
    2024-07-23 16:29:23.924289754  [2024-07-23 16:29:23] frigate.app                    INFO    : Recording process started: 230
    2024-07-23 16:29:23.938529859  [2024-07-23 16:29:23] frigate.app                    INFO    : go2rtc process pid: 86
    2024-07-23 16:29:24.019337498  [2024-07-23 16:29:24] detector.coral                 INFO    : Starting detection process: 239
    2024-07-23 16:29:24.032800008  [2024-07-23 16:29:24] frigate.app                    INFO    : Output process started: 241
    2024-07-23 16:29:24.048060771  [2024-07-23 16:29:24] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
    2024-07-23 16:29:24.179917130  [2024-07-23 16:29:24] frigate.app                    INFO    : Camera processor started for stellplatz: 249
    2024-07-23 16:29:24.184386354  [2024-07-23 16:29:24] frigate.app                    INFO    : Capture process started for stellplatz: 250
    2024-07-23 16:29:26.724384536  [2024-07-23 16:29:26] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
    2024-07-23 16:30:34.897276981  [2024-07-23 16:30:34] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
    2024-07-23 16:30:34.897288793  
    2024-07-23 17:24:04.829536806  [2024-07-23 17:24:04] frigate.video                  ERROR   : stellplatz: Unable to read frames from ffmpeg process.
    2024-07-23 17:24:04.830031361  [2024-07-23 17:24:04] frigate.video                  ERROR   : stellplatz: ffmpeg process is not running. exiting capture thread...
    2024-07-23 17:24:14.593102490  [2024-07-23 17:24:14] watchdog.stellplatz            ERROR   : Ffmpeg process crashed unexpectedly for stellplatz.
    2024-07-23 17:24:14.593114102  [2024-07-23 17:24:14] watchdog.stellplatz            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
    2024-07-23 17:24:14.593126178  [2024-07-23 17:24:14] ffmpeg.stellplatz.detect       ERROR   : [AVHWDeviceContext @ 0x61fc8b834000] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
    2024-07-23 17:24:14.593207516  [2024-07-23 17:24:14] ffmpeg.stellplatz.detect       ERROR   : rtsp://192.168.2.189:8554/mjpeg/1: Input/output error
    
    

    Intel(R) Celeron(R) CPU N3000 @ 1.04GHz 8G RAM 480G SSD
    Virtualization : unprivileged lxc container (debian 12 on Proxmox 8.4.14)
    Linux pve 6.8.12-16-pve
    6 GByte RAM für den Container
    Fritzbox 6591 FW 8.03 (Vodafone Leih-Box)
    Remote-Access über Wireguard der Fritzbox

    MartinPM WalW 2 Antworten Letzte Antwort
    1
    • MartinPM MartinP

      Für die grundlegende Konfiguration verweise ich erstmal auf die Arbeit von @Wal im Thread https://forum.iobroker.net/topic/64643/proxmox-lxc-mit-frigate

      Der erstellte LXC Container ist Unpriviligert (EDIT, der hat nicht funktioniert, mit Privilegierter ist es was geworden) erstellt worden!

      Das dort im Posting 1 geschriebene kann so weit ziemlich 1:1 erledigt werden (bis auf Privilegiert)- die dort bei der LXC-Container Konfiguration vorgeschlagene Ubuntu-Version wird nicht mehr angeboten, ich habe die nächsthöhere gewählt - 24.04 statt 23.4 ... Um die Hardware durchzureichen kann man inzwischen anders vorgehen ...

      Nach dem Erledigen der grundlegenden Arbeiten aus Beitrag 1 bis zur Sichtbarkeit des ersten Kamerabildes im frigate Browsertab habe ich erstmal den LXC-Container gestoppt, und ein Backup des LXC mit Proxmox-Bordmitteln gezogen.
      Vorher kann man ggfs. auf der Webseite der Frigate Instanz ein wenig stöbern, ob z. B. etwas Interessantes unter "Logs" zu sehen ist.

      (Wenn man sich verbastelt hat, muss man dann nicht von vorne anfangen, sondern kann immer aus dem Backup eine funktionierende Version zurückspielen!

      Dann weiter zu den Intel-Render-Beschleunigern (ohne den LXC-Container zu starten)... die "Durchreiche" an den LXC kann man im aktuellen Proxmox aus der Proxmox-Gui im Browser erledigen ...
      58f5eaa5-113b-4e15-8bb3-f76669965176-grafik.png

      Unter Hinzufügen wählt man "Device Passthrough"
      1ed7b3f7-32fa-4b47-9327-8ce55854dc2b-grafik.png
      Wenn man mehrere Grafikkarten hat, könnte es unter /dev/dri/ neben renderD128 noch weitere Einträge geben..

      In der PVE-Shell ggfs. nachschauen, was es da für "/dev/dri/render...." Einträge gibt das könnte interessant sein, wenn man die Streams der diversen Kameras auf mehrer Grafikkarten zum Transkodieren verteilen kann...

      root@pve:~# ls /dev/dri
      by-path  card0  renderD128
      root@pve:~# 
      
      

      Die Konfiguration des "Durchreichens" von Hardware an den LXC Container habe ich vorher schon nach der Anleitung von @Wal versucht zu erledigen - da ich den PVE Server nicht neu aufgesetzt habe, können Artefakte davon eine Rolle im Folgenden gespielt haben- bin aber eigentlich ziemlich sicher, dass das nicht der Fall ist.

      Dann den LXC-Container neu starten, und schauen, was da so alles an Devices angezeigt wird: mit user und group auf "root" scheint Docker klarzukommen mit "nobody" nicht ...

      frigate@ubuntu-frigate:~/frigate$ ls -l /dev/dri
      total 0
      crw-rw---- 1 root root 226, 128 Jul 23 16:29 renderD128
      

      dann das docker-compose.file anpassen

      version: "3.9"
      services:
        frigate:
          container_name: frigate
          privileged: true # this may not be necessary for all setups
          restart: unless-stopped
          image: ghcr.io/blakeblackshear/frigate:stable
          shm_size: "64mb" # update for your cameras based on calculation above
          cap_add:
            - CAP_PERFMON
          devices:
            - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
          volumes:
            - /etc/localtime:/etc/localtime:ro
            - /home/frigate/frigate:/config 
            - /media/frigate:/media/frigate
            - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
              target: /tmp/cache
              tmpfs:
                size: 1000000000
          ports:
            - "5000:5000"
            - "1935:1935" # RTMP feeds
      

      So sah meine config.yml aus, nachdem die Intel-Render-Beschleunigung eingeschaltet war:

      mqtt:
        enabled: False
      
      cameras:
        stellplatz:
          ffmpeg:
            hwaccel_args: preset-vaapi
            inputs:
              - path: rtsp://192.168.2.189:8554/mjpeg/1
                roles:
                  - detect
      
          detect:
            enabled: False
            width: 1280
            height: 720
      

      Docker neu gestartet und folgendes im Frigate-Logging gefunden...

      2024-07-23 16:30:34.897276981  [2024-07-23 16:30:34] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
      

      Das Problem habe ich bisher nicht lösen können - trotzdem Backup des LXC gemacht ...

      Weiter zum Google Coral Chip

      lsusb zeigte in der Proxmox-PVE Shell folgende

      Bus 002 Device 002: ID 1a6e:089a Global Unichip Corp.
      

      Ander sah es im wieder gestarteten LXC auch nicht aus, nachdem ich dorthin Bus 2/Device 2 durchgereicht hatte:
      b89ca7fa-4989-4d70-b3f6-d11e42216b87-grafik.png

      Eigentlich sollte da folgendes stehen:

      Bus 002 Device 003: ID 18d1:9302 Google Inc.
      

      Mal schauen, dachte ich...
      config.yml angepasst:

      mqtt:
        enabled: False
      detectors:
          coral:
              type: edgetpu
              device: usb
      
      cameras:
        stellplatz:
          ffmpeg:
            hwaccel_args: preset-vaapi
            inputs:
              - path: rtsp://192.168.2.189:8554/mjpeg/1
                roles:
                  - detect
      
          detect:
            enabled: False
            width: 1280
            height: 720
      

      docker-compose.yml

      services:
        frigate:
          container_name: frigate
          privileged: true # this may not be necessary for all setups
          restart: unless-stopped
          image: ghcr.io/blakeblackshear/frigate:stable
          shm_size: "64mb" # update for your cameras based on calculation above
          cap_add:
            - CAP_PERFMON
          devices:
            - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
            - /dev/bus/usb/002/002
          volumes:
            - /etc/localtime:/etc/localtime:ro
            - /home/frigate/frigate:/config 
            - /media/frigate:/media/frigate
            - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
              target: /tmp/cache
              tmpfs:
                size: 1000000000
          ports:
            - "5000:5000"
            - "1935:1935" # RTMP feeds
      

      Nachdem beides angepasst war Container neu gestartet:

      frigate@ubuntu-frigate:~/frigate$ lsusb
      Bus 002 Device 003: ID 18d1:9302 Google Inc. 
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
      Bus 001 Device 005: ID 303a:80c2 WEMOS.CC LOLIN-S2-MINI
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      

      Irgendwas im Code des Containers hat das Coral USB so angefasst, dass er sich "anständig" meldet (Neue Firmware geladen?)
      Richtig zufriedenstellen ist das nicht, aber die TPU wird erkannt, womit andere Probleme hatten ...

      2024-07-23 16:29:15.297071620  [INFO] Preparing Frigate...
      2024-07-23 16:29:15.464806686  [INFO] Starting Frigate...
      2024-07-23 16:29:23.754811837  [2024-07-23 16:29:23] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
      2024-07-23 16:29:23.877506883  [2024-07-23 16:29:23] peewee_migrate.logs            INFO    : Starting migrations
      2024-07-23 16:29:23.906106705  [2024-07-23 16:29:23] peewee_migrate.logs            INFO    : There is nothing to migrate
      2024-07-23 16:29:23.924289754  [2024-07-23 16:29:23] frigate.app                    INFO    : Recording process started: 230
      2024-07-23 16:29:23.938529859  [2024-07-23 16:29:23] frigate.app                    INFO    : go2rtc process pid: 86
      2024-07-23 16:29:24.019337498  [2024-07-23 16:29:24] detector.coral                 INFO    : Starting detection process: 239
      2024-07-23 16:29:24.032800008  [2024-07-23 16:29:24] frigate.app                    INFO    : Output process started: 241
      2024-07-23 16:29:24.048060771  [2024-07-23 16:29:24] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
      2024-07-23 16:29:24.179917130  [2024-07-23 16:29:24] frigate.app                    INFO    : Camera processor started for stellplatz: 249
      2024-07-23 16:29:24.184386354  [2024-07-23 16:29:24] frigate.app                    INFO    : Capture process started for stellplatz: 250
      2024-07-23 16:29:26.724384536  [2024-07-23 16:29:26] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
      2024-07-23 16:30:34.897276981  [2024-07-23 16:30:34] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
      2024-07-23 16:30:34.897288793  
      2024-07-23 17:24:04.829536806  [2024-07-23 17:24:04] frigate.video                  ERROR   : stellplatz: Unable to read frames from ffmpeg process.
      2024-07-23 17:24:04.830031361  [2024-07-23 17:24:04] frigate.video                  ERROR   : stellplatz: ffmpeg process is not running. exiting capture thread...
      2024-07-23 17:24:14.593102490  [2024-07-23 17:24:14] watchdog.stellplatz            ERROR   : Ffmpeg process crashed unexpectedly for stellplatz.
      2024-07-23 17:24:14.593114102  [2024-07-23 17:24:14] watchdog.stellplatz            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
      2024-07-23 17:24:14.593126178  [2024-07-23 17:24:14] ffmpeg.stellplatz.detect       ERROR   : [AVHWDeviceContext @ 0x61fc8b834000] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
      2024-07-23 17:24:14.593207516  [2024-07-23 17:24:14] ffmpeg.stellplatz.detect       ERROR   : rtsp://192.168.2.189:8554/mjpeg/1: Input/output error
      
      
      MartinPM Online
      MartinPM Online
      MartinP
      schrieb am zuletzt editiert von MartinP
      #2

      @martinp Änderung, die nichts gebracht hat:

      Auf dem LXC-Container:

      frigate@ubuntu-frigate:~$ getent group render
      render:x:108:
      

      In der Proxmox-Oberfläche unter den LCX-Ressourceneinstellungen eine kleine Änderung (GID von 0 auf 108):

      cbe79c20-a3b8-451b-9f91-4a3c9e66d40a-grafik.png

      Hatte mich schon gefreut, aber nach 90 Sekunden dann doch wieder ein Reinfall

      2024-07-23 18:05:43.458122640  [INFO] Preparing Frigate...
      2024-07-23 18:05:43.614447795  [INFO] Starting Frigate...
      2024-07-23 18:05:52.062821997  [2024-07-23 18:05:52] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
      2024-07-23 18:05:52.186019756  [2024-07-23 18:05:52] peewee_migrate.logs            INFO    : Starting migrations
      2024-07-23 18:05:52.210044690  [2024-07-23 18:05:52] peewee_migrate.logs            INFO    : There is nothing to migrate
      2024-07-23 18:05:52.227919762  [2024-07-23 18:05:52] frigate.app                    INFO    : Recording process started: 231
      2024-07-23 18:05:52.242643407  [2024-07-23 18:05:52] frigate.app                    INFO    : go2rtc process pid: 92
      2024-07-23 18:05:52.326045840  [2024-07-23 18:05:52] detector.coral                 INFO    : Starting detection process: 240
      2024-07-23 18:05:52.329476931  [2024-07-23 18:05:52] frigate.app                    INFO    : Output process started: 242
      2024-07-23 18:05:52.351276659  [2024-07-23 18:05:52] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
      2024-07-23 18:05:55.211035171  [2024-07-23 18:05:52] frigate.app                    INFO    : Camera processor started for stellplatz: 250
      2024-07-23 18:05:55.211895340  [2024-07-23 18:05:52] frigate.app                    INFO    : Capture process started for stellplatz: 251
      2024-07-23 18:05:55.235657285  [2024-07-23 18:05:55] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
      2024-07-23 18:07:02.956372172  [2024-07-23 18:07:02] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
      
      root@pve:~# ls -la /dev/dri/
      total 0
      drwxr-xr-x  3 root root        100 Jul 22 18:35 .
      drwxr-xr-x 20 root root       4600 Jul 23 15:14 ..
      drwxr-xr-x  2 root root         80 Jul 22 18:35 by-path
      crw-rw----  1 root video  226,   0 Jul 22 18:35 card0
      crw-rw----  1 root render 226, 128 Jul 22 18:35 renderD128
      root@pve:~# 
      
      frigate@ubuntu-frigate:~$ ls -la /dev/dri
      total 0
      drwxr-xr-x 2 root root         60 Jul 23 18:05 .
      drwxr-xr-x 8 root root        520 Jul 23 18:05 ..
      crw-rw---- 1 root render 226, 128 Jul 23 18:05 renderD128
      
      

      Intel(R) Celeron(R) CPU N3000 @ 1.04GHz 8G RAM 480G SSD
      Virtualization : unprivileged lxc container (debian 12 on Proxmox 8.4.14)
      Linux pve 6.8.12-16-pve
      6 GByte RAM für den Container
      Fritzbox 6591 FW 8.03 (Vodafone Leih-Box)
      Remote-Access über Wireguard der Fritzbox

      MartinPM 1 Antwort Letzte Antwort
      0
      • MartinPM MartinP

        @martinp Änderung, die nichts gebracht hat:

        Auf dem LXC-Container:

        frigate@ubuntu-frigate:~$ getent group render
        render:x:108:
        

        In der Proxmox-Oberfläche unter den LCX-Ressourceneinstellungen eine kleine Änderung (GID von 0 auf 108):

        cbe79c20-a3b8-451b-9f91-4a3c9e66d40a-grafik.png

        Hatte mich schon gefreut, aber nach 90 Sekunden dann doch wieder ein Reinfall

        2024-07-23 18:05:43.458122640  [INFO] Preparing Frigate...
        2024-07-23 18:05:43.614447795  [INFO] Starting Frigate...
        2024-07-23 18:05:52.062821997  [2024-07-23 18:05:52] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
        2024-07-23 18:05:52.186019756  [2024-07-23 18:05:52] peewee_migrate.logs            INFO    : Starting migrations
        2024-07-23 18:05:52.210044690  [2024-07-23 18:05:52] peewee_migrate.logs            INFO    : There is nothing to migrate
        2024-07-23 18:05:52.227919762  [2024-07-23 18:05:52] frigate.app                    INFO    : Recording process started: 231
        2024-07-23 18:05:52.242643407  [2024-07-23 18:05:52] frigate.app                    INFO    : go2rtc process pid: 92
        2024-07-23 18:05:52.326045840  [2024-07-23 18:05:52] detector.coral                 INFO    : Starting detection process: 240
        2024-07-23 18:05:52.329476931  [2024-07-23 18:05:52] frigate.app                    INFO    : Output process started: 242
        2024-07-23 18:05:52.351276659  [2024-07-23 18:05:52] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
        2024-07-23 18:05:55.211035171  [2024-07-23 18:05:52] frigate.app                    INFO    : Camera processor started for stellplatz: 250
        2024-07-23 18:05:55.211895340  [2024-07-23 18:05:52] frigate.app                    INFO    : Capture process started for stellplatz: 251
        2024-07-23 18:05:55.235657285  [2024-07-23 18:05:55] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
        2024-07-23 18:07:02.956372172  [2024-07-23 18:07:02] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
        
        root@pve:~# ls -la /dev/dri/
        total 0
        drwxr-xr-x  3 root root        100 Jul 22 18:35 .
        drwxr-xr-x 20 root root       4600 Jul 23 15:14 ..
        drwxr-xr-x  2 root root         80 Jul 22 18:35 by-path
        crw-rw----  1 root video  226,   0 Jul 22 18:35 card0
        crw-rw----  1 root render 226, 128 Jul 22 18:35 renderD128
        root@pve:~# 
        
        frigate@ubuntu-frigate:~$ ls -la /dev/dri
        total 0
        drwxr-xr-x 2 root root         60 Jul 23 18:05 .
        drwxr-xr-x 8 root root        520 Jul 23 18:05 ..
        crw-rw---- 1 root render 226, 128 Jul 23 18:05 renderD128
        
        
        MartinPM Online
        MartinPM Online
        MartinP
        schrieb am zuletzt editiert von MartinP
        #3

        Neuer Versuch mit privilegiertem Container hat geklappt:

        Dabei habe ich alles "in einem Rutsch gemacht ...

        Vor dem Starten des Docker Containers den LXC noch einmal gestoppt, und die beiden Devices durchgereicht

        8c5af909-b12f-45ff-af97-73bdc1bade80-grafik.png

        cc13960a-3ded-4ecf-a846-bb4ad42e3426-grafik.png

        Ob das bei einem Priv Container überhaupt nötig ist, weiß ich nicht ...

        Jedenfalls von Anfang an beide Dinge in der Config aktiviert, und alles funktionierte

        
        services:
          frigate:
            container_name: frigate
            privileged: true # this may not be necessary for all setups
            restart: unless-stopped
            image: ghcr.io/blakeblackshear/frigate:stable
            shm_size: "64mb" # update for your cameras based on calculation above
            cap_add:
              - CAP_PERFMON
            devices:
              - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
              - /dev/bus/usb/002/003
            volumes:
              - /etc/localtime:/etc/localtime:ro
              - /home/frigate/frigate/config.yml:/config/config.yml
              - /media/frigate:/media/frigate
              - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
                target: /tmp/cache
                tmpfs:
                  size: 1000000000
            ports:
              - "5000:5000"
              - "1935:1935" # RTMP feeds
        

        und ...

        
        mqtt:
          enabled: False
        detectors:
            coral:
                type: edgetpu
                device: usb
        cameras:
          stellplatz:
            ffmpeg:
              hwaccel_args: preset-vaapi
              inputs:
                - path: rtsp://192.168.2.189:8554/mjpeg/1
                  roles:
                    - detect
            detect:
              enabled: False
              width: 1280
              height: 720
        
        

        Hier noch das Logging:


        2024-07-23 19:38:59.657242148 [INFO] Preparing Frigate...
        2024-07-23 19:38:59.731758228 [INFO] Starting Frigate...
        2024-07-23 19:39:06.976777813 [2024-07-23 19:39:06] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
        2024-07-23 19:39:07.193769850 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Starting migrations
        2024-07-23 19:39:07.226783781 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "001_create_events_table"
        2024-07-23 19:39:07.226804156 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "event" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "label" VARCHAR(20) NOT NULL, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "top_score" REAL NOT NULL, "false_positive" INTEGER NOT NULL, "zones" JSON NOT NULL, "thumbnail" TEXT NOT NULL)',)
        2024-07-23 19:39:07.233183708 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
        2024-07-23 19:39:07.240327966 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
        2024-07-23 19:39:07.244319835 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 001_create_events_table
        2024-07-23 19:39:07.259015505 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "002_add_clip_snapshot"
        2024-07-23 19:39:07.259027580 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
        2024-07-23 19:39:07.272635115 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
        2024-07-23 19:39:07.281398124 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 002_add_clip_snapshot
        2024-07-23 19:39:07.291663207 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "003_create_recordings_table"
        2024-07-23 19:39:07.291677420 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "recordings" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
        2024-07-23 19:39:07.294560443 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
        2024-07-23 19:39:07.296463396 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
        2024-07-23 19:39:07.297041476 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
        2024-07-23 19:39:07.298610201 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 003_create_recordings_table
        2024-07-23 19:39:07.313523660 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "004_add_bbox_region_area"
        2024-07-23 19:39:07.313535485 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'region', <JSONField: Event.region>)
        2024-07-23 19:39:07.323120900 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'box', <JSONField: Event.box>)
        2024-07-23 19:39:07.337304791 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'area', <IntegerField: Event.area>)
        2024-07-23 19:39:07.348443844 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 004_add_bbox_region_area
        2024-07-23 19:39:07.359773348 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "005_make_end_time_nullable"
        2024-07-23 19:39:07.359785573 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'end_time')
        2024-07-23 19:39:07.365688609 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 005_make_end_time_nullable
        2024-07-23 19:39:07.377731994 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "006_add_motion_active_objects"
        2024-07-23 19:39:07.380488229 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
        2024-07-23 19:39:07.380500041 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
        2024-07-23 19:39:07.382155155 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 006_add_motion_active_objects
        2024-07-23 19:39:07.393575023 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "007_add_retain_indefinitely"
        2024-07-23 19:39:07.398764902 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
        2024-07-23 19:39:07.403752718 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 007_add_retain_indefinitely
        2024-07-23 19:39:07.414752670 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "008_add_sub_label"
        2024-07-23 19:39:07.415367925 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
        2024-07-23 19:39:07.417801019 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 008_add_sub_label
        2024-07-23 19:39:07.430314796 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "009_add_object_filter_ratio"
        2024-07-23 19:39:07.430326971 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'ratio', <FloatField: Event.ratio>)
        2024-07-23 19:39:07.440367940 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 009_add_object_filter_ratio
        2024-07-23 19:39:07.451013839 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "010_add_plus_image_id"
        2024-07-23 19:39:07.451532956 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
        2024-07-23 19:39:07.454960746 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 010_add_plus_image_id
        2024-07-23 19:39:07.465203017 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "011_update_indexes"
        2024-07-23 19:39:07.466383839 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
        2024-07-23 19:39:07.466393676 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_start_time_end_time',)
        2024-07-23 19:39:07.468288742 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
        2024-07-23 19:39:07.468980922 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 011_update_indexes
        2024-07-23 19:39:07.478801527 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "012_add_segment_size"
        2024-07-23 19:39:07.478813302 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'segment_size', <FloatField: Recordings.segment_size>)
        2024-07-23 19:39:07.493346870 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 012_add_segment_size
        2024-07-23 19:39:07.505802271 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "013_create_timeline_table"
        2024-07-23 19:39:07.507954239 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "timeline" ("timestamp" DATETIME NOT NULL, "camera" VARCHAR(20) NOT NULL, "source" VARCHAR(20) NOT NULL, "source_id" VARCHAR(30), "class_type" VARCHAR(50) NOT NULL, "data" JSON)',)
        2024-07-23 19:39:07.507967064 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_camera" ON "timeline" ("camera")',)
        2024-07-23 19:39:07.508663857 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_source" ON "timeline" ("source")',)
        2024-07-23 19:39:07.509474201 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_source_id" ON "timeline" ("source_id")',)
        2024-07-23 19:39:07.510831800 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 013_create_timeline_table
        2024-07-23 19:39:07.529243974 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "014_event_updates_for_fp"
        2024-07-23 19:39:07.530522110 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'score', <FloatField: Event.score>)
        2024-07-23 19:39:07.531228328 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'model_hash', <CharField: Event.model_hash>)
        2024-07-23 19:39:07.532598964 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'detector_type', <CharField: Event.detector_type>)
        2024-07-23 19:39:07.532608827 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'model_type', <CharField: Event.model_type>)
        2024-07-23 19:39:07.532613539 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
        2024-07-23 19:39:07.540340264 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'false_positive')
        2024-07-23 19:39:07.548124940 [2024-07-23 19:39:07] peewee_migrate.logs INFO : apply_default ('event', 'false_positive', <BooleanField: Event.false_positive>)
        2024-07-23 19:39:07.550950838 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 014_event_updates_for_fp
        2024-07-23 19:39:07.567066081 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "015_event_refactor"
        2024-07-23 19:39:07.567077757 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'top_score')
        2024-07-23 19:39:07.577296527 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'score')
        2024-07-23 19:39:07.584501773 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'region')
        2024-07-23 19:39:07.595589775 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'box')
        2024-07-23 19:39:07.602024453 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
        2024-07-23 19:39:07.612680114 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'ratio')
        2024-07-23 19:39:07.618647500 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'data', <JSONField: Event.data>)
        2024-07-23 19:39:07.629651102 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 015_event_refactor
        2024-07-23 19:39:07.641440460 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "016_sublabel_increase"
        2024-07-23 19:39:07.641452423 [2024-07-23 19:39:07] peewee_migrate.logs INFO : change_column ('event', 'sub_label', <CharField: Event.sub_label>)
        2024-07-23 19:39:07.652093022 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 016_sublabel_increase
        2024-07-23 19:39:07.661611174 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "017_update_indexes"
        2024-07-23 19:39:07.661623474 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_segment_size" ON "recordings" ("camera", "segment_size")',)
        2024-07-23 19:39:07.664412547 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 017_update_indexes
        2024-07-23 19:39:07.672433849 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "018_add_dbfs"
        2024-07-23 19:39:07.672446462 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'dBFS', <IntegerField: Recordings.dBFS>)
        2024-07-23 19:39:07.675688701 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 018_add_dbfs
        2024-07-23 19:39:07.684204645 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "019_create_regions_table"
        2024-07-23 19:39:07.684635661 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "regions" ("camera" VARCHAR(20) NOT NULL PRIMARY KEY, "last_update" DATETIME NOT NULL, "grid" JSON)',)
        2024-07-23 19:39:07.688254853 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 019_create_regions_table
        2024-07-23 19:39:07.700502090 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "020_update_index_recordings"
        2024-07-23 19:39:07.700859818 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_end_time_start_time',)
        2024-07-23 19:39:07.703030048 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)',)
        2024-07-23 19:39:07.704978614 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")',)
        2024-07-23 19:39:07.706004297 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")',)
        2024-07-23 19:39:07.708671469 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 020_update_index_recordings
        2024-07-23 19:39:07.722612120 [2024-07-23 19:39:07] frigate.app INFO : Running database vacuum
        2024-07-23 19:39:07.752343436 [2024-07-23 19:39:07] frigate.app INFO : Recording process started: 229
        2024-07-23 19:39:07.759730721 [2024-07-23 19:39:07] frigate.app INFO : go2rtc process pid: 88
        2024-07-23 19:39:07.849045184 [2024-07-23 19:39:07] detector.coral INFO : Starting detection process: 238
        2024-07-23 19:39:07.853760185 [2024-07-23 19:39:07] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
        2024-07-23 19:39:07.861825750 [2024-07-23 19:39:07] frigate.app INFO : Output process started: 240
        2024-07-23 19:39:07.937240350 [2024-07-23 19:39:07] frigate.app INFO : Camera processor started for stellplatz: 247
        2024-07-23 19:39:07.937251313 [2024-07-23 19:39:07] frigate.app INFO : Capture process started for stellplatz: 249
        2024-07-23 19:39:10.524296122 [2024-07-23 19:39:10] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found

        Intel(R) Celeron(R) CPU N3000 @ 1.04GHz 8G RAM 480G SSD
        Virtualization : unprivileged lxc container (debian 12 on Proxmox 8.4.14)
        Linux pve 6.8.12-16-pve
        6 GByte RAM für den Container
        Fritzbox 6591 FW 8.03 (Vodafone Leih-Box)
        Remote-Access über Wireguard der Fritzbox

        W 2 Antworten Letzte Antwort
        0
        • crunchipC Abwesend
          crunchipC Abwesend
          crunchip
          Forum Testing Most Active
          schrieb am zuletzt editiert von crunchip
          #4

          proxmox war bis vor kurzen in der Anleitung ja noch nicht aufgeführt
          https://docs.frigate.video/frigate/installation/#proxmox
          ansonsten
          https://github.com/blakeblackshear/frigate/discussions/5773

          umgestiegen von Proxmox auf Unraid

          1 Antwort Letzte Antwort
          1
          • MartinPM MartinP

            Neuer Versuch mit privilegiertem Container hat geklappt:

            Dabei habe ich alles "in einem Rutsch gemacht ...

            Vor dem Starten des Docker Containers den LXC noch einmal gestoppt, und die beiden Devices durchgereicht

            8c5af909-b12f-45ff-af97-73bdc1bade80-grafik.png

            cc13960a-3ded-4ecf-a846-bb4ad42e3426-grafik.png

            Ob das bei einem Priv Container überhaupt nötig ist, weiß ich nicht ...

            Jedenfalls von Anfang an beide Dinge in der Config aktiviert, und alles funktionierte

            
            services:
              frigate:
                container_name: frigate
                privileged: true # this may not be necessary for all setups
                restart: unless-stopped
                image: ghcr.io/blakeblackshear/frigate:stable
                shm_size: "64mb" # update for your cameras based on calculation above
                cap_add:
                  - CAP_PERFMON
                devices:
                  - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
                  - /dev/bus/usb/002/003
                volumes:
                  - /etc/localtime:/etc/localtime:ro
                  - /home/frigate/frigate/config.yml:/config/config.yml
                  - /media/frigate:/media/frigate
                  - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
                    target: /tmp/cache
                    tmpfs:
                      size: 1000000000
                ports:
                  - "5000:5000"
                  - "1935:1935" # RTMP feeds
            

            und ...

            
            mqtt:
              enabled: False
            detectors:
                coral:
                    type: edgetpu
                    device: usb
            cameras:
              stellplatz:
                ffmpeg:
                  hwaccel_args: preset-vaapi
                  inputs:
                    - path: rtsp://192.168.2.189:8554/mjpeg/1
                      roles:
                        - detect
                detect:
                  enabled: False
                  width: 1280
                  height: 720
            
            

            Hier noch das Logging:


            2024-07-23 19:38:59.657242148 [INFO] Preparing Frigate...
            2024-07-23 19:38:59.731758228 [INFO] Starting Frigate...
            2024-07-23 19:39:06.976777813 [2024-07-23 19:39:06] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
            2024-07-23 19:39:07.193769850 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Starting migrations
            2024-07-23 19:39:07.226783781 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "001_create_events_table"
            2024-07-23 19:39:07.226804156 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "event" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "label" VARCHAR(20) NOT NULL, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "top_score" REAL NOT NULL, "false_positive" INTEGER NOT NULL, "zones" JSON NOT NULL, "thumbnail" TEXT NOT NULL)',)
            2024-07-23 19:39:07.233183708 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
            2024-07-23 19:39:07.240327966 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
            2024-07-23 19:39:07.244319835 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 001_create_events_table
            2024-07-23 19:39:07.259015505 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "002_add_clip_snapshot"
            2024-07-23 19:39:07.259027580 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
            2024-07-23 19:39:07.272635115 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
            2024-07-23 19:39:07.281398124 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 002_add_clip_snapshot
            2024-07-23 19:39:07.291663207 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "003_create_recordings_table"
            2024-07-23 19:39:07.291677420 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "recordings" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
            2024-07-23 19:39:07.294560443 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
            2024-07-23 19:39:07.296463396 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
            2024-07-23 19:39:07.297041476 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
            2024-07-23 19:39:07.298610201 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 003_create_recordings_table
            2024-07-23 19:39:07.313523660 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "004_add_bbox_region_area"
            2024-07-23 19:39:07.313535485 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'region', <JSONField: Event.region>)
            2024-07-23 19:39:07.323120900 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'box', <JSONField: Event.box>)
            2024-07-23 19:39:07.337304791 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'area', <IntegerField: Event.area>)
            2024-07-23 19:39:07.348443844 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 004_add_bbox_region_area
            2024-07-23 19:39:07.359773348 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "005_make_end_time_nullable"
            2024-07-23 19:39:07.359785573 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'end_time')
            2024-07-23 19:39:07.365688609 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 005_make_end_time_nullable
            2024-07-23 19:39:07.377731994 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "006_add_motion_active_objects"
            2024-07-23 19:39:07.380488229 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
            2024-07-23 19:39:07.380500041 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
            2024-07-23 19:39:07.382155155 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 006_add_motion_active_objects
            2024-07-23 19:39:07.393575023 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "007_add_retain_indefinitely"
            2024-07-23 19:39:07.398764902 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
            2024-07-23 19:39:07.403752718 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 007_add_retain_indefinitely
            2024-07-23 19:39:07.414752670 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "008_add_sub_label"
            2024-07-23 19:39:07.415367925 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
            2024-07-23 19:39:07.417801019 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 008_add_sub_label
            2024-07-23 19:39:07.430314796 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "009_add_object_filter_ratio"
            2024-07-23 19:39:07.430326971 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'ratio', <FloatField: Event.ratio>)
            2024-07-23 19:39:07.440367940 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 009_add_object_filter_ratio
            2024-07-23 19:39:07.451013839 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "010_add_plus_image_id"
            2024-07-23 19:39:07.451532956 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
            2024-07-23 19:39:07.454960746 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 010_add_plus_image_id
            2024-07-23 19:39:07.465203017 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "011_update_indexes"
            2024-07-23 19:39:07.466383839 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
            2024-07-23 19:39:07.466393676 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_start_time_end_time',)
            2024-07-23 19:39:07.468288742 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
            2024-07-23 19:39:07.468980922 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 011_update_indexes
            2024-07-23 19:39:07.478801527 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "012_add_segment_size"
            2024-07-23 19:39:07.478813302 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'segment_size', <FloatField: Recordings.segment_size>)
            2024-07-23 19:39:07.493346870 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 012_add_segment_size
            2024-07-23 19:39:07.505802271 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "013_create_timeline_table"
            2024-07-23 19:39:07.507954239 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "timeline" ("timestamp" DATETIME NOT NULL, "camera" VARCHAR(20) NOT NULL, "source" VARCHAR(20) NOT NULL, "source_id" VARCHAR(30), "class_type" VARCHAR(50) NOT NULL, "data" JSON)',)
            2024-07-23 19:39:07.507967064 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_camera" ON "timeline" ("camera")',)
            2024-07-23 19:39:07.508663857 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_source" ON "timeline" ("source")',)
            2024-07-23 19:39:07.509474201 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_source_id" ON "timeline" ("source_id")',)
            2024-07-23 19:39:07.510831800 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 013_create_timeline_table
            2024-07-23 19:39:07.529243974 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "014_event_updates_for_fp"
            2024-07-23 19:39:07.530522110 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'score', <FloatField: Event.score>)
            2024-07-23 19:39:07.531228328 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'model_hash', <CharField: Event.model_hash>)
            2024-07-23 19:39:07.532598964 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'detector_type', <CharField: Event.detector_type>)
            2024-07-23 19:39:07.532608827 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'model_type', <CharField: Event.model_type>)
            2024-07-23 19:39:07.532613539 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
            2024-07-23 19:39:07.540340264 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'false_positive')
            2024-07-23 19:39:07.548124940 [2024-07-23 19:39:07] peewee_migrate.logs INFO : apply_default ('event', 'false_positive', <BooleanField: Event.false_positive>)
            2024-07-23 19:39:07.550950838 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 014_event_updates_for_fp
            2024-07-23 19:39:07.567066081 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "015_event_refactor"
            2024-07-23 19:39:07.567077757 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'top_score')
            2024-07-23 19:39:07.577296527 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'score')
            2024-07-23 19:39:07.584501773 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'region')
            2024-07-23 19:39:07.595589775 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'box')
            2024-07-23 19:39:07.602024453 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
            2024-07-23 19:39:07.612680114 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'ratio')
            2024-07-23 19:39:07.618647500 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'data', <JSONField: Event.data>)
            2024-07-23 19:39:07.629651102 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 015_event_refactor
            2024-07-23 19:39:07.641440460 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "016_sublabel_increase"
            2024-07-23 19:39:07.641452423 [2024-07-23 19:39:07] peewee_migrate.logs INFO : change_column ('event', 'sub_label', <CharField: Event.sub_label>)
            2024-07-23 19:39:07.652093022 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 016_sublabel_increase
            2024-07-23 19:39:07.661611174 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "017_update_indexes"
            2024-07-23 19:39:07.661623474 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_segment_size" ON "recordings" ("camera", "segment_size")',)
            2024-07-23 19:39:07.664412547 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 017_update_indexes
            2024-07-23 19:39:07.672433849 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "018_add_dbfs"
            2024-07-23 19:39:07.672446462 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'dBFS', <IntegerField: Recordings.dBFS>)
            2024-07-23 19:39:07.675688701 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 018_add_dbfs
            2024-07-23 19:39:07.684204645 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "019_create_regions_table"
            2024-07-23 19:39:07.684635661 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "regions" ("camera" VARCHAR(20) NOT NULL PRIMARY KEY, "last_update" DATETIME NOT NULL, "grid" JSON)',)
            2024-07-23 19:39:07.688254853 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 019_create_regions_table
            2024-07-23 19:39:07.700502090 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "020_update_index_recordings"
            2024-07-23 19:39:07.700859818 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_end_time_start_time',)
            2024-07-23 19:39:07.703030048 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)',)
            2024-07-23 19:39:07.704978614 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")',)
            2024-07-23 19:39:07.706004297 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")',)
            2024-07-23 19:39:07.708671469 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 020_update_index_recordings
            2024-07-23 19:39:07.722612120 [2024-07-23 19:39:07] frigate.app INFO : Running database vacuum
            2024-07-23 19:39:07.752343436 [2024-07-23 19:39:07] frigate.app INFO : Recording process started: 229
            2024-07-23 19:39:07.759730721 [2024-07-23 19:39:07] frigate.app INFO : go2rtc process pid: 88
            2024-07-23 19:39:07.849045184 [2024-07-23 19:39:07] detector.coral INFO : Starting detection process: 238
            2024-07-23 19:39:07.853760185 [2024-07-23 19:39:07] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
            2024-07-23 19:39:07.861825750 [2024-07-23 19:39:07] frigate.app INFO : Output process started: 240
            2024-07-23 19:39:07.937240350 [2024-07-23 19:39:07] frigate.app INFO : Camera processor started for stellplatz: 247
            2024-07-23 19:39:07.937251313 [2024-07-23 19:39:07] frigate.app INFO : Capture process started for stellplatz: 249
            2024-07-23 19:39:10.524296122 [2024-07-23 19:39:10] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found

            W Offline
            W Offline
            womi
            schrieb am zuletzt editiert von
            #5

            @martinp Danke für die Anleitung.
            Vielleicht sei noch als Ergänzung bemerkt, dass sich die Coral TPU in eine VM nicht so zuverlässig durchreichen lässt wie in einen LXC.
            Zumindest dann nicht, wenn man ein einzelnes USB-Gerät oder Port, nicht aber die ganz IOMMU group durchreichen kann oder will.
            Ich hatte es lange versucht und jeweils nach kurzer Zeit wurde sie neu initialisiert. Mit einem LXC klappt es seit ein paar Wochen problemlos.

            1 Antwort Letzte Antwort
            0
            • MartinPM MartinP

              Für die grundlegende Konfiguration verweise ich erstmal auf die Arbeit von @Wal im Thread https://forum.iobroker.net/topic/64643/proxmox-lxc-mit-frigate

              Der erstellte LXC Container ist Unpriviligert (EDIT, der hat nicht funktioniert, mit Privilegierter ist es was geworden) erstellt worden!

              Das dort im Posting 1 geschriebene kann so weit ziemlich 1:1 erledigt werden (bis auf Privilegiert)- die dort bei der LXC-Container Konfiguration vorgeschlagene Ubuntu-Version wird nicht mehr angeboten, ich habe die nächsthöhere gewählt - 24.04 statt 23.4 ... Um die Hardware durchzureichen kann man inzwischen anders vorgehen ...

              Nach dem Erledigen der grundlegenden Arbeiten aus Beitrag 1 bis zur Sichtbarkeit des ersten Kamerabildes im frigate Browsertab habe ich erstmal den LXC-Container gestoppt, und ein Backup des LXC mit Proxmox-Bordmitteln gezogen.
              Vorher kann man ggfs. auf der Webseite der Frigate Instanz ein wenig stöbern, ob z. B. etwas Interessantes unter "Logs" zu sehen ist.

              (Wenn man sich verbastelt hat, muss man dann nicht von vorne anfangen, sondern kann immer aus dem Backup eine funktionierende Version zurückspielen!

              Dann weiter zu den Intel-Render-Beschleunigern (ohne den LXC-Container zu starten)... die "Durchreiche" an den LXC kann man im aktuellen Proxmox aus der Proxmox-Gui im Browser erledigen ...
              58f5eaa5-113b-4e15-8bb3-f76669965176-grafik.png

              Unter Hinzufügen wählt man "Device Passthrough"
              1ed7b3f7-32fa-4b47-9327-8ce55854dc2b-grafik.png
              Wenn man mehrere Grafikkarten hat, könnte es unter /dev/dri/ neben renderD128 noch weitere Einträge geben..

              In der PVE-Shell ggfs. nachschauen, was es da für "/dev/dri/render...." Einträge gibt das könnte interessant sein, wenn man die Streams der diversen Kameras auf mehrer Grafikkarten zum Transkodieren verteilen kann...

              root@pve:~# ls /dev/dri
              by-path  card0  renderD128
              root@pve:~# 
              
              

              Die Konfiguration des "Durchreichens" von Hardware an den LXC Container habe ich vorher schon nach der Anleitung von @Wal versucht zu erledigen - da ich den PVE Server nicht neu aufgesetzt habe, können Artefakte davon eine Rolle im Folgenden gespielt haben- bin aber eigentlich ziemlich sicher, dass das nicht der Fall ist.

              Dann den LXC-Container neu starten, und schauen, was da so alles an Devices angezeigt wird: mit user und group auf "root" scheint Docker klarzukommen mit "nobody" nicht ...

              frigate@ubuntu-frigate:~/frigate$ ls -l /dev/dri
              total 0
              crw-rw---- 1 root root 226, 128 Jul 23 16:29 renderD128
              

              dann das docker-compose.file anpassen

              version: "3.9"
              services:
                frigate:
                  container_name: frigate
                  privileged: true # this may not be necessary for all setups
                  restart: unless-stopped
                  image: ghcr.io/blakeblackshear/frigate:stable
                  shm_size: "64mb" # update for your cameras based on calculation above
                  cap_add:
                    - CAP_PERFMON
                  devices:
                    - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
                  volumes:
                    - /etc/localtime:/etc/localtime:ro
                    - /home/frigate/frigate:/config 
                    - /media/frigate:/media/frigate
                    - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
                      target: /tmp/cache
                      tmpfs:
                        size: 1000000000
                  ports:
                    - "5000:5000"
                    - "1935:1935" # RTMP feeds
              

              So sah meine config.yml aus, nachdem die Intel-Render-Beschleunigung eingeschaltet war:

              mqtt:
                enabled: False
              
              cameras:
                stellplatz:
                  ffmpeg:
                    hwaccel_args: preset-vaapi
                    inputs:
                      - path: rtsp://192.168.2.189:8554/mjpeg/1
                        roles:
                          - detect
              
                  detect:
                    enabled: False
                    width: 1280
                    height: 720
              

              Docker neu gestartet und folgendes im Frigate-Logging gefunden...

              2024-07-23 16:30:34.897276981  [2024-07-23 16:30:34] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
              

              Das Problem habe ich bisher nicht lösen können - trotzdem Backup des LXC gemacht ...

              Weiter zum Google Coral Chip

              lsusb zeigte in der Proxmox-PVE Shell folgende

              Bus 002 Device 002: ID 1a6e:089a Global Unichip Corp.
              

              Ander sah es im wieder gestarteten LXC auch nicht aus, nachdem ich dorthin Bus 2/Device 2 durchgereicht hatte:
              b89ca7fa-4989-4d70-b3f6-d11e42216b87-grafik.png

              Eigentlich sollte da folgendes stehen:

              Bus 002 Device 003: ID 18d1:9302 Google Inc.
              

              Mal schauen, dachte ich...
              config.yml angepasst:

              mqtt:
                enabled: False
              detectors:
                  coral:
                      type: edgetpu
                      device: usb
              
              cameras:
                stellplatz:
                  ffmpeg:
                    hwaccel_args: preset-vaapi
                    inputs:
                      - path: rtsp://192.168.2.189:8554/mjpeg/1
                        roles:
                          - detect
              
                  detect:
                    enabled: False
                    width: 1280
                    height: 720
              

              docker-compose.yml

              services:
                frigate:
                  container_name: frigate
                  privileged: true # this may not be necessary for all setups
                  restart: unless-stopped
                  image: ghcr.io/blakeblackshear/frigate:stable
                  shm_size: "64mb" # update for your cameras based on calculation above
                  cap_add:
                    - CAP_PERFMON
                  devices:
                    - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
                    - /dev/bus/usb/002/002
                  volumes:
                    - /etc/localtime:/etc/localtime:ro
                    - /home/frigate/frigate:/config 
                    - /media/frigate:/media/frigate
                    - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
                      target: /tmp/cache
                      tmpfs:
                        size: 1000000000
                  ports:
                    - "5000:5000"
                    - "1935:1935" # RTMP feeds
              

              Nachdem beides angepasst war Container neu gestartet:

              frigate@ubuntu-frigate:~/frigate$ lsusb
              Bus 002 Device 003: ID 18d1:9302 Google Inc. 
              Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
              Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
              Bus 001 Device 005: ID 303a:80c2 WEMOS.CC LOLIN-S2-MINI
              Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
              

              Irgendwas im Code des Containers hat das Coral USB so angefasst, dass er sich "anständig" meldet (Neue Firmware geladen?)
              Richtig zufriedenstellen ist das nicht, aber die TPU wird erkannt, womit andere Probleme hatten ...

              2024-07-23 16:29:15.297071620  [INFO] Preparing Frigate...
              2024-07-23 16:29:15.464806686  [INFO] Starting Frigate...
              2024-07-23 16:29:23.754811837  [2024-07-23 16:29:23] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
              2024-07-23 16:29:23.877506883  [2024-07-23 16:29:23] peewee_migrate.logs            INFO    : Starting migrations
              2024-07-23 16:29:23.906106705  [2024-07-23 16:29:23] peewee_migrate.logs            INFO    : There is nothing to migrate
              2024-07-23 16:29:23.924289754  [2024-07-23 16:29:23] frigate.app                    INFO    : Recording process started: 230
              2024-07-23 16:29:23.938529859  [2024-07-23 16:29:23] frigate.app                    INFO    : go2rtc process pid: 86
              2024-07-23 16:29:24.019337498  [2024-07-23 16:29:24] detector.coral                 INFO    : Starting detection process: 239
              2024-07-23 16:29:24.032800008  [2024-07-23 16:29:24] frigate.app                    INFO    : Output process started: 241
              2024-07-23 16:29:24.048060771  [2024-07-23 16:29:24] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
              2024-07-23 16:29:24.179917130  [2024-07-23 16:29:24] frigate.app                    INFO    : Camera processor started for stellplatz: 249
              2024-07-23 16:29:24.184386354  [2024-07-23 16:29:24] frigate.app                    INFO    : Capture process started for stellplatz: 250
              2024-07-23 16:29:26.724384536  [2024-07-23 16:29:26] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
              2024-07-23 16:30:34.897276981  [2024-07-23 16:30:34] frigate.util.services          ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
              2024-07-23 16:30:34.897288793  
              2024-07-23 17:24:04.829536806  [2024-07-23 17:24:04] frigate.video                  ERROR   : stellplatz: Unable to read frames from ffmpeg process.
              2024-07-23 17:24:04.830031361  [2024-07-23 17:24:04] frigate.video                  ERROR   : stellplatz: ffmpeg process is not running. exiting capture thread...
              2024-07-23 17:24:14.593102490  [2024-07-23 17:24:14] watchdog.stellplatz            ERROR   : Ffmpeg process crashed unexpectedly for stellplatz.
              2024-07-23 17:24:14.593114102  [2024-07-23 17:24:14] watchdog.stellplatz            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
              2024-07-23 17:24:14.593126178  [2024-07-23 17:24:14] ffmpeg.stellplatz.detect       ERROR   : [AVHWDeviceContext @ 0x61fc8b834000] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
              2024-07-23 17:24:14.593207516  [2024-07-23 17:24:14] ffmpeg.stellplatz.detect       ERROR   : rtsp://192.168.2.189:8554/mjpeg/1: Input/output error
              
              
              WalW Offline
              WalW Offline
              Wal
              Developer
              schrieb am zuletzt editiert von
              #6

              @martinp sagte in Frigate auf Coral USB im LXC-Container ...:

              Docker neu gestartet und folgendes im Frigate-Logging gefunden...
              Copy to Clipboard2024-07-23 16:30:34.897276981 [2024-07-23 16:30:34] frigate.util.services ERROR : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)

              Das ist Normal, die Fehlermeldung habe ich auch. Es ist ein Rechte Problem, Hardwarebeschleunigung funktioniert trotzdem.

              Gruß
              Walter

              DoorIO-Adapter
              wioBrowser-Adapter und wioBrowser

              MartinPM 1 Antwort Letzte Antwort
              0
              • WalW Wal

                @martinp sagte in Frigate auf Coral USB im LXC-Container ...:

                Docker neu gestartet und folgendes im Frigate-Logging gefunden...
                Copy to Clipboard2024-07-23 16:30:34.897276981 [2024-07-23 16:30:34] frigate.util.services ERROR : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)

                Das ist Normal, die Fehlermeldung habe ich auch. Es ist ein Rechte Problem, Hardwarebeschleunigung funktioniert trotzdem.

                MartinPM Online
                MartinPM Online
                MartinP
                schrieb am zuletzt editiert von
                #7

                @wal said in Frigate auf Coral USB im LXC-Container ...:

                @martinp sagte in Frigate auf Coral USB im LXC-Container ...:

                Docker neu gestartet und folgendes im Frigate-Logging gefunden...
                Copy to Clipboard2024-07-23 16:30:34.897276981 [2024-07-23 16:30:34] frigate.util.services ERROR : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)

                Das ist Normal, die Fehlermeldung habe ich auch. Es ist ein Rechte Problem, Hardwarebeschleunigung funktioniert trotzdem.

                Wirklich verblüffend, die Meldung besagt ja - wenn mich meine Englishkenntnisse nicht verlassen - definitiv das Gegenteil...
                Woran erkennt man eigentlich, dass die GPU-Hardwarebeschleunigung trotzdem funktioniert?
                Wäre ja schon ärgerlich, wenn ich mir die Arbeit mit dem privilegierten LXC umsonst gemacht hätte...

                Intel(R) Celeron(R) CPU N3000 @ 1.04GHz 8G RAM 480G SSD
                Virtualization : unprivileged lxc container (debian 12 on Proxmox 8.4.14)
                Linux pve 6.8.12-16-pve
                6 GByte RAM für den Container
                Fritzbox 6591 FW 8.03 (Vodafone Leih-Box)
                Remote-Access über Wireguard der Fritzbox

                WalW 1 Antwort Letzte Antwort
                0
                • MartinPM MartinP

                  @wal said in Frigate auf Coral USB im LXC-Container ...:

                  @martinp sagte in Frigate auf Coral USB im LXC-Container ...:

                  Docker neu gestartet und folgendes im Frigate-Logging gefunden...
                  Copy to Clipboard2024-07-23 16:30:34.897276981 [2024-07-23 16:30:34] frigate.util.services ERROR : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)

                  Das ist Normal, die Fehlermeldung habe ich auch. Es ist ein Rechte Problem, Hardwarebeschleunigung funktioniert trotzdem.

                  Wirklich verblüffend, die Meldung besagt ja - wenn mich meine Englishkenntnisse nicht verlassen - definitiv das Gegenteil...
                  Woran erkennt man eigentlich, dass die GPU-Hardwarebeschleunigung trotzdem funktioniert?
                  Wäre ja schon ärgerlich, wenn ich mir die Arbeit mit dem privilegierten LXC umsonst gemacht hätte...

                  WalW Offline
                  WalW Offline
                  Wal
                  Developer
                  schrieb am zuletzt editiert von Wal
                  #8

                  @martinp ,
                  lass den Stream mit GoToRTC wandeln und schaue auf die CPU-Last, danach schaltest du das Hardwaretranscoden ab und schaust nochmal auf die CPU-Last.

                  edit: es kommt auch eine Meldung beim Start von Frigate:

                  type
                  Info
                  Timestamp
                  2024-07-24 19:05:26
                  Tag
                  frigate.util.services
                  Message
                  Automatically detected vaapi hwaccel for video decoding
                  

                  Gruß
                  Walter

                  DoorIO-Adapter
                  wioBrowser-Adapter und wioBrowser

                  MartinPM 1 Antwort Letzte Antwort
                  0
                  • WalW Wal

                    @martinp ,
                    lass den Stream mit GoToRTC wandeln und schaue auf die CPU-Last, danach schaltest du das Hardwaretranscoden ab und schaust nochmal auf die CPU-Last.

                    edit: es kommt auch eine Meldung beim Start von Frigate:

                    type
                    Info
                    Timestamp
                    2024-07-24 19:05:26
                    Tag
                    frigate.util.services
                    Message
                    Automatically detected vaapi hwaccel for video decoding
                    
                    MartinPM Online
                    MartinPM Online
                    MartinP
                    schrieb am zuletzt editiert von
                    #9

                    @wal Gestern ein großes Update danach musste PVE, und somit auch alles, was darunter liegt neu gestartet werden...

                    Leider hat es dabei den Docker Container zerlegt.. und zwar sehr merkwürdig

                    frigate@ubuntu-frigate-privileged:~/frigate$ docker compose up
                    [+] Running 1/0
                     ✔ Container frigate  Created                                                                    0.0s 
                    Attaching to frigate
                    Error response from daemon: readdirent /dev/serial/by-id: no such file or directory
                    
                    

                    habe kein serielles Device an den Container durchgereicht ...

                    Nach der alten Bauernregel "jeder Boot tut gut" habe ich den LXC-Container neu gestartet, und alles läuft wieder ...

                    Intel(R) Celeron(R) CPU N3000 @ 1.04GHz 8G RAM 480G SSD
                    Virtualization : unprivileged lxc container (debian 12 on Proxmox 8.4.14)
                    Linux pve 6.8.12-16-pve
                    6 GByte RAM für den Container
                    Fritzbox 6591 FW 8.03 (Vodafone Leih-Box)
                    Remote-Access über Wireguard der Fritzbox

                    1 Antwort Letzte Antwort
                    0
                    • MartinPM MartinP

                      Neuer Versuch mit privilegiertem Container hat geklappt:

                      Dabei habe ich alles "in einem Rutsch gemacht ...

                      Vor dem Starten des Docker Containers den LXC noch einmal gestoppt, und die beiden Devices durchgereicht

                      8c5af909-b12f-45ff-af97-73bdc1bade80-grafik.png

                      cc13960a-3ded-4ecf-a846-bb4ad42e3426-grafik.png

                      Ob das bei einem Priv Container überhaupt nötig ist, weiß ich nicht ...

                      Jedenfalls von Anfang an beide Dinge in der Config aktiviert, und alles funktionierte

                      
                      services:
                        frigate:
                          container_name: frigate
                          privileged: true # this may not be necessary for all setups
                          restart: unless-stopped
                          image: ghcr.io/blakeblackshear/frigate:stable
                          shm_size: "64mb" # update for your cameras based on calculation above
                          cap_add:
                            - CAP_PERFMON
                          devices:
                            - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
                            - /dev/bus/usb/002/003
                          volumes:
                            - /etc/localtime:/etc/localtime:ro
                            - /home/frigate/frigate/config.yml:/config/config.yml
                            - /media/frigate:/media/frigate
                            - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
                              target: /tmp/cache
                              tmpfs:
                                size: 1000000000
                          ports:
                            - "5000:5000"
                            - "1935:1935" # RTMP feeds
                      

                      und ...

                      
                      mqtt:
                        enabled: False
                      detectors:
                          coral:
                              type: edgetpu
                              device: usb
                      cameras:
                        stellplatz:
                          ffmpeg:
                            hwaccel_args: preset-vaapi
                            inputs:
                              - path: rtsp://192.168.2.189:8554/mjpeg/1
                                roles:
                                  - detect
                          detect:
                            enabled: False
                            width: 1280
                            height: 720
                      
                      

                      Hier noch das Logging:


                      2024-07-23 19:38:59.657242148 [INFO] Preparing Frigate...
                      2024-07-23 19:38:59.731758228 [INFO] Starting Frigate...
                      2024-07-23 19:39:06.976777813 [2024-07-23 19:39:06] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
                      2024-07-23 19:39:07.193769850 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Starting migrations
                      2024-07-23 19:39:07.226783781 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "001_create_events_table"
                      2024-07-23 19:39:07.226804156 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "event" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "label" VARCHAR(20) NOT NULL, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "top_score" REAL NOT NULL, "false_positive" INTEGER NOT NULL, "zones" JSON NOT NULL, "thumbnail" TEXT NOT NULL)',)
                      2024-07-23 19:39:07.233183708 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
                      2024-07-23 19:39:07.240327966 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
                      2024-07-23 19:39:07.244319835 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 001_create_events_table
                      2024-07-23 19:39:07.259015505 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "002_add_clip_snapshot"
                      2024-07-23 19:39:07.259027580 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
                      2024-07-23 19:39:07.272635115 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
                      2024-07-23 19:39:07.281398124 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 002_add_clip_snapshot
                      2024-07-23 19:39:07.291663207 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "003_create_recordings_table"
                      2024-07-23 19:39:07.291677420 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "recordings" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
                      2024-07-23 19:39:07.294560443 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
                      2024-07-23 19:39:07.296463396 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
                      2024-07-23 19:39:07.297041476 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
                      2024-07-23 19:39:07.298610201 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 003_create_recordings_table
                      2024-07-23 19:39:07.313523660 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "004_add_bbox_region_area"
                      2024-07-23 19:39:07.313535485 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'region', <JSONField: Event.region>)
                      2024-07-23 19:39:07.323120900 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'box', <JSONField: Event.box>)
                      2024-07-23 19:39:07.337304791 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'area', <IntegerField: Event.area>)
                      2024-07-23 19:39:07.348443844 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 004_add_bbox_region_area
                      2024-07-23 19:39:07.359773348 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "005_make_end_time_nullable"
                      2024-07-23 19:39:07.359785573 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'end_time')
                      2024-07-23 19:39:07.365688609 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 005_make_end_time_nullable
                      2024-07-23 19:39:07.377731994 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "006_add_motion_active_objects"
                      2024-07-23 19:39:07.380488229 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
                      2024-07-23 19:39:07.380500041 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
                      2024-07-23 19:39:07.382155155 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 006_add_motion_active_objects
                      2024-07-23 19:39:07.393575023 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "007_add_retain_indefinitely"
                      2024-07-23 19:39:07.398764902 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
                      2024-07-23 19:39:07.403752718 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 007_add_retain_indefinitely
                      2024-07-23 19:39:07.414752670 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "008_add_sub_label"
                      2024-07-23 19:39:07.415367925 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
                      2024-07-23 19:39:07.417801019 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 008_add_sub_label
                      2024-07-23 19:39:07.430314796 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "009_add_object_filter_ratio"
                      2024-07-23 19:39:07.430326971 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'ratio', <FloatField: Event.ratio>)
                      2024-07-23 19:39:07.440367940 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 009_add_object_filter_ratio
                      2024-07-23 19:39:07.451013839 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "010_add_plus_image_id"
                      2024-07-23 19:39:07.451532956 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
                      2024-07-23 19:39:07.454960746 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 010_add_plus_image_id
                      2024-07-23 19:39:07.465203017 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "011_update_indexes"
                      2024-07-23 19:39:07.466383839 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
                      2024-07-23 19:39:07.466393676 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_start_time_end_time',)
                      2024-07-23 19:39:07.468288742 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
                      2024-07-23 19:39:07.468980922 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 011_update_indexes
                      2024-07-23 19:39:07.478801527 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "012_add_segment_size"
                      2024-07-23 19:39:07.478813302 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'segment_size', <FloatField: Recordings.segment_size>)
                      2024-07-23 19:39:07.493346870 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 012_add_segment_size
                      2024-07-23 19:39:07.505802271 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "013_create_timeline_table"
                      2024-07-23 19:39:07.507954239 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "timeline" ("timestamp" DATETIME NOT NULL, "camera" VARCHAR(20) NOT NULL, "source" VARCHAR(20) NOT NULL, "source_id" VARCHAR(30), "class_type" VARCHAR(50) NOT NULL, "data" JSON)',)
                      2024-07-23 19:39:07.507967064 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_camera" ON "timeline" ("camera")',)
                      2024-07-23 19:39:07.508663857 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_source" ON "timeline" ("source")',)
                      2024-07-23 19:39:07.509474201 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "timeline_source_id" ON "timeline" ("source_id")',)
                      2024-07-23 19:39:07.510831800 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 013_create_timeline_table
                      2024-07-23 19:39:07.529243974 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "014_event_updates_for_fp"
                      2024-07-23 19:39:07.530522110 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'score', <FloatField: Event.score>)
                      2024-07-23 19:39:07.531228328 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'model_hash', <CharField: Event.model_hash>)
                      2024-07-23 19:39:07.532598964 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'detector_type', <CharField: Event.detector_type>)
                      2024-07-23 19:39:07.532608827 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'model_type', <CharField: Event.model_type>)
                      2024-07-23 19:39:07.532613539 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
                      2024-07-23 19:39:07.540340264 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'false_positive')
                      2024-07-23 19:39:07.548124940 [2024-07-23 19:39:07] peewee_migrate.logs INFO : apply_default ('event', 'false_positive', <BooleanField: Event.false_positive>)
                      2024-07-23 19:39:07.550950838 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 014_event_updates_for_fp
                      2024-07-23 19:39:07.567066081 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "015_event_refactor"
                      2024-07-23 19:39:07.567077757 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'top_score')
                      2024-07-23 19:39:07.577296527 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'score')
                      2024-07-23 19:39:07.584501773 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'region')
                      2024-07-23 19:39:07.595589775 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'box')
                      2024-07-23 19:39:07.602024453 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
                      2024-07-23 19:39:07.612680114 [2024-07-23 19:39:07] peewee_migrate.logs INFO : drop_not_null ('event', 'ratio')
                      2024-07-23 19:39:07.618647500 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('event', 'data', <JSONField: Event.data>)
                      2024-07-23 19:39:07.629651102 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 015_event_refactor
                      2024-07-23 19:39:07.641440460 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "016_sublabel_increase"
                      2024-07-23 19:39:07.641452423 [2024-07-23 19:39:07] peewee_migrate.logs INFO : change_column ('event', 'sub_label', <CharField: Event.sub_label>)
                      2024-07-23 19:39:07.652093022 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 016_sublabel_increase
                      2024-07-23 19:39:07.661611174 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "017_update_indexes"
                      2024-07-23 19:39:07.661623474 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_segment_size" ON "recordings" ("camera", "segment_size")',)
                      2024-07-23 19:39:07.664412547 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 017_update_indexes
                      2024-07-23 19:39:07.672433849 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "018_add_dbfs"
                      2024-07-23 19:39:07.672446462 [2024-07-23 19:39:07] peewee_migrate.logs INFO : add_column ('recordings', 'dBFS', <IntegerField: Recordings.dBFS>)
                      2024-07-23 19:39:07.675688701 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 018_add_dbfs
                      2024-07-23 19:39:07.684204645 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "019_create_regions_table"
                      2024-07-23 19:39:07.684635661 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "regions" ("camera" VARCHAR(20) NOT NULL PRIMARY KEY, "last_update" DATETIME NOT NULL, "grid" JSON)',)
                      2024-07-23 19:39:07.688254853 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 019_create_regions_table
                      2024-07-23 19:39:07.700502090 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Migrate "020_update_index_recordings"
                      2024-07-23 19:39:07.700859818 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_end_time_start_time',)
                      2024-07-23 19:39:07.703030048 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)',)
                      2024-07-23 19:39:07.704978614 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")',)
                      2024-07-23 19:39:07.706004297 [2024-07-23 19:39:07] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")',)
                      2024-07-23 19:39:07.708671469 [2024-07-23 19:39:07] peewee_migrate.logs INFO : Done 020_update_index_recordings
                      2024-07-23 19:39:07.722612120 [2024-07-23 19:39:07] frigate.app INFO : Running database vacuum
                      2024-07-23 19:39:07.752343436 [2024-07-23 19:39:07] frigate.app INFO : Recording process started: 229
                      2024-07-23 19:39:07.759730721 [2024-07-23 19:39:07] frigate.app INFO : go2rtc process pid: 88
                      2024-07-23 19:39:07.849045184 [2024-07-23 19:39:07] detector.coral INFO : Starting detection process: 238
                      2024-07-23 19:39:07.853760185 [2024-07-23 19:39:07] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
                      2024-07-23 19:39:07.861825750 [2024-07-23 19:39:07] frigate.app INFO : Output process started: 240
                      2024-07-23 19:39:07.937240350 [2024-07-23 19:39:07] frigate.app INFO : Camera processor started for stellplatz: 247
                      2024-07-23 19:39:07.937251313 [2024-07-23 19:39:07] frigate.app INFO : Capture process started for stellplatz: 249
                      2024-07-23 19:39:10.524296122 [2024-07-23 19:39:10] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found

                      W Offline
                      W Offline
                      womi
                      schrieb am zuletzt editiert von
                      #10

                      @martinp Hattest Du seither mal einen Neustart des LXC gemacht oder den Coral AI aus- und wieder eingesteckt?
                      Bei mir hat sich nämlich der Pfad geändert.
                      Die letzte Zahl, also 002 wird immer um eins erhöht…
                      Das ist ein wenig unpraktisch.

                      1 Antwort Letzte Antwort
                      0
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      504

                      Online

                      32.5k

                      Benutzer

                      81.7k

                      Themen

                      1.3m

                      Beiträge
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Anmelden

                      • Du hast noch kein Konto? Registrieren

                      • Anmelden oder registrieren, um zu suchen
                      • Erster Beitrag
                        Letzter Beitrag
                      0
                      • Home
                      • Aktuell
                      • Tags
                      • Ungelesen 0
                      • Kategorien
                      • Unreplied
                      • Beliebt
                      • GitHub
                      • Docu
                      • Hilfe