[Config Support]: ValueError: Camera X has a required zone for alerts Y that is not defined. #13265
-
Describe the problem you are havingIn global configuration I've set required_zones for review. Not all cameras include this zone in its configuration. Frigate can't start with this error as below. IMHO, when I set this option globally if specific camera do not include required_zone then it shouldn't be included in alerts|detections, but configuration is OK. BTW..
Version0.14.0 Frigate config filereview:
alerts:
required_zones:
- Y
cameras:
X:
zones:
Z:
coordinates: 772,334,430,313,142,284,144,344,238,354,317,377,449,402,606,412,774,423
W:
zones:
Y:
coordinates: 772,334,430,313,142,284,144,344,238,354,317,377,449,402,606,412,774,423Relevant log outputfrigate | 2024-08-22 12:47:31.407228364 *************************************************************
frigate | 2024-08-22 12:47:31.407232121 *************************************************************
frigate | 2024-08-22 12:47:31.407235898 *** Your config file is not valid! ***
frigate | 2024-08-22 12:47:31.407237271 *** Please check the docs at ***
frigate | 2024-08-22 12:47:31.407238082 *** https://docs.frigate.video/configuration/index ***
frigate | 2024-08-22 12:47:31.407239184 *************************************************************
frigate | 2024-08-22 12:47:31.407239806 *************************************************************
frigate | 2024-08-22 12:47:31.407257719 *** Config Validation Errors ***
frigate | 2024-08-22 12:47:31.407258501 *************************************************************
frigate | 2024-08-22 12:47:31.407259122 Camera tablet has a required zone for alerts podjazd that is not defined.
frigate | 2024-08-22 12:47:31.407727557 Traceback (most recent call last):
frigate | 2024-08-22 12:47:31.407729080 File "/opt/frigate/frigate/app.py", line 645, in start
frigate | 2024-08-22 12:47:31.407729851 self.init_config()
frigate | 2024-08-22 12:47:31.407730442 File "/opt/frigate/frigate/app.py", line 140, in init_config
frigate | 2024-08-22 12:47:31.407730923 self.config = user_config.runtime_config(self.plus_api)
frigate | 2024-08-22 12:47:31.407731454 File "/opt/frigate/frigate/config.py", line 1584, in runtime_config
frigate | 2024-08-22 12:47:31.407731925 verify_required_zones_exist(camera_config)
frigate | 2024-08-22 12:47:31.407732426 File "/opt/frigate/frigate/config.py", line 1291, in verify_required_zones_exist
frigate | 2024-08-22 12:47:31.407732857 raise ValueError(
frigate | 2024-08-22 12:47:31.407733348 ValueError: Camera X has a required zone for alerts Y that is not defined.
frigate | 2024-08-22 12:47:31.407733779
frigate | 2024-08-22 12:47:31.407734280 *************************************************************
frigate | 2024-08-22 12:47:31.407734760 *** End Config Validation Errors ***
frigate | 2024-08-22 12:47:31.407735562 *************************************************************
frigate | 2024-08-22 12:47:32.034953842 [INFO] Service Frigate exited with code 1 (by signal 0)Frigate statsNo response Operating systemOther Linux Install methodDocker Compose Object DetectorCoral Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
This is covered in the FAQ. Upgrade issues question 7. |
Beta Was this translation helpful? Give feedback.
-
|
It is not after upgrade. I've followed https://docs.frigate.video/configuration/reference - global "review" section. I've just added this section to my configuration. for every one camera now? This is what global option seams to be made for! Please think about such behaviour. If I can't put here zone name that is not in all my cameras, please document it somewhere. This is not related to upgrading at all. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I do understand this. I just don't agree that this is logical in design then. Please rethink it again maybe. |
Beta Was this translation helpful? Give feedback.
#13269