Problem with frigate in docker on OMV

  • Hi, I'm new to OMV and also docker, and I'm struggling with my Frigate install. Could someone tell me what I'm doing wrong?


    OMV is running fine. I have installed the compose plugin, which also seems fine. I have a dedicated SSD for the docker shared folders (appdata, backup_compose, docker). I've installed Frigate using the example config, adapted for my setup, and that works. I've logged into the web UI for Frigate, and configured my cameras there. Again, that all works.


    However, when I look in the appdata shared folder, I have a config sub-folder but it is empty (the Frigate compose file is there, in the root). The config must exist somewhere - when I edit it in the web UI it says it is being saved. And if I trigger a backup of docker (manually triggering the scheduled task) it brings down Frigate, before it backs up and then pushes Frigate up. If the config was only in RAM I assume it would restart without any of my camera configuration, but it seems fine. However, this means:

    - I don't have any backup of the frigate config (in the backup compose folder it has the modified Frigate compose file, the recordings etc but the backup of the config directory is empty)

    - I can't edit the config.yml for outside of the web UI (not that I care much about that)


    Right now I'm manually taking a copy of the Frigate config out of the web UI in notepad so I can rebuild everything if it goes down. But I assume that's not how it's meant to work.


    I've searched the forum and see that there was a problem in the past where the config directory file path was wrong in the example compose, result in a config folder being created but not a yml file. But that seemed to manifest as Frigate not starting at all. My instance of Frigate works fine. And in any case, my file path seems correct.


    Code
    ${PATH_TO_APPDATA}/frigate/config:/config/config


    Can someone provide some guidance? I assume the yml file must exist somewhere otherwise I wouldn't be able to take Frigate down and bring it back up? But I can't see it, and can't back it up. Maybe I just don't understand how docker works, or Frigate works. Or maybe I've made some rookie error. But this doesn't seem right to me.


    Thanks in advance for any guidance.

  • ${PATH_TO_APPDATA}/frigate/config:/config/config

    I guess there might be an extra /config on the right side of your volume mapping.

    OMV 7.x | 6.8 Proxmox Kernel

    GIGABYTE Z370M DS3H Motherboard

    Intel G4560 CPU | 16G×1 Non-ECC RAM

    128G SSD + 1T SSD + 4T×2 HDD | No RAID

    500W ATX PSU | APC BK650-CH UPS

  • I guess there might be an extra /config on the right side of your volume mapping.

    I just wanted to let you know you are correct. Removing the second config got it all working. Thanks very much for your help. That does mean it's incorrect in the Frigate "add by example" file. How can I get that changed so others don't have the same issue?

    • Official Post

    Indeed. Looking at the Frigate installation page: https://docs.frigate.video/frigate/installation

    And comparing with the code in the plugin example file:

    There seems to be an error in this file.


    I'll mention ryecoaaron here so he can see it when he's active. He's currently unable to access the forum for personal reasons.

    • Official Post

    I don't even know what frigate is. That example was submitted by trythat but it does look like /config is doubled.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I apologize, I'm sure when I submitted the example, I took it from Github, but that was a few versions ago, I'm on beta 16 branch now.


    There have been quite a few breaking changes since I submitted it.


    Rycoarron, if you can provide the list of files I submitted, I'll go and check them against what is recommended now, and change them, make sure I add a date and the original project page..


    Perhaps going forward the submitter can add the date they were submitted, and the project/container page they got them from? Then people can always go to the go the project page and do a sanity check themselves.

    OMV Version 8.latest | AMD Ryzen 5600G with 64GB | JBOD EXT4 & BRTFS

    Various Unifi router & switches | Only Linux laptops and PC's

    • Official Post

    if you can provide the list of files I submitted, I'll go and check them against what is recommended now, and change them, make sure I add a date and the original project page..

    I would have to go back through commit history and look for large group of commits. I don't have time to do that now.

    Perhaps going forward the submitter can add the date they were submitted, and the project/container page they got them from? Then people can always go to the go the project page and do a sanity check themselves.

    The date might be helpful. I have always put the project on the compose files I created - https://github.com/OpenMediaVa…es/firefox/firefox.yml#L2

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I would have to go back through commit history and look for large group of commits. I don't have time to do that now.

    OK, I've found the list and grabbed it, so I can see what I might have sent you. I'll make time to try and go through the list and add dates and try and check against what is the recommendations now, will take me some time though.

    OMV Version 8.latest | AMD Ryzen 5600G with 64GB | JBOD EXT4 & BRTFS

    Various Unifi router & switches | Only Linux laptops and PC's

    Edited once, last by trythat ().

  • see also this discussion:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!