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.

[Config Support]: New to Frigate - can't get it started

See original GitHub issue

Describe the problem you are having

I have a standalone Raspberry Pi 4 (4 GB RAM) that I have set up to be my Frigate server. I’ve installed Frigate with Docker Compose and created a simple configuration file (config.yml) that I put in ~/frigate/config/. I keep getting an error saying that the file config/config.yml doesn’t exist, so I’ve also put this file in /frigate/config/. I have noticed that when trying to start frigate, it generates a directory called config.yml, so I’ve also put my config file within this directory. I’ve also tried navigating to /opt/frigate/frigate/ but nothing exists within the /opt directory.

The documentation says that the config file should be in /config/config.yml within the container directory, but I’m unsure of where the container directory is, if not /frigate/ or ~/frigate/.

Version

N/A

Frigate config file

mqtt:
  host: 192.168.190.2
  user: <home assistant mosquito username> 
  password: <home assistant mosquito password> 

cameras:
  backyard_camera:
    ffmpeg:
      inputs:
        - path: rtsp://<camera username>:<camera password>@192.168.190.178:554/cam/realmonitor?channel=1&subtype=0
          roles:
	    - rtmp

Relevant log output

Starting frigate ... done
Attaching to frigate
frigate    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate    | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate    | [fix-attrs.d] applying ownership & permissions fixes...
frigate    | [fix-attrs.d] done.
frigate    | [cont-init.d] executing container initialization scripts...
frigate    | [cont-init.d] done.
frigate    | [services.d] starting services
frigate    | [services.d] done.
frigate    | *************************************************************
frigate    | *************************************************************
frigate    | ***    Your config file is not valid!                     ***
frigate    | ***    Please check the docs at                           ***
frigate    | ***    https://docs.frigate.video/configuration/index     ***
frigate    | *************************************************************
frigate    | *************************************************************
frigate    | ***    Config Validation Errors                           ***
frigate    | *************************************************************
frigate    | [Errno 2] No such file or directory: '/config/config.yml'
frigate    | [2022-11-27 10:36:16] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
frigate    | Traceback (most recent call last):
frigate    |   File "/opt/frigate/frigate/app.py", line 312, in start
frigate    |     self.init_config()
frigate    |   File "/opt/frigate/frigate/app.py", line 77, in init_config
frigate    |     user_config = FrigateConfig.parse_file(config_file)
frigate    |   File "/opt/frigate/frigate/config.py", line 896, in parse_file
frigate    |     with open(config_file) as f:
frigate    | FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml'
frigate    | 
frigate    | *************************************************************
frigate    | ***    End Config Validation Errors                       ***
frigate    | *************************************************************
frigate    | [cmd] python3 exited 1
frigate    | [cont-finish.d] executing container finish scripts...
frigate    | [cont-finish.d] done.
frigate    | [s6-finish] waiting for services.
frigate    | [s6-finish] sending all processes the TERM signal.
frigate    | [s6-finish] sending all processes the KILL signal and exiting.

Frigate stats

No response

Operating system

Other

Install method

Docker Compose

Coral version

CPU (no coral)

Any other information that may be helpful

Ultimately, I am hoping to connect this stand-alone pi running frigate to a second Pi running home assistant.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Nov 29, 2022

For docker volumes, the left side of the colon is the path to the folder/file on the host machine. The right side of the colon is the path to map to inside the container. Processes running inside containers can’t see files/folders on the host unless you map them. The path on the left can be literally anything, but it needs to be a path to a file, not a folder like you currently have it because the path on the right is a file.

For example, the left side could be the following /media/test/random_folder_name/anything_i_want/frigate_config.yml, or any other place you want to store the config on your host. Doesn’t matter. You just have to map that file to the right location inside the container. If that was the path to your config, the volume mount for the config would look like this:

...
    volumes:
      - /media/test/random_folder_name/anything_i_want/frigate_config.yml:/config/config.yml

I think either of these changes should work because you have a folder named config.yml with a file named config.yml inside it. Remember, map folders to folder paths and files to file paths.

    volumes:
      - /frigate/config.yml:/config
    volumes:
      - /frigate/config:/config
    volumes:
      - /frigate/config/config.yml:/config/config.yml
    volumes:
      - /frigate/config.yml/config.yml:/config/config.yml
0reactions
NickM-27commented, Nov 30, 2022

That’s still the wrong part on the right. If you look at the docs it is

path/to/your/config.yml:/config/config.yml:ro

not /frigate/config.yml

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Config Support]: New to Frigate - can't get it started #3605
Have just installed my first Frigate server on Unraid. Installed the docker via Community Apps. Created a config.yml file and saved to /mnt/user ......
Read more >
Configuration File - Frigate Docs
For Home Assistant Addon installations, the config file needs to be in the root of your Home Assistant config directory (same location as...
Read more >
[SUPPORT] blakeblackshear - Frigate - Page 9
I'm trying to get the new frigate RC4 running and I just can't seem to get it. I pulled that tag and it...
Read more >
Frigate NVR in Home Assistant for Automation and ... - YouTube
I've done several videos on NVR software, MotionEyeOS, Shinobi, etc. But what I've been really looking for is an NVR that could put...
Read more >
Frigate and Home Assistant - YouTube
Frigate and Home Assistant. Watch later. Share. Copy link. Info. Shopping. Tap to unmute. If playback doesn't begin shortly, try restarting ...
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