Frigate a problem

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-04-06 04:53:41] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
*************************************************************
*************************************************************
***    Your config file is not valid!                     ***
***    Please check the docs at                           ***
***    https://docs.frigate.video/configuration/index     ***
*************************************************************
*************************************************************
***    Config Validation Errors                           ***
*************************************************************
3 validation errors for FrigateConfig
cameras -> driveway_cam -> fps
  extra fields not permitted (type=value_error.extra)
cameras -> driveway_cam -> height
  extra fields not permitted (type=value_error.extra)
cameras -> driveway_cam -> width
  extra fields not permitted (type=value_error.extra)
Traceback (most recent call last):
  File "/opt/frigate/frigate/app.py", line 332, in start
    self.init_config()
  File "/opt/frigate/frigate/app.py", line 82, in init_config
    user_config = FrigateConfig.parse_file(config_file)
  File "/opt/frigate/frigate/config.py", line 942, in parse_file
    return cls.parse_obj(config)
  File "/usr/local/lib/python3.9/dist-packages/pydantic/main.py", line 521, in parse_obj
    return cls(**obj)
  File "/usr/local/lib/python3.9/dist-packages/pydantic/main.py", line 341, in __init__
    raise validation_error
pydantic.error_wrappers.ValidationError: 3 validation errors for FrigateConfig
cameras -> driveway_cam -> fps
  extra fields not permitted (type=value_error.extra)
cameras -> driveway_cam -> height
  extra fields not permitted (type=value_error.extra)
cameras -> driveway_cam -> width
  extra fields not permitted (type=value_error.extra)
*************************************************************
***    End Config Validation Errors                       ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

frigate.yml config

mqtt:
  host: 192.168.1.101
  user: mqttuser
  password: pasww

cameras:
  scam:
    ffmpeg:
      inputs:
        - path: rtsp://name:[email protected]/stream1
          roles: 
            - detect
    width: 1920
    height: 1080
    fps: 5
    
detectors: 
  cpu1:
    type: cpu
  cpu2:
    type: cpu

What version frigate?

How you install?

You missing config for driveway_cam

1 Like

You are missing detect which fps, width, height are properties of. Please check the docs.

seems like you are following an old guide

1 Like

.Current version: 0.11.1

I changed the driveway_cam name to scam but the same error persists.

What is your suggestion?

I changed the settings as follows, the error persists.

mqtt:
  host: 192.168.1.101/24
  user: mqttuser
  password: pass

cameras:
  camera_1:
    ffmpeg:
      inputs:
        - path: rtsp://name:[email protected]/stream1
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
    
detectors: 
  cpu1:
    type: cpu
  cpu2:
    type: cpu
[2023-04-07 00:08:04] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
[2023-04-07 00:08:04] frigate.app                    INFO    : Creating directory: /media/frigate/recordings
[2023-04-07 00:08:04] frigate.app                    INFO    : Creating directory: /media/frigate/clips
[2023-04-07 00:08:04] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Starting migrations
Migrate "001_create_events_table"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "001_create_events_table"
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)',)
[2023-04-07 00:08:04] peewee_migrate                 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)',)
sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
Done 001_create_events_table
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 001_create_events_table
Migrate "002_add_clip_snapshot"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "002_add_clip_snapshot"
add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
Done 002_add_clip_snapshot
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 002_add_clip_snapshot
Migrate "003_create_recordings_table"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "003_create_recordings_table"
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)',)
[2023-04-07 00:08:04] peewee_migrate                 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)',)
sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
Done 003_create_recordings_table
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 003_create_recordings_table
Migrate "004_add_bbox_region_area"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "004_add_bbox_region_area"
add_column ('event', 'region', <JSONField: Event.region>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'region', <JSONField: Event.region>)
add_column ('event', 'box', <JSONField: Event.box>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'box', <JSONField: Event.box>)
add_column ('event', 'area', <IntegerField: Event.area>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'area', <IntegerField: Event.area>)
Done 004_add_bbox_region_area
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 004_add_bbox_region_area
Migrate "005_make_end_time_nullable"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "005_make_end_time_nullable"
drop_not_null ('event', 'end_time')
[2023-04-07 00:08:04] peewee_migrate                 INFO    : drop_not_null ('event', 'end_time')
Done 005_make_end_time_nullable
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 005_make_end_time_nullable
Migrate "006_add_motion_active_objects"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "006_add_motion_active_objects"
add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
Done 006_add_motion_active_objects
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 006_add_motion_active_objects
Migrate "007_add_retain_indefinitely"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "007_add_retain_indefinitely"
add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
Done 007_add_retain_indefinitely
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 007_add_retain_indefinitely
Migrate "008_add_sub_label"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "008_add_sub_label"
add_column ('event', 'sub_label', <CharField: Event.sub_label>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
Done 008_add_sub_label
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 008_add_sub_label
Migrate "009_add_object_filter_ratio"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "009_add_object_filter_ratio"
add_column ('event', 'ratio', <FloatField: Event.ratio>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'ratio', <FloatField: Event.ratio>)
Done 009_add_object_filter_ratio
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 009_add_object_filter_ratio
Migrate "010_add_plus_image_id"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "010_add_plus_image_id"
add_column ('event', 'plus_id', <CharField: Event.plus_id>)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
Done 010_add_plus_image_id
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 010_add_plus_image_id
Migrate "011_update_indexes"
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Migrate "011_update_indexes"
sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
sql ('DROP INDEX recordings_start_time_end_time',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('DROP INDEX recordings_start_time_end_time',)
sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
[2023-04-07 00:08:04] peewee_migrate                 INFO    : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
Done 011_update_indexes
[2023-04-07 00:08:04] peewee_migrate                 INFO    : Done 011_update_indexes
[Errno -2] Name or service not known
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Add “detect” above w/h/fps same level as “ffmpeg”

detect:
   width: 1280
   height: 1080
   fps: 5
1 Like

i did it i get a new error. Thanks

host: 192.168.1.101/24 is not a valid host for mqtt

1 Like

I don’t know where /24 came from, sorry. I fixed it. Thank you everyone. worked

running configuration

mqtt:
  host: 192.168.1.101
  user: mqttuser
  password: pass

cameras:
  camera_1:
    ffmpeg:
      inputs:
        - path: rtsp://name:[email protected]/stream1
          roles:
            - detect
            - rtmp
            
    detect:
      enabled: True
      width: 1280
      height: 720
    rtmp:
      enabled: True

detectors: 
  cpu1:
    type: cpu
  cpu2:
    type: cpu
1 Like