[Config Support]: list index out of range #10293
-
Describe the problem you are havingOut of the blue today I noticed Frigate add-on wasn't running and could not start. I haven't changed any configs, only recent changes are the addition and migration to a USB SSD instead of the SD Card on the Rpi4. It was working fine after this migration for the last few days, but would randomly restart so I assumed this was the SSD not getting enough power. I bought a usb 3.0 hub, plugged that in to a usb 3.0 port on the rpi4, plugged the drive in to the hub and then I couldn't get HA to boot from the drive, so I hooked it back up the way it was yesterday, HA booted, but still can't get frigate to start. (EDIT: i have since been able to get the usb hub situation worked out, so this is now isolated to being a frigate problem) Core Version5.0.1 Frigate config file## Frigate Config Below
mqtt:
host: core-mosquitto
user: mqtt
password:
model:
path: plus://
detectors:
coral:
type: edgetpu
device: usb
cameras:
CoopCam:
ffmpeg:
inputs:
- path: rtsp://
roles:
- detect
- path: rtsp://
roles:
- record
record:
enabled: false
events:
retain:
default: 5
snapshots:
enabled: true
detect:
width: 704
height: 480
fps: 5
objects:
track:
- person
filters:
person:
min_score: .7
threshold: .9
motion:
mask:
- 704,480,0,480,0,271,39,307,72,234,107,218,21,75,0,0,100,0,704,0
RunCam:
ffmpeg:
inputs:
- path: rtsp://
roles:
- detect
- path: rtsp://
roles:
- record
record:
enabled: true
events:
retain:
default: 5
snapshots:
enabled: true
detect:
width: 704
height: 480
fps: 5
objects:
track:
- person
- car
- dog
- cat
filters:
person:
min_score: .65
threshold: .85
car:
min_score: .65
dog:
min_score: .7
threshold: .9
cat:
min_score: .65
threshold: .8
motion:
mask:
- 704,0,704,44,478,47,445,21,193,30,128,49,0,57,0
ParkingLot:
ffmpeg:
inputs:
- path: rtsp://
roles:
- detect
- path: rtsp://
roles:
- record
record:
enabled: true
events:
retain:
default: 5
snapshots:
enabled: true
detect:
width: 1280
height: 720
fps: 10
motion:
mask:
- 714,0,0,0,0,221,893,218,1280,288,1280,0
threshold: 60
objects:
track:
- person
- face
- license_plate
- dog
- cat
- car
- amazon
- fedex
- ups
filters:
dog:
min_score: .7
threshold: .9
cat:
min_score: .65
threshold: .8
face:
min_score: .7
package:
min_score: .65
threshold: .9
license_plate:
min_score: .6
amazon:
min_score: .75
ups:
min_score: .75
fedex:
min_score: .75
person:
min_score: .65
threshold: .85
car:
min_score: .65
DrivewayEast:
ffmpeg:
inputs:
- path: rtsp://
roles:
- detect
- path: rtsp://
roles:
- record
record:
enabled: true
events:
retain:
default: 5
snapshots:
enabled: true
detect:
width: 1280
height: 720
fps: 10
motion:
mask:
- 1280,0,1280,179,249,203,0,180,0,0
threshold: 60
objects:
track:
- person
- face
- license_plate
- dog
- cat
- car
- amazon
- fedex
- ups
filters:
dog:
min_score: .7
threshold: .9
cat:
min_score: .65
threshold: .8
face:
min_score: .7
package:
min_score: .65
threshold: .9
license_plate:
min_score: .6
amazon:
min_score: .75
ups:
min_score: .75
fedex:
min_score: .75
person:
min_score: .65
threshold: .85
car:
min_score: .65
zones:
left:
coordinates: 668,172,659,313,439,287,338,267,333,206
right:
coordinates: 1280,119,1280,431,680,396,683,116
DoorBell:
ffmpeg:
inputs:
- path: rtsp://
roles:
- detect
- path: rtsp://
roles:
- record
record:
enabled: true
events:
retain:
default: 5
snapshots:
enabled: true
detect:
width: 640
height: 480
fps: 5
motion:
mask:
- 502,183,640,111,640,0,0,0,0,59,0,180,38,208
threshold: 30
objects:
track:
- person
- face
- license_plate
- dog
- cat
- car
- amazon
- fedex
- ups
- package
filters:
dog:
min_score: .7
threshold: .9
cat:
min_score: .65
threshold: .8
face:
min_score: .7
package:
min_score: .65
threshold: .9
license_plate:
min_score: .6
amazon:
min_score: .75
ups:
min_score: .75
fedex:
min_score: .75
person:
min_score: .65
threshold: .85
car:
min_score: .85
birdseye:
enabled: false
mode: motionRelevant log output# Log from frigate below
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service go2rtc-healthcheck successfully started
2024-03-06 18:17:29.881724388 [INFO] Preparing Frigate...
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2024-03-06 18:17:29.895812511 [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2024-03-06 18:17:31.610267626 [INFO] Starting Frigate...
2024-03-06 18:17:31.610855469 [INFO] Preparing new go2rtc config...
2024-03-06 18:17:31.804215585 [INFO] Got IP address from supervisor: 192.168.1.204
2024-03-06 18:17:31.993157026 [INFO] Got WebRTC port from supervisor: 8555
2024-03-06 18:17:33.710635433 [INFO] Starting go2rtc...
2024-03-06 18:17:33.956898644 13:17:33.956 INF go2rtc version 1.8.4 linux/arm64
2024-03-06 18:17:33.959087408 13:17:33.958 INF [rtsp] listen addr=:8554
2024-03-06 18:17:33.959861527 13:17:33.958 INF [api] listen addr=:1984
2024-03-06 18:17:33.960545628 13:17:33.960 INF [webrtc] listen addr=:8555
2024-03-06 18:17:39.774939684 [2024-03-06 13:17:39] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-03-06 18:17:39.775871078 [2024-03-06 13:17:39] frigate.app INFO : Creating directory: /tmp/cache
2024-03-06 18:17:39.887140811 [INFO] Starting go2rtc healthcheck service...
2024-03-06 18:17:39.959989912 *************************************************************
2024-03-06 18:17:39.960001245 *************************************************************
2024-03-06 18:17:39.960013652 *** Your config file is not valid! ***
2024-03-06 18:17:39.960018523 *** Please check the docs at ***
2024-03-06 18:17:39.960021523 *** https://docs.frigate.video/configuration/index ***
2024-03-06 18:17:39.960205742 *************************************************************
2024-03-06 18:17:39.960211020 *************************************************************
2024-03-06 18:17:39.960213483 *** Config Validation Errors ***
2024-03-06 18:17:39.960215890 *************************************************************
2024-03-06 18:17:39.960217557 list index out of range
2024-03-06 18:17:39.964939545 Traceback (most recent call last):
2024-03-06 18:17:39.964953692 File "/opt/frigate/frigate/app.py", line 645, in start
2024-03-06 18:17:39.964955433 self.init_config()
2024-03-06 18:17:39.964957804 File "/opt/frigate/frigate/app.py", line 113, in init_config
2024-03-06 18:17:39.964960081 self.config = user_config.runtime_config(self.plus_api)
2024-03-06 18:17:39.964962507 File "/opt/frigate/frigate/config.py", line 1254, in runtime_config
2024-03-06 18:17:39.964964563 camera_config.motion = RuntimeMotionConfig(
2024-03-06 18:17:39.964977229 File "/opt/frigate/frigate/config.py", line 321, in __init__
2024-03-06 18:17:39.964983303 config["mask"] = create_mask(frame_shape, mask)
2024-03-06 18:17:39.964985803 File "/opt/frigate/frigate/util/image.py", line 674, in create_mask
2024-03-06 18:17:39.964988062 add_mask(m, mask_img)
2024-03-06 18:17:39.964990470 File "/opt/frigate/frigate/util/image.py", line 685, in add_mask
2024-03-06 18:17:39.965114431 [[int(points[i]), int(points[i + 1])] for i in range(0, len(points), 2)]
2024-03-06 18:17:39.965118912 File "/opt/frigate/frigate/util/image.py", line 685, in <listcomp>
2024-03-06 18:17:39.965162301 [[int(points[i]), int(points[i + 1])] for i in range(0, len(points), 2)]
2024-03-06 18:17:39.965165134 IndexError: list index out of range
2024-03-06 18:17:39.965166708
2024-03-06 18:17:39.965169263 *************************************************************
2024-03-06 18:17:39.965171560 *** End Config Validation Errors ***
2024-03-06 18:17:39.965173986 *************************************************************
2024-03-06 18:17:41.543703679 [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-03-06 18:17:41.610119305 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-03-06 18:17:41.701768016 [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-03-06 18:17:41.713232352 exit with signal: terminated
s6-rc: info: service nginx-log successfully stopped
s6-rc: info: service frigate-log successfully stopped
2024-03-06 18:17:41.728490282 [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 stoppedFrigate statsNo response Operating systemHassOS Install methodHassOS Addon Coral versionUSB Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
one of your mask configs is invalid |
Beta Was this translation helpful? Give feedback.
one of your mask configs is invalid