frigate: [Config Support]: Frigate broken and will not start correctly anymore
Describe the problem you are having
I used to have a completely working Frigate install up until the weekend. My NAS died and I had to rebuild it. My NAS is back up and running, but Frigate refuses to start. I don’t believe my NAS has anything to do with it as it only was used to save media (also I can get to my media files to the mounted location on my frigate server). I’ve gone back to the basics and am trying to redo the configuration file and am still getting the same errors, please see log output below. No matter what I do, whether I use my full previously working config or try a minimal config, Frigate outputs those same errors to the logs.
Version
Latest docker image at ghcr.io/blakeblackshear/frigate:stable
Frigate config file
NEW CONFIG FOR TESTING
mqtt:
enabled: False
cameras:
Doorbird: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.1.169:554/mpeg/media.amp # <----- The stream you want to use for detection
roles:
- detect
detect:
enabled: False # <---- disable detection until you have a working camera feed
width: 1280 # <---- update for your camera's resolution
height: 720 # <---- update for your camera's resolution
OLD FULL CONFIG that I've renamed config.yml.OLD
mqtt:
# Required: host name
host: 192.168.1.201
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
#user: mqtt_user
# Optional: password
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
#password: password
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
detectors:
coral:
type: edgetpu
device: usb
# cpu1:
# type: cpu
# cpu2:
# type: cpu
# cpu3:
# type: cpu
# cpu4:
# type: cpu
database:
# The path to store the SQLite DB
path: /db/frigate.db
# Optional: Record configuration
# NOTE: Can be overridden at the camera level
record:
# Optional: Enable recording (default: shown below)
enabled: False
# Optional: Number of days to retain recordings regardless of events (default: shown below)
# NOTE: This should be set to 0 and retention should be defined in events section below
# if you only want to retain recordings of events.
retain:
days: 0
# Optional: Event recording settings
events:
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the retained recordings
# will be the last x seconds of the event unless retain_days under record is > 0.
# Optional: Number of seconds before the event to include (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include (default: shown below)
post_capture: 10
# Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Retention settings for recordings of events
retain:
# Required: Default retention days (default: shown below)
default: 14
# Optional: Object configuration
# NOTE: Can be overridden at the camera level
#objects:
# Optional: list of objects to track from labelmap.txt
# track:
# - person
# - car
ffmpeg:
global_args: -hide_banner -loglevel warning
hwaccel_args: preset-vaapi
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport udp -timeout 5000000 -use_wallclock_as_timestamps 1
output_args:
# Optional: output args for detect streams (default: shown below)
detect: -f rawvideo -pix_fmt yuv420p
# Optional: output args for record streams (default: shown below)
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for rtmp streams (default: shown below)
rtmp: -c copy -f flv
cameras:
Doorbird:
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.1.169:554/mpeg/media.amp
roles:
- detect
- record
# - rtmp
detect:
width: 1280
height: 720
snapshots:
enabled: true
record:
enabled: true
objects:
track:
- person
Driveway:
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.1.179:88/videoMain
roles:
- detect
- record
- rtmp
detect:
width: 1920
height: 1080
snapshots:
enabled: true
record:
enabled: true
objects:
track:
- person
- car
FamilyRoom:
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.1.175:88/videoMain
roles:
- detect
# - rtmp
detect:
width: 1920
height: 1080
objects:
track:
- person
BackDoor:
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.1.177:88/videoMain
roles:
- detect
# - rtmp
detect:
width: 1920
height: 1080
objects:
track:
- person
Relevant log output
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
2023-06-05 11:44:07.549116472 [INFO] Preparing go2rtc config...
2023-06-05 11:44:07.559501219 [INFO] Starting Frigate...
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2023-06-05 11:44:07.563742174 [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2023-06-05 11:44:07.574607661 2023/06/05 11:44:07 [alert] 135#135: pthread_create() failed (1: Operation not permitted)
2023-06-05 11:44:07.575773429 2023/06/05 11:44:07 [alert] 137#137: pthread_create() failed (1: Operation not permitted)
2023-06-05 11:44:07.576483122 2023/06/05 11:44:07 [alert] 138#138: pthread_create() failed (1: Operation not permitted)
2023-06-05 11:44:07.576620383 2023/06/05 11:44:07 [alert] 136#136: pthread_create() failed (1: Operation not permitted)
2023-06-05 11:44:07.619947135 2023/06/05 11:44:07 [alert] 120#120: worker process 135 exited with fatal code 2 and cannot be respawned
2023-06-05 11:44:07.619951717 2023/06/05 11:44:07 [alert] 120#120: worker process 137 exited with fatal code 2 and cannot be respawned
2023-06-05 11:44:07.620216266 2023/06/05 11:44:07 [alert] 120#120: worker process 136 exited with fatal code 2 and cannot be respawned
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 4: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 4: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 4: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 10, in <module>
from frigate.ffmpeg_presets import parse_preset_hardware_acceleration_encode
File "/opt/frigate/frigate/ffmpeg_presets.py", line 10, in <module>
from frigate.util import vainfo_hwaccel
File "/opt/frigate/frigate/util.py", line 19, in <module>
import cv2
File "/usr/local/lib/python3.9/dist-packages/cv2/__init__.py", line 8, in <module>
from .cv2 import *
ImportError: numpy.core.multiarray failed to import
2023-06-05 11:44:07.627946961 2023/06/05 11:44:07 [alert] 120#120: worker process 138 exited with fatal code 2 and cannot be respawned
2023-06-05 11:44:07.635237173 [INFO] The go2rtc service exited with code 1 (by signal 0)
2023-06-05 11:44:07.720608029 OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 4: Operation not permitted
2023-06-05 11:44:07.720614040 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
2023-06-05 11:44:07.720635094 OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 4: Operation not permitted
2023-06-05 11:44:07.720636946 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
2023-06-05 11:44:07.720638888 OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 4: Operation not permitted
2023-06-05 11:44:07.720658496 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
2023-06-05 11:44:07.722293198 Traceback (most recent call last):
2023-06-05 11:44:07.722295779 File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-06-05 11:44:07.722450129 return _run_code(code, main_globals, None,
2023-06-05 11:44:07.722476621 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2023-06-05 11:44:07.722568557 exec(code, run_globals)
2023-06-05 11:44:07.722579062 File "/opt/frigate/frigate/__main__.py", line 9, in <module>
2023-06-05 11:44:07.722638240 from frigate.app import FrigateApp
2023-06-05 11:44:07.722648773 File "/opt/frigate/frigate/app.py", line 17, in <module>
2023-06-05 11:44:07.722703282 from frigate.comms.dispatcher import Communicator, Dispatcher
2023-06-05 11:44:07.722713708 File "/opt/frigate/frigate/comms/dispatcher.py", line 9, in <module>
2023-06-05 11:44:07.722767194 from frigate.config import FrigateConfig
2023-06-05 11:44:07.722777270 File "/opt/frigate/frigate/config.py", line 9, in <module>
2023-06-05 11:44:07.722830635 import matplotlib.pyplot as plt
2023-06-05 11:44:07.722841055 File "/usr/local/lib/python3.9/dist-packages/matplotlib/__init__.py", line 108, in <module>
2023-06-05 11:44:07.722947028 import numpy
2023-06-05 11:44:07.722957384 File "/usr/local/lib/python3.9/dist-packages/numpy/__init__.py", line 144, in <module>
2023-06-05 11:44:07.723068467 from . import core
2023-06-05 11:44:07.723078899 File "/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py", line 23, in <module>
2023-06-05 11:44:07.723136763 from . import multiarray
2023-06-05 11:44:07.723147392 File "/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py", line 10, in <module>
2023-06-05 11:44:07.723203686 from . import overrides
2023-06-05 11:44:07.723214136 File "/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py", line 6, in <module>
2023-06-05 11:44:07.723267301 from numpy.core._multiarray_umath import (
2023-06-05 11:44:07.723277194 KeyboardInterrupt
2023-06-05 11:44:07.753233023 [INFO] Service Frigate exited with code 256 (by signal 2)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2023-06-05 11:44:07.759432057 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-06-05 11:44:07.761337194 [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
s6-rc: info: service nginx-log successfully stopped
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service frigate-log successfully stopped
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Frigate stats
No response
Operating system
Other Linux
Install method
Docker CLI
Coral version
USB
Any other information that may be helpful
Docker command used to create docker, note old and new commands. I noticed that my Frigate wasn’t updating any longer and realized that the docker path changed.
OLD
docker run -d
–name frigate
–restart=unless-stopped
–mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000
–device /dev/bus/usb:/dev/bus/usb
–device /dev/dri/renderD128
–shm-size=256m
-v /home/mnl1121/Frigate/config.yml:/config/config.yml:ro
-v /mnt/nas/frigate:/media/frigate
-v /home/mnl1121/Frigate/:/db
-v /etc/localtime:/etc/localtime:ro
-e FRIGATE_RTSP_PASSWORD=‘password’
-p 5000:5000
-p 1935:1935
blakeblackshear/frigate:stable
NEW
docker run -d
–name frigate
–restart=unless-stopped
–mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000
–device /dev/bus/usb:/dev/bus/usb
–device /dev/dri/renderD128
–shm-size=256m
-v /home/mnl1121/Frigate/config.yml:/config/config.yml:ro
-v /mnt/nas/frigate:/media/frigate
-v /home/mnl1121/Frigate/:/db
-v /etc/localtime:/etc/localtime:ro
-e FRIGATE_RTSP_PASSWORD=‘password’
-p 5000:5000
-p 8554:8554
-p 8555:8555/tcp
-p 8555:8555/udp
ghcr.io/blakeblackshear/frigate:stable
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 33
yes