question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Getting Your config file is not valid! error

See original GitHub issue

Describe the problem you are having

Hi all,

I’m new to HA and frigate, so apologies for the newbie questions.

Ive got MQTT running already for sometime and when I’m trying to run frigate, I’m getting an error that my config is not valid

I’ve posted my frigate.yml below as well as the error from log

Not too sure where I’ve gone wrong here. I’ve got a XVR that’s RSTP capable running on port 554.

Cheers

Version

3.1

Frigate config file

mqtt:
  host: X.X.X.XX
  port: 1883
  user: mqttuser
  password: mymqttpassword
  stats_interval: 60

  cameras:
    back:
      ffmpeg:
        inputs:
          - path: rtsp://username:password@X.X.X.X:554/cam/realmonitor?channel=1&subtype=0
            roles:
              - detect
      detect:
        width: 1280
        height: 720

detectors:
  cpu1:
    type: cpu
  cpu2:
    type: cpu

Relevant log output

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.
[2022-06-09 16:59:42] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
*************************************************************
*************************************************************
***    Your config file is not valid!                     ***
***    Please check the docs at                           ***
***    https://docs.frigate.video/configuration/index     ***
*************************************************************
*************************************************************
***    Config Validation Errors                           ***
*************************************************************
2 validation errors for FrigateConfig
mqtt -> cameras
  extra fields not permitted (type=value_error.extra)
cameras
  field required (type=value_error.missing)
Traceback (most recent call last):
  File "/opt/frigate/frigate/app.py", line 312, in start
    self.init_config()
  File "/opt/frigate/frigate/app.py", line 77, in init_config
    user_config = FrigateConfig.parse_file(config_file)
  File "/opt/frigate/frigate/config.py", line 904, in parse_file
    return cls.parse_obj(config)
  File "pydantic/main.py", line 511, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for FrigateConfig
mqtt -> cameras
  extra fields not permitted (type=value_error.extra)
cameras
  field required (type=value_error.missing)
*************************************************************
***    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.

FFprobe output from your camera

N/A

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Dahua

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
NickM-27commented, Jun 9, 2022

Thanks. seems like I have H.264H and H.264. Any particular one better than the other?

seems like H might stands for High? which I presume better?

and lastly - forgot to say thank you @NickM-27. You’re a star…finally got to the point that I can start playing around with 👍

H.264H is “higher” quality but can have issues as it enables more features. I’d try that first and if frigate doesn’t complain then no big deal.

1reaction
drumstick77commented, Jun 9, 2022

Thanks. seems like I have H.264H and H.264. Any particular one better than the other?

seems like H might stands for High? which I presume better?

and lastly - forgot to say thank you @NickM-27. You’re a star…finally got to the point that I can start playing around with 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to start Frigate add-on but get, "Your config file is not ...
I have been setting up Frigate while reading the official Frigate documentation, but I keep getting an error. I am not very familiar...
Read more >
Error - Invalid Configuration File when trying to initiate a transfer
The error Error - Invalid Configuration File occurs when trying to initiate a transfer. Environment. Product: Enterprise Server Connect Server ...
Read more >
Solved: VMware problem ''not valid configuration file
VMware problem ''not valid configuration file"​​ First of all, hi all. All right it's probably all small problem and i really need it...
Read more >
FIX: The applicationHost.config file may be temporarily ...
File name File version File size Date Time Platform Admwprox.dll 7.0.6001.22329 54,784 13‑Dec‑2008 04:58 x64 Ahadmin.dll 7.0.6001.22329 61,440 13‑Dec‑2008 04:58 x64 Appcmd.exe 7.0.6001.22329 191,488 13‑Dec‑2008 03:22...
Read more >
SSIS Config File Not valid error during the scheduling the ...
Given that your package works fine from BIDS and when you manually execute it, this strongly smells of a permission issue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found