Probleme installation Frigate

Bonjour, j’essaie d’installer frigate et à chaque fois j’ai un message d’erreur quand je je veux le demarrer

Je l’ai installé depuis les modules complementaires
j’ai créé le fichier config, comme il doit etre , enfin je pense !!
le voici :

mqtt: 
    enabled: False
    
camera:
    Camera_extrieure:
        ffmpeg:
            inputs:
                - path: rtsp://*username**:***mdp***@192.168.1.***:554/h264Preview_01_main
                  roles:
                    - detect
        detect:
            enabled: False
            width: 1280
            height: 720

l’adresse rstp est celle que j’avais sur jeedom pour quil m’affiche la camera et elle fonctionnait!

et dans les logs lors du lancement j’ai ca:

2024-06-06 08:17:42.286875806  [INFO] Starting Frigate...
2024-06-06 08:17:42.307488334  [INFO] Got IP address from supervisor: 192.168.1.99
2024-06-06 08:17:42.356971148  [INFO] Got WebRTC port from supervisor: 8555
2024-06-06 08:17:42.711722811  [INFO] Starting go2rtc...
2024-06-06 08:17:42.789069830  10:17:42.788 INF go2rtc version 1.8.4 linux/amd64
2024-06-06 08:17:42.789852789  10:17:42.789 INF [rtsp] listen addr=:8554
2024-06-06 08:17:42.789857609  10:17:42.789 INF [api] listen addr=:1984
2024-06-06 08:17:42.790015045  10:17:42.789 INF [webrtc] listen addr=:8555
2024-06-06 08:17:43.954429500  [2024-06-06 10:17:43] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
2024-06-06 08:17:43.954679757  [2024-06-06 10:17:43] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-06-06 08:17:43.962469536  *************************************************************
2024-06-06 08:17:43.962473122  *************************************************************
2024-06-06 08:17:43.962477211  ***    Your config file is not valid!                     ***
2024-06-06 08:17:43.962479678  ***    Please check the docs at                           ***
2024-06-06 08:17:43.962481080  ***    https://docs.frigate.video/configuration/index     ***
2024-06-06 08:17:43.962508183  *************************************************************
2024-06-06 08:17:43.962509728  *************************************************************
2024-06-06 08:17:43.962511434  ***    Config Validation Errors                           ***
2024-06-06 08:17:43.962512775  *************************************************************
2024-06-06 08:17:43.962584418  2 validation errors for FrigateConfig
2024-06-06 08:17:43.962586753  cameras
2024-06-06 08:17:43.962588609    field required (type=value_error.missing)
2024-06-06 08:17:43.962590041  camera
2024-06-06 08:17:43.962591880    extra fields not permitted (type=value_error.extra)
2024-06-06 08:17:43.964123268  Traceback (most recent call last):
2024-06-06 08:17:43.964125608    File "/opt/frigate/frigate/app.py", line 645, in start
2024-06-06 08:17:43.964126722      self.init_config()
2024-06-06 08:17:43.964127912    File "/opt/frigate/frigate/app.py", line 112, in init_config
2024-06-06 08:17:43.964129071      user_config = FrigateConfig.parse_file(config_file)
2024-06-06 08:17:43.964130282    File "/opt/frigate/frigate/config.py", line 1346, in parse_file
2024-06-06 08:17:43.964131356      return cls.parse_obj(config)
2024-06-06 08:17:43.964132574    File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
2024-06-06 08:17:43.964133762    File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
2024-06-06 08:17:43.964135032  pydantic.error_wrappers.ValidationError: 2 validation errors for FrigateConfig
2024-06-06 08:17:43.964137085  cameras
2024-06-06 08:17:43.964138206    field required (type=value_error.missing)
2024-06-06 08:17:43.964139211  camera
2024-06-06 08:17:43.964173708    extra fields not permitted (type=value_error.extra)
2024-06-06 08:17:43.964175264  
2024-06-06 08:17:43.964176733  *************************************************************
2024-06-06 08:17:43.964200913  ***    End Config Validation Errors                       ***
2024-06-06 08:17:43.964202573  *************************************************************
2024-06-06 08:17:45.237340115  [INFO] Service Frigate exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2024-06-06 08:17:45.250455315  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-06-06 08:17:45.271279224  [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
2024-06-06 08:17:45.275817447  exit with signal: terminated
s6-rc: info: service nginx-log successfully stopped
s6-rc: info: service frigate-log successfully stopped
2024-06-06 08:17:45.280929236  [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Merci pour votre aide

emmêlage de doigts ?

1 « J'aime »

Bonjour,
un exemple de configuration, faire attention aux espaces.

mqtt:
  host: XXX.XXX.XXX.XXX
  user: leuserquilébo
  password: lemotdepassequilédur
  stats_interval: 60

cameras:
  Cam1:
    ffmpeg:
      inputs:
      - path: rtsp://192.168.X.X/main_ch
        roles:
        - detect
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: True

    objects:
      filters:
        person:
          min_score: 0.6
          threshold: 0.75
          mask:
          - 1091,582,1259,630,1280,425,1095,418
        cat:
          min_score: 0.6
          threshold: 0.75

    mqtt:
      enabled: True
      timestamp: False
      bounding_box: True
      crop: True

C’est à dire ??
ou est l’erreur ?

extrieure ? exterieure plutôt, non ?

Sinon :

camera:
    Camera_extrieure:

camera doit être au pluriel : cameras:

et à priori MQTT doit être activé et renseigné correctement (nom d’utilisateur, mot de passe, port, host) :

mqtt:
  enabled: true
  host: 192.168.1.xx
  user: xxxxxxxx
  password: ohteel1api2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbushah8ai
  port: 1883

j’ai activé le mqtt, le mien n’a pas de usernam ni de mdp du coup pas renseigné , mais rien ne change

Ah j’ai du mieux , il s’est lancé , maintenant il faut que je regarde pour la detection lol

Salut, tu a fait quoi pour que ça fonctionne?

J’ai activé le mqtt et je lui ai attribué un username et un mdp

Frigate fonctionne très bien sans MQTT activé (c’est le cas chez moi puisque pas encore intégré à HA)
Le problème était sans doute ailleurs.

1 « J'aime »