Frigate isn't starting

I can’t get Frigate to start. It seems like this may have started after updating to 2024.8.1 but can’t be sure. Here is my Frigate log.

2024-08-14 17:46:36.778872223  [INFO] Got WebRTC port from supervisor: 8555
2024-08-14 17:46:37.027813090  [INFO] Starting go2rtc...
2024-08-14 17:46:37.094416563  12:46:37.094 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-08-14 17:46:37.094419895  12:46:37.094 INF config path=/dev/shm/go2rtc.yaml
2024-08-14 17:46:37.094631308  12:46:37.094 INF [rtsp] listen addr=:8554
2024-08-14 17:46:37.094681567  12:46:37.094 INF [api] listen addr=:1984
2024-08-14 17:46:37.094718917  12:46:37.094 INF [webrtc] listen addr=:8555/tcp
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2024-08-14 17:46:37.104544514  [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
2024-08-14 17:46:37.151358937  127.0.0.1 - - [14/Aug/2024:12:46:37 -0500] "" 400 0 "-" "-" "-"
2024-08-14 17:46:37.607928939  [2024-08-14 12:46:37] frigate.app                    INFO    : Starting Frigate (0.14.0-da913d8)
2024-08-14 17:46:37.607973185  [2024-08-14 12:46:37] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-08-14 17:46:37.608010331  [2024-08-14 12:46:37] frigate.util.config            INFO    : Checking if frigate config needs migration...
2024-08-14 17:46:37.646394334  [2024-08-14 12:46:37] frigate.util.config            INFO    : frigate config does not need migration...
2024-08-14 17:46:37.666199848  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 0,2160 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666246270  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 986,2160 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666278520  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3461,865 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666308132  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3605,237 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666336225  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 2848,0 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666364762  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 2818,2160 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666391831  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 2970,1931 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666417258  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3212,1494 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666443312  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3359,1181 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666469027  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3481,738 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666493753  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3588,257 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666521785  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3840,252 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666547112  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 3840,2160 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666571922  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 2234,1105 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666596144  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 2376,1269 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666626959  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 1802,1467 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666652107  [2024-08-14 12:46:37] frigate.util.config            ERROR   : Not applying mask due to invalid coordinates. 1682,1239 is outside of the detection resolution 1920x1080. Use the editor in the UI to correct the mask.
2024-08-14 17:46:37.666677610  *************************************************************
2024-08-14 17:46:37.666680298  *************************************************************
2024-08-14 17:46:37.666680893  ***    Your config file is not valid!                     ***
2024-08-14 17:46:37.666681578  ***    Please check the docs at                           ***
2024-08-14 17:46:37.666684352  ***    https://docs.frigate.video/configuration/index     ***
2024-08-14 17:46:37.666684935  *************************************************************
2024-08-14 17:46:37.666685511  *************************************************************
2024-08-14 17:46:37.666689424  ***    Config Validation Errors                           ***
2024-08-14 17:46:37.666690805  *************************************************************
2024-08-14 17:46:37.666694342  could not convert string to float: ''
2024-08-14 17:46:37.667096727  Traceback (most recent call last):
2024-08-14 17:46:37.667097804    File "/opt/frigate/frigate/app.py", line 645, in start
2024-08-14 17:46:37.667098340      self.init_config()
2024-08-14 17:46:37.667098971    File "/opt/frigate/frigate/app.py", line 140, in init_config
2024-08-14 17:46:37.667099525      self.config = user_config.runtime_config(self.plus_api)
2024-08-14 17:46:37.667100201    File "/opt/frigate/frigate/config.py", line 1552, in runtime_config
2024-08-14 17:46:37.667100779      camera_config.objects.filters[object] = RuntimeFilterConfig(
2024-08-14 17:46:37.667110864    File "/opt/frigate/frigate/config.py", line 548, in __init__
2024-08-14 17:46:37.667111645      config["mask"] = create_mask(frame_shape, mask)
2024-08-14 17:46:37.667112270    File "/opt/frigate/frigate/util/image.py", line 723, in create_mask
2024-08-14 17:46:37.667112889      add_mask(m, mask_img)
2024-08-14 17:46:37.667113495    File "/opt/frigate/frigate/util/image.py", line 741, in add_mask
2024-08-14 17:46:37.667127363      [
2024-08-14 17:46:37.667128202    File "/opt/frigate/frigate/util/image.py", line 743, in <listcomp>
2024-08-14 17:46:37.667129309      int(float(points[i]) * mask_img.shape[1]),
2024-08-14 17:46:37.667129980  ValueError: could not convert string to float: ''
2024-08-14 17:46:37.667136639  
2024-08-14 17:46:37.667140819  *************************************************************
2024-08-14 17:46:37.667141740  ***    End Config Validation Errors                       ***
2024-08-14 17:46:37.667142556  *************************************************************
2024-08-14 17:46:38.819145024  [INFO] Service Frigate exited with code 1 (by signal 0)

Any idea how to fix this?

I would manually edit the configuration.yaml and clear all mask sections.

Not sure what version of Frigate you were upgrading from, but there have been some breaking changes, that you will have to modify your config file to get up and working. Take a look here:

Thank you both for the help. Clear the masks was the solution. Looks like they have a new way to create masks using the GUI and I need to re add all of them