frigate: [Support]: Could not write config file, be sure that Frigate has write permission on the config file.

Describe the problem you are having

Love the new interface/version 12 with direct config editing support. However, I can’t update via Frigate and must use ssh to edit and update the file.

Obviously, I’m missing something. I don’t have a user named Frigate but I’m assuming it has something to do with file permissions?

Version

0.12.0-DA3E197

Frigate config file

mqtt:
  host: 192.168.178.82
  user: mqtt
  password: haosmqtt

ffmpeg:
  hwaccel_args: preset-intel-qsv-h264

cameras:
  Dining: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://frigate:spyb0t@192.168.178.59:554/play1.sdp # <----- Update for your camera
          roles:
            - detect
            - record
    detect:
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
   
  Garage: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://frigate:spyb0t@192.168.178.36:554/play1.sdp          # <----- Update for your camera
          roles:
            - detect
            - record
    detect:
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
   
  Front-door: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://frigate:spyb0t@192.168.178.28:554/play1.sdp # <----- Update for your camera
          roles:
            - detect
            - record
    detect:
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
    motion:
      mask:
        - 0,127,0,352,226,352,242,327,206,83
        - 640,352,640,218,506,318,356,352,240,331,227,352
    zones:
      entry_doors:
        coordinates: 293,318,513,302,574,63,285,27
             
  Drive-way: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://frigate:spyb0t22!@192.168.178.55:554/h264  # <----- Update for your camera
          roles:
            - detect
            - record
    detect:
      width: 2560 # <---- update for your camera's resolution
      height: 1440 # <---- update for your camera's resolution
    motion:
    zones:
      driveway_area:
        coordinates: 469,117,596,360,226,360,224,115
      front_entrance:
        coordinates: 224,112,463,105,442,0,211,0
      
  Patio: # <------ Name the camera.
    ffmpeg:
      inputs:
        - path: rtsp://frigate:spyb0t22!@192.168.178.74:554/h264  # <----- Update for your camera
          roles:
            - detect
            - record
    detect:
      width: 2560 # <---- update for your camera's resolution
      height: 1440 # <---- update for your camera's resolution
 
detectors:
  coral:
    type: edgetpu
    device: usb
record:
  enabled: True
  events:
    retain:
      default: 10

Relevant log output

None.

FFprobe output from your camera

None

Frigate stats

No response

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Not a camera issue

Any other information that may be helpful

Running on standalone Ubuntu box.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (1 by maintainers)

Most upvoted comments

You may have missed this from the release notes:

NOTE: The previous docker-compose or docker CLI may have had the /config.yml set to :ro or read-only. That will need to be removed for the config editor to be able to save the new file.

Just open the compose file and remove the characters :ro next to the config file location

I am newbie…running frigate in proxmox. can you help how can i remove this :ro ? i can run cd /opt/frigate/config/ to go to config directory which contains config.yml file. when i enter the command ls, i can see config.yml file but how to see that " to and remove :ro?

In your docker-compose.yaml file, remove :ro next to config:

hardware
    volumes:
      - /opt/frigate/config:/config:ro

Save changes, then just restart docker using: docker compose restart

Thanks, I removed the :ro but when i run the docker compose restart i get below error my docker-compose.yaml is inside the /opt directory root@pve:~# cd /opt root@pve:/opt# ls docker-compose.yaml root@pve:/opt# docker-compose restart -bash: docker-compose: command not found root@pve:/opt# docker compose restart -bash: docker: command not found

Same problem, I installed from the guide https://www.homeautomationguy.io/blog/running-frigate-on-proxmox

It looks like you guys are running commands inside the pve shell. Docker-compose commands should only be executed inside the frigate container itself, this is also mentioned in the guide you had linked also.

I suggest you remove everything from the pve node and start fresh, with the steps I have mentioned above.

Just open the compose file and remove the characters :ro next to the config file location

I am newbie…running frigate in proxmox. can you help how can i remove this :ro ? i can run cd /opt/frigate/config/ to go to config directory which contains config.yml file. when i enter the command ls, i can see config.yml file

but how to see that " to and remove :ro?

In your docker-compose.yaml file, remove :ro next to config:

hardware
    volumes:
      - /opt/frigate/config:/config:ro

Save changes, then just restart docker using: docker compose restart