Local realtime person detection for RTSP cameras

It can’t access config

Either problem is mount point is wrong(point to wrong location or bad location) or it not have permission to access folder or files at the location

/srv/usr/config/config.yml:/config/config.yml works

Quick question about hardware requirements. I notice on the recommended hardware list one of the recommendations is a Minisforum GK41. The specs are celeron J4125 processor, 8GB of ram, USB 3.0, and GB Ethernet. Would a box with these specs with the coral usb accelerator likely be enough for 6, 4MP Hikvision cameras + 1 amcrest doorbell cam?

Yes, I’m trying to remember exactly what I did different. I know it was a problem with me putting the wrong location/not really understanding the structure of the linux filesystem properly. If I recall it had actually created a blank folder somewhere I hadn’t expected and was trying to use it as the config file. I know my docker-compose.yaml now has the source: ~/frigate/config.yml

Can’t remember for sure if it was just the ~ that made the difference, but it’s worth a try.

I appreciate your reply and i have tried your suggestion ~/ however this didn’t work for me. I went back to your original post and saw comment this.
`
volumes:

  • type: bind
    source: /frigate/config/config.yml
    target: /config/config.yml`

Did you use this as it is not working for me ? would you be able to share your details of your config.yml file so that i can see the format you achieve to solve this as nobody is respond despite the error 21 is common. I know that my path to the config.yml is the absolute path.
Thanks in advance.

On your host, run the following commands and provide the output here.

ls -lah /frigate/config
cat /frigate/config/config.yml

This the log from my iMac where i am trying to connect to the config.yml file as I am running this container o a mini pc OS Debian in Proxmox. i have created your commands on both PC. Please note i checked the path of my original attempts which are the same as the new directory today shown in log.

total 504
drwxr-xr-x+  69 mike  staff   2.2K  2 Oct 16:23 .
drwxr-xr-x    9 root  admin   288B 28 Sep 06:14 ..
-rw-------    1 mike  staff     7B  5 Oct  2016 .CFUserTextEncoding
-rw-r--r--@   1 mike  staff    38K  2 Oct 16:00 .DS_Store
drwx------    2 mike  staff    64B 10 Nov  2018 .Nuance-OmniPage-CSDK-19.2
drwxrwxrwx@   3 mike  staff    96B 16 Oct  2015 .TemporaryItems
drwx------   17 mike  staff   544B  2 Oct 15:37 .Trash
drwxr-x---    4 mike  staff   128B 20 Nov  2015 .android
drwxr-xr-x   16 mike  staff   512B  2 Oct 14:35 .atom
-rw-r--r--    1 mike  staff    15K  7 May 06:16 .bash_history
-rw-r--r--    1 mike  staff   501B  9 Jan  2016 .bash_profile
-rw-r--r--    1 mike  staff   334B  8 Jan  2016 .bash_profile.pysave
drwx------   34 mike  staff   1.1K 18 Apr 09:39 .bash_sessions
drwxr-xr-x    6 mike  staff   192B 20 May 04:52 .config
drwx------    3 mike  staff    96B 27 Jul  2015 .cups
-rw-r--r--    1 mike  staff     5B 18 Jul  2017 .cur_lang
drwxr-xr-x   12 mike  staff   384B  2 Oct 14:35 .docker
drwx------   14 mike  staff   448B  1 Apr  2021 .dropbox
drwxr-xr-x    3 mike  staff    96B  7 Jan  2016 .idlerc
drwxr-xr-x    4 mike  staff   128B 15 Mar  2018 .jocala
drwxr-xr-x    3 mike  staff    96B 17 Nov  2015 .kodi
drwxr-xr-x   18 mike  staff   576B  2 Apr  2021 .node-red
drwxr-xr-x    7 mike  staff   224B 11 Jul 06:48 .npm
-rw-r--r--    1 mike  staff    43B 13 Jan  2021 .nuuid.ini
drwxr-xr-x   21 mike  staff   672B 20 Sep 09:02 .oh-my-zsh
drwxr-xr-x    9 mike  staff   288B  6 Mar  2021 .patched-sur
-rw-r--r--    1 mike  staff    57K 19 Oct  2018 .pia_manager_crash.log
drwxr-xr-x    9 mike  staff   288B  2 Oct 14:35 .platformio
drwxr-xr-x   12 mike  staff   384B  2 Apr  2021 .pm2
drwx------    4 mike  staff   128B 16 Sep 17:12 .putty
drwxr-xr-x    3 mike  staff    96B 25 Oct  2018 .python-eggs
-rw-------    1 mike  staff    13B 18 Jan  2016 .sh_history
drwx------    5 mike  staff   160B 27 Jul 09:00 .ssh
-rw-r--r--    1 mike  staff   1.4K 13 Aug  2016 .swfinfo
drwxr-xr-x    3 mike  staff    96B 29 Jan  2018 .swt
-rw-------    1 mike  staff    11K 11 May 16:55 .viminfo
drwxr-xr-x    4 mike  staff   128B 29 Apr 10:08 .vscode
-rw-r--r--    1 mike  staff    47K 22 Sep 06:44 .zcompdump-Mike’s-Imac (470)-5.8
-rw-r--r--    1 mike  staff   164B  9 Jun 20:09 .zprofile
-rw-------    1 mike  staff    32K  2 Oct 16:23 .zsh_history
drwx------   46 mike  staff   1.4K  2 Oct 16:19 .zsh_sessions
-rw-r--r--    1 mike  staff   3.6K 14 Apr 16:48 .zshrc
drwx------    6 mike  staff   192B 26 Apr 08:42 Applications
drwx------@   5 mike  staff   160B  7 Sep 20:36 Applications (Parallels)
drwxr-xr-x    5 mike  staff   160B 16 Sep 17:10 Backups
drwx------@  55 mike  staff   1.7K  2 Oct 15:37 Desktop
drwx------@ 118 mike  staff   3.7K  2 Oct 12:06 Documents
drwx------@ 250 mike  staff   7.8K  1 Oct 18:22 Downloads
drwx------@  18 mike  staff   576B 13 Sep 11:11 Dropbox
drwx------@   5 mike  staff   160B 22 Sep 08:31 Google Drive
drwxr-xr-x    9 mike  staff   288B 14 Jun  2016 Kodi Backup
drwx------@  91 mike  staff   2.8K 26 Apr 08:42 Library
drwx------@  10 mike  staff   320B 13 Sep 11:11 Movies
drwx------@  11 mike  staff   352B 13 Sep 11:11 Music
drwx------@  10 mike  staff   320B  8 Mar  2019 OneDrive
drwx------@  12 mike  staff   384B 13 Sep 11:11 Pictures
drwxr-xr-x+   6 mike  staff   192B 28 Mar  2021 Public
drwxr-xr-x+   5 mike  staff   160B 30 Jan  2017 Sites
drwxr-xr-x    5 mike  staff   160B  2 Oct 14:46 docker-compose
-rw-------    1 mike  staff   464B  7 Mar  2021 documents PTA
-rw-r--r--    1 mike  staff   106B  7 Mar  2021 documents PTA.pub
drwxr-xr-x   20 mike  staff   640B 13 Sep 15:02 esptool
drwxr-xr-x    4 mike  staff   128B  2 Oct 16:19 frigate
drwxr-xr-x    2 mike  staff    64B  1 Apr  2021 frigate_media
drwxr-xr-x   18 mike  staff   576B 22 Sep 08:32 getting-started
drwxr-xr-x   17 mike  staff   544B  9 May 05:39 hass_config
drwxr-xr-x    7 mike  staff   224B 30 Mar  2018 iCloud Drive (Archive)
drwx------    6 mike  staff   192B  1 Apr  2021 iCloud Drive (Archive) - 1
drwxr-xr-x    4 mike  staff   128B  9 May 05:36 mosquitto.yaml

I tried the second command CAT and there is no such file or directory ?
Here is logs fro mini PC Proxmox

root@pve:~# ls -lah
total 48K
drwx------  5 root root 4.0K Oct  2 16:02 .
drwxr-xr-x 18 root root 4.0K Sep 26 20:09 ..
-rw-------  1 root root 5.7K Oct  2 16:02 .bash_history
-rw-r--r--  1 root root  571 Apr 10 21:00 .bashrc
-rw-r--r--  1 root root   25 Sep 15 12:39 .forward
drwxr-xr-x  3 root root 4.0K Oct  2 15:48 frigate
drwxr-xr-x  3 root root 4.0K Sep 16 15:45 .local
-rw-r--r--  1 root root  161 Jul  9  2019 .profile
-rw-------  1 root root 1.0K Sep 15 12:40 .rnd
drwxr-xr-x  2 root root 4.0K Sep 15 12:40 .ssh
-rw-r--r--  1 root root  277 Sep 17 08:58 .wget-hsts
root@pve:~# cat /frigate/config/config.yml
cat: /frigate/config/config.yml: No such file or directory
root@pve:~# 

Hope you can help as I am newbie. Thanks

~ is the user home… It means /root/ in such case.
so try /root/frigate/config/config.yml

Thanks for reply & comments.

Just tried ‘root’ and tried ~ this tilda is not accepted in the stack. The path i am trying to connect is my iMac and i still the same result just now. The container is on a mini PC with Proxmox bare metal other containers work fine it is just will not load up from the confi?


Error parsing config: [Errno 21] Is a directory: '/config/config.yml'

 * Starting nginx nginx

   ...done.

Error parsing config: [Errno 21] Is a directory: '/config/config.yml'

 * Starting nginx nginx

   ...done.
 

Check config content now…
cat /root/frigate/config/config.yml

However, you’ll need to copy config on the same place than the container. Otherwise file won’t be available

Hi, I have created the following config.yml thru VS Code ( /frigate/config.yml) on the host, which i believe is the mini Proxmox PC & the iMac. However when i cat /frigate/config.yml it states no such file or directory.
Apologise for asking but where am i going wrong and how do i create & insert into the container?
I have always understood to create the directory and create the file by nano ?

`root@pve:~# ls
frigate
root@pve:~# cd frigate
root@pve:~/frigate# ls
root@pve:~/frigate# nano config.yml
root@pve:~/frigate# cat /frigate/config.yml
cat: /frigate/config.yml: No such file or directory
root@pve:~/frigate# ls
config.yml
root@pve:~/frigate# nano config.yml
root@pve:~/frigate#

This is the same error than above :
~/frigate/ your actual path is NOT the same than /frigate/
So either use the absolute path :
cat /root/frigate/config.yml or still cat ~/frigate/config.yml or the relative one cat ./config.yml
Whenever you need, check your current path with pwd

Thank you,
Now that the cat command shows that i have correct path ( see below) I changed the docker-compose file accordingly and it has running for an hour, however i have this log error in Portainer.

Any ideas ?

 
Error parsing config: 'NoneType' object has no attribute 'get',
 * Starting nginx nginx,
   ...done.,
Error parsing config: 'NoneType' object has no attribute 'get',
 * Starting nginx nginx,
   ...done.,
Error parsing config: 'NoneType' object has no attribute 'get',
 * Starting nginx nginx,
   ...done.,
Error parsing config: 'NoneType' object has no attribute 'get'

Partial copy of config.yml

root@frigatetest:~# cat ~/frigate/config.yml
detectors:
  cpu1:
    type: cpu
  cpu2:
    type: cpu

mqtt:
  host: 192.168.0.74
  user: mikey
  password: mqtt6283

cameras:
  # Reolink
  garage_driveway:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/h264Preview_01_sub
        - roles:
            - detect
            - clips
    #  motion:
    #    mask:
    width: 640
    height: 480
    fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 1
    clips:
      enabled:
      retain:
        default: 1```

Not sure, but is triple ` is part of your file ? Ensure it’s not.

default:1```` is not part of my file typo (coding for reply)

So check every yaml sections, especially those related to version 0.84 or .90 … You can still add this to read debug info

logger:
  default: debug

You are missing the “true” after “enabled:” in your clips section.

1 Like

I have checked my frigate config file (clips issue was a copy error) and i cannot find any misalignments errors , however i am still getting the following errors which i am unable to solve, at least the containers is running and not exiting.


Error parsing config: 'NoneType' object has no attribute 'get'

 * Starting nginx nginx

   ...done.

Error parsing config: 'NoneType' object has no attribute 'get'
detectors:
  cpu1:
    type: cpu
  cpu2:
    type: cpu

mqtt:
  host: 192.168.0.74
  user: mikey
  password: mqtt6283

cameras:
  # Reolink
  garage_driveway:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/h264Preview_01_sub
        - roles:
            - detect
            - clips
    #  motion:
    #    mask:
    width: 640
    height: 480
    fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 1
    clips:
      enabled:
      retain:
        default: 1
  front_driveway:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/h264Preview_01_sub
        - roles:
            - detect
            - clips
    #  motion:
    #    mask:
    width: 640
    height: 480
    fps: 5
    objects:
    track:
      - person
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 1
    clips:
      enabled: true
      retain:
        default: 1
  back_garden:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/h264Preview_01_sub
          roles:
            - detect
            - clips
    width: 640
    height: 480
    fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 1
    clips:
      enabled: true
      retain:
        default: 1
  koi_pond:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]/h264Preview_01_sub
          roles:
            - detect
            - clips
    #  motion:
    #    mask:
    width: 640
    height: 480
    fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 1
    clips:
      enabled: true
      retain:
        default: 1

Double space before track

Still missing true after enabled: in one of the clips sections.