frigate: [Support]: Errno 21 Is a directory
Describe the problem you are having
Complete and total newbie here, but I’ve made it this far.
Whenever I run docker-compose up I get:
"Errno 21 Is a Directory: ‘/config/config.yml’
My docker-compose.yml is located at Users/me/Frigate and my config.yml is located at Users/me/Frigate/config. The paths are written as such in the docker-compose.yml file (don’t have access to those files at the moment but can post them later).
I’ve read the threads here with the Errno 21 issue and didn’t get anywhere. It’s a file, not a Directory! I don’t know what I’m doing wrong.
Any suggestions?
Version
Amd64
Frigate config file
Can post later.
Relevant log output
-
FFprobe output from your camera
-
Frigate stats
No response
Operating system
Other
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wireless
Camera make and model
Reolink
Any other information that may be helpful
Ubuntu
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 36 (2 by maintainers)
Ok, I think that clears it up. I’ll tell my brother to check this conversation when he has a chance, and I think he will figure it out from there. Thank you for the quick response @NickM-27 Ill let you know if we run into any issues.
The below worked for me. You have to create config.yaml ahead of time as stated in the setup instructions.
Contents and tree of the root folder for docker compose
root@docker:/home/jeremy/docker/frigate# find . . ./config ./config/config.yaml ./storage ./storage/frigate.db ./storage/clips ./storage/recordings ./docker-compose.yaml
My volumes in the compose file volumes: - /etc/localtime:/etc/localtime:ro - ./config:/config - ./storage:/media/frigate
Using LXC and with the following stack volumes
my config.yml is located in /root/frigate/config.yml
You need to create the path and file on your host before starting the container. If you don’t, docker will create the path assuming you want a directory. That will cause this error. Clean up the directory created by docker then create a file called config.yml instead according to the docs. Then you can start the container.