[Bug]: JSON config breaks #16840
Unanswered
PhilipWhiteside
asked this question in
Report a Bug
Replies: 2 comments 8 replies
-
I proceeded to try fixing the JSON config and running it without config migration and it still fails. So perhaps the initial title is bad and it's not related to migration. However, something is wrong with the use of JSON config just after the migration step. I'd still expect the migration to produce JSON with quoted keys and string values. {
"mqtt": {
"enabled": false
},
"cameras": {
"dummy_camera": {
"enabled": false,
"ffmpeg": {
"inputs": [
{
"path": "rtsp://127.0.0.1:554/rtsp",
"roles": [
"detect"
]
}
]
}
}
},
"version": "0.15-1"
}
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Frigate's config parser expects YAML, not JSON. Where did you see that JSON was a valid config format? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
Describe the problem you are having
When using a config.json file the config file is mangled and the container stops.
Steps to reproduce
Version
0.15.0
In which browser(s) are you experiencing the issue with?
No response
Frigate config file
docker-compose file or Docker CLI command
Relevant Frigate log output
Relevant go2rtc log output
go2rtc logs were not split on container output and I don't think it's a go2rtc issue.
Operating system
Other Linux
Install method
Docker CLI
Network connection
Wired
Camera make and model
NA
Screenshots of the Frigate UI's System metrics pages
No UI
Any other information that may be helpful
It works if I try it with a YAML config. The conversion adds
version: 0.15-1
to it. The JSON attempt produces this:I manage the config with NixOS which generates a config.json file which is then read only. I would prefer the output to tell me what config I need to update in addition to trying to update it, so that I can perform the changes manually in my NixOS config. NixOS has a
environment.etc."frigate/config.json".text = builtins.toJSON {..config..}
but no toYAML function.Beta Was this translation helpful? Give feedback.
All reactions