tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
14.43k stars 2.37k forks source link

Frigate crashes very regularly and restarts by itself #3568

Closed Nilan464 closed 2 months ago

Nilan464 commented 2 months ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

My Frigate 0.14 crashes very regularly and restarts by itself. I have greatly increased the memory and CPU allocations, which has greatly reduced the crashes but it still happens regularly. I can give it more resources but it seems insane to me.

According to the graph it uses very little RAM. Is it normal to use so little RAM with 9 cameras, most of which are in 4K. Is it normal that the SWAP is not used at all?

Capture d’écran 2024-08-22 à 00 19 50

What settings are you currently utilizing?

Default Settings

Which Linux distribution are you employing?

Debian 11

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

System metrics

Capture d’écran 2024-08-22 à 00 46 21

Logs after reboot

[INFO] Preparing Frigate...
[INFO] Starting Frigate...
[2024-08-22 00:12:39] frigate.app                    INFO    : Starting Frigate (0.14.0-)
[2024-08-22 00:12:39] frigate.util.config            INFO    : Checking if frigate config needs migration...
[2024-08-22 00:12:39] frigate.util.config            INFO    : frigate config does not need migration...
[2024-08-22 00:12:39] peewee_migrate.logs            INFO    : Starting migrations
[2024-08-22 00:12:39] peewee_migrate.logs            INFO    : There is nothing to migrate
[2024-08-22 00:12:44] frigate.app                    INFO    : Recording process started: 39721
[2024-08-22 00:12:44] frigate.app                    INFO    : Recording process started: 39725
[2024-08-22 00:12:44] frigate.app                    INFO    : go2rtc process pid: 139
[2024-08-22 00:12:44] detector.coral                 INFO    : Starting detection process: 39782
[2024-08-22 00:12:44] frigate.app                    INFO    : Output process started: 39784
[2024-08-22 00:12:44] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Visiophone: 39801
[2024-08-22 00:12:47] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Cour_1: 39807
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Cour_2: 39812
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Cour_3: 39837
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Cour_4: 39843
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Terrasse: 39853
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Garage_1: 39860
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Chambre_Noam: 39867
[2024-08-22 00:12:44] frigate.app                    INFO    : Camera processor started for Chambre_Ines: 39873
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Visiophone: 39881
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Cour_1: 39891
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Cour_2: 39897
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Cour_3: 39902
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Cour_4: 39910
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Terrasse: 39918
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Garage_1: 39925
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Chambre_Noam: 39931
[2024-08-22 00:12:44] frigate.app                    INFO    : Capture process started for Chambre_Ines: 39938

LXC config file

#<div align='center'><a href='https%3A//Helper-Scripts.com' target='_blank' rel='noopener noreferrer'><img src='https%3A//raw.githubusercontent.c>
#
#  # Frigate LXC
#
#  <a href='https%3A//ko-fi.com/proxmoxhelperscripts'><img src='https%3A//img.shields.io/badge/&#x2615;-Buy me a coffee-blue' /></a>
#  </div>
arch: amd64
cores: 20
features: nesting=1
hostname: frigate
memory: 16384
mp0: frigate:subvol-109-disk-0,mp=/media/frigate,size=3700G
net0: name=eth0,bridge=vmbr1,hwaddr=BC:24:11:C2:F6:5A,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-zfs:subvol-109-disk-0,size=20G
swap: 2048
tags: proxmox-helper-scripts
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/bus/usb/002/ dev/bus/usb/002/ none bind,optional,create=dir 0,0
lxc.cgroup2.devices.allow: c 195:0 rw
lxc.cgroup2.devices.allow: c 195:255 rw
lxc.cgroup2.devices.allow: c 195:254 rw
lxc.cgroup2.devices.allow: c 234:0 rw
lxc.cgroup2.devices.allow: c 234:1 rw
lxc.cgroup2.devices.allow: c 10:144 rw
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-modeset dev/nvidia-modeset none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
lxc.mount.entry: /dev/nvram dev/nvram none bind,optional,create=file