Frigate starting but crashing

Hi there,

i had it working. activated a record for one more cam, snapshots/detrect was working fine for that cam… since then i have this in the log and frigate crashes.

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service nginx-log successfully started
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 certsync-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
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2024-11-27 07:45:42.715282060  [INFO] Preparing Frigate...
2024-11-27 07:45:42.718563612  [INFO] Preparing new go2rtc config...
2024-11-27 07:45:42.718795526  [INFO] Starting NGINX...
2024-11-27 07:45:42.733145265  [INFO] No TLS certificate found. Generating a self signed certificate...
2024-11-27 07:45:42.733624377  [INFO] Starting Frigate...
2024-11-27 07:45:42.764135166  [INFO] Got IP address from supervisor: 10.101.111.36
2024-11-27 07:45:42.811346753  [INFO] Got WebRTC port from supervisor: 8555
2024-11-27 07:45:43.287389717  [INFO] Starting go2rtc...
2024-11-27 07:45:43.393445546  08:45:43.393 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-11-27 07:45:43.393451758  08:45:43.393 INF config path=/dev/shm/go2rtc.yaml
2024-11-27 07:45:43.394536376  08:45:43.394 INF [api] listen addr=:1984
2024-11-27 07:45:43.394539928  08:45:43.394 INF [rtsp] listen addr=:8554
2024-11-27 07:45:43.395089482  08:45:43.395 INF [webrtc] listen addr=:8555/tcp
2024-11-27 07:45:44.591588103  [2024-11-27 08:45:44] frigate.app                    INFO    : Starting Frigate (0.14.1-f4f3cfa)
2024-11-27 07:45:44.591804978  [2024-11-27 08:45:44] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-11-27 07:45:44.599731712  [2024-11-27 08:45:44] frigate.util.config            INFO    : Checking if frigate config needs migration...
2024-11-27 07:45:44.672787420  [2024-11-27 08:45:44] frigate.util.config            INFO    : frigate config does not need migration...
2024-11-27 07:45:44.751631766  [2024-11-27 08:45:44] frigate.util.services          WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2024-11-27 07:45:45.667575544  [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
2024-11-27 07:45:45.827086728  127.0.0.1 - - [27/Nov/2024:08:45:45 +0100] "" 400 0 "-" "-" "-"
2024-11-27 07:45:47.272340046  2024/11/27 08:45:47 [error] 199#199: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate-fa:5000"
2024-11-27 07:45:47.272347065  2024/11/27 08:45:47 [error] 199#199: *2 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate-fa:5000"
2024-11-27 07:45:47.665779060  2024/11/27 08:45:47 [error] 200#200: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2024-11-27 07:45:47.665826370  2024/11/27 08:45:47 [error] 200#200: *4 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2024-11-27 07:45:50.654678513  [2024-11-27 08:45:50] peewee_migrate.logs            INFO    : Starting migrations
2024-11-27 07:45:50.655953447  [2024-11-27 08:45:50] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-11-27 07:45:50.669375629  [2024-11-27 08:45:50] frigate.app                    INFO    : Recording process started: 511
2024-11-27 07:45:50.669517433  [2024-11-27 08:45:50] frigate.app                    INFO    : Recording process started: 512
2024-11-27 07:45:50.675223264  [2024-11-27 08:45:50] frigate.app                    INFO    : go2rtc process pid: 98
2024-11-27 07:45:50.742276615  [2024-11-27 08:45:50] detector.coral                 INFO    : Starting detection process: 540
2024-11-27 07:45:50.748435924  Process detector:coral:
2024-11-27 07:45:50.749380144  [2024-11-27 08:45:50] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-11-27 07:45:50.749384049  [2024-11-27 08:45:50] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-11-27 07:45:50.750465129  Traceback (most recent call last):
2024-11-27 07:45:50.750512143    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-11-27 07:45:50.750514804      delegate = Delegate(library, options)
2024-11-27 07:45:50.750516862    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-11-27 07:45:50.750518424      raise ValueError(capture.message)
2024-11-27 07:45:50.750559983  ValueError
2024-11-27 07:45:50.750562140  
2024-11-27 07:45:50.750564032  During handling of the above exception, another exception occurred:
2024-11-27 07:45:50.750565465  
2024-11-27 07:45:50.750567034  Traceback (most recent call last):
2024-11-27 07:45:50.750603791    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-11-27 07:45:50.750681776      self.run()
2024-11-27 07:45:50.750683623    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-11-27 07:45:50.750685183      self._target(*self._args, **self._kwargs)
2024-11-27 07:45:50.750686844    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-11-27 07:45:50.750688381      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-11-27 07:45:50.750691716    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-11-27 07:45:50.750720843      self.detect_api = create_detector(detector_config)
2024-11-27 07:45:50.750722940    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-11-27 07:45:50.750724331      return api(detector_config)
2024-11-27 07:45:50.750772167    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-11-27 07:45:50.750774387      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-11-27 07:45:50.750776092    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-11-27 07:45:50.750777477      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-11-27 07:45:50.750778913  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-11-27 07:45:50.750780042  
2024-11-27 07:45:50.755560638  [2024-11-27 08:45:50] frigate.app                    INFO    : Output process started: 542
2024-11-27 07:45:50.795540595  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor not started for disabled camera BK-Flur
2024-11-27 07:45:50.796439328  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor not started for disabled camera BK-WoZi
2024-11-27 07:45:50.822583862  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor started for BK-Terasse: 558
2024-11-27 07:45:50.842226389  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor started for SM-Hof-Nord: 563
2024-11-27 07:45:50.845372880  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor started for SM-Hof-West-Zelt: 570
2024-11-27 07:45:50.878886329  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor started for SM-Buero-OG: 577
2024-11-27 07:45:50.878892374  [2024-11-27 08:45:50] frigate.app                    INFO    : Camera processor started for BK-PhyLink: 585
2024-11-27 07:45:50.878894265  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process not started for disabled camera BK-Flur
2024-11-27 07:45:50.878895988  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process not started for disabled camera BK-WoZi
2024-11-27 07:45:50.899398924  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process started for BK-Terasse: 597
2024-11-27 07:45:50.915652176  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process started for SM-Hof-Nord: 602
2024-11-27 07:45:50.960389776  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process started for SM-Hof-West-Zelt: 607
2024-11-27 07:45:50.968999088  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process started for SM-Buero-OG: 618
2024-11-27 07:45:50.980626957  [2024-11-27 08:45:50] frigate.app                    INFO    : Capture process started for BK-PhyLink: 622
2024-11-27 07:45:52.717494619  [INFO] Starting go2rtc healthcheck service...
2024-11-27 07:46:11.048154685  [2024-11-27 08:46:11] ffmpeg.SM-Buero-OG.record      ERROR   : rtsp://127.0.0.1:8554/SM-Buero-OG: Invalid data found when processing input
2024-11-27 07:46:11.048159910  [2024-11-27 08:46:11] watchdog.SM-Buero-OG           INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:11.048188142  [2024-11-27 08:46:11] watchdog.SM-Buero-OG           INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:11.136918346  [2024-11-27 08:46:11] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service go2rtc-healthcheck: stopping
s6-rc: info: service certsync: stopping
2024-11-27 07:46:11.150908711  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-11-27 07:46:11.153427758  [INFO] Service CERTSYNC exited with code 256 (by signal 15)
s6-rc: info: service certsync successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service certsync-log: stopping
s6-rc: info: service certsync-log successfully stopped
2024-11-27 07:46:11.210894821  [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 nginx-log successfully stopped
2024-11-27 07:46:11.217336131  [2024-11-27 08:46:11] frigate.app                    INFO    : Flask has exited...
2024-11-27 07:46:11.217827295  [2024-11-27 08:46:11] frigate.app                    INFO    : Stopping...
2024-11-27 07:46:11.220833825  [2024-11-27 08:46:11] frigate.ptz.autotrack          INFO    : Exiting autotracker...
2024-11-27 07:46:11.221368345  [2024-11-27 08:46:11] frigate.storage                INFO    : Exiting storage maintainer...
2024-11-27 07:46:11.221934692  [2024-11-27 08:46:11] frigate.events.cleanup         INFO    : Exiting event cleanup...
2024-11-27 07:46:11.222238775  [2024-11-27 08:46:11] frigate.app                    INFO    : Waiting for capture process for BK-Terasse to stop
2024-11-27 07:46:11.222277814  [2024-11-27 08:46:11] frigate.watchdog               INFO    : Exiting watchdog...
2024-11-27 07:46:11.222686201  [2024-11-27 08:46:11] frigate.record.cleanup         INFO    : Exiting recording cleanup...
2024-11-27 07:46:11.222689373  [2024-11-27 08:46:11] watchdog.BK-Terasse            INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:11.223275475  [2024-11-27 08:46:11] frigate.stats.emitter          INFO    : Exiting stats emitter...
2024-11-27 07:46:11.223309445  [2024-11-27 08:46:11] watchdog.BK-Terasse            INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:11.234846319  [2024-11-27 08:46:11] watchdog.BK-Terasse            INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:11.234980536  [2024-11-27 08:46:11] watchdog.BK-Terasse            INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:11.358873755  [2024-11-27 08:46:11] frigate.app                    INFO    : Waiting for capture process for SM-Hof-Nord to stop
2024-11-27 07:46:11.361471153  [2024-11-27 08:46:11] watchdog.SM-Hof-Nord           INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:11.361790558  [2024-11-27 08:46:11] watchdog.SM-Hof-Nord           INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:11.417328166  [2024-11-27 08:46:11] frigate.object_processing      INFO    : Exiting object processor...
2024-11-27 07:46:11.446503088  [2024-11-27 08:46:11] watchdog.SM-Hof-Nord           INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:11.446659942  [2024-11-27 08:46:11] watchdog.SM-Hof-Nord           INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:12.176148823  [2024-11-27 08:46:12] frigate.events.maintainer      INFO    : Exiting event processor...
2024-11-27 07:46:12.532847184  [2024-11-27 08:46:12] frigate.app                    INFO    : Waiting for capture process for SM-Hof-West-Zelt to stop
2024-11-27 07:46:12.535248028  [2024-11-27 08:46:12] watchdog.SM-Hof-West-Zelt      INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:12.535577035  [2024-11-27 08:46:12] watchdog.SM-Hof-West-Zelt      INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:12.581575450  [2024-11-27 08:46:12] watchdog.SM-Hof-West-Zelt      INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:12.581646352  [2024-11-27 08:46:12] watchdog.SM-Hof-West-Zelt      INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:12.608927812  [2024-11-27 08:46:12] frigate.app                    INFO    : Waiting for capture process for SM-Buero-OG to stop
2024-11-27 07:46:12.610056079  [2024-11-27 08:46:12] watchdog.SM-Buero-OG           INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:12.610188165  [2024-11-27 08:46:12] watchdog.SM-Buero-OG           INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:12.627524327  [2024-11-27 08:46:12] watchdog.SM-Buero-OG           INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:12.628202238  [2024-11-27 08:46:12] watchdog.SM-Buero-OG           INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:12.641984397  [2024-11-27 08:46:12] frigate.app                    INFO    : Waiting for capture process for BK-PhyLink to stop
2024-11-27 07:46:12.643285519  [2024-11-27 08:46:12] watchdog.BK-PhyLink            INFO    : Terminating the existing ffmpeg process...
2024-11-27 07:46:12.643789964  [2024-11-27 08:46:12] watchdog.BK-PhyLink            INFO    : Waiting for ffmpeg to exit gracefully...
2024-11-27 07:46:12.715753748  [2024-11-27 08:46:12] frigate.app                    INFO    : Waiting for process for BK-Terasse to stop
2024-11-27 07:46:14.714583965  [2024-11-27 08:46:14] frigate.video                  INFO    : BK-Terasse: emptying frame queue
2024-11-27 07:46:14.714590022  [2024-11-27 08:46:14] frigate.video                  INFO    : BK-Terasse: exiting subprocess
2024-11-27 07:46:14.722845662  [2024-11-27 08:46:14] frigate.app                    INFO    : Closing frame queue for BK-Terasse
2024-11-27 07:46:15.223876260  [2024-11-27 08:46:15] frigate.app                    INFO    : Waiting for process for SM-Hof-Nord to stop
2024-11-27 07:46:15.935635173  [2024-11-27 08:46:15] frigate.video                  INFO    : SM-Hof-Nord: emptying frame queue
2024-11-27 07:46:15.936214667  [2024-11-27 08:46:15] frigate.video                  INFO    : SM-Hof-Nord: exiting subprocess
2024-11-27 07:46:15.943442105  [2024-11-27 08:46:15] frigate.app                    INFO    : Closing frame queue for SM-Hof-Nord
2024-11-27 07:46:16.445382789  [2024-11-27 08:46:16] frigate.app                    INFO    : Waiting for process for SM-Hof-West-Zelt to stop
2024-11-27 07:46:21.245089039  [2024-11-27 08:46:21] frigate.video                  INFO    : SM-Hof-West-Zelt: emptying frame queue
2024-11-27 07:46:21.245690710  [2024-11-27 08:46:21] frigate.video                  INFO    : SM-Hof-West-Zelt: exiting subprocess
2024-11-27 07:46:21.255021912  [2024-11-27 08:46:21] frigate.app                    INFO    : Closing frame queue for SM-Hof-West-Zelt
2024-11-27 07:46:21.756427980  [2024-11-27 08:46:21] frigate.app                    INFO    : Waiting for process for SM-Buero-OG to stop
2024-11-27 07:46:22.446137134  [2024-11-27 08:46:22] frigate.video                  INFO    : SM-Buero-OG: emptying frame queue
2024-11-27 07:46:22.446488100  [2024-11-27 08:46:22] frigate.video                  INFO    : SM-Buero-OG: exiting subprocess
2024-11-27 07:46:22.456228646  [2024-11-27 08:46:22] frigate.app                    INFO    : Closing frame queue for SM-Buero-OG
2024-11-27 07:46:22.957159663  [2024-11-27 08:46:22] frigate.app                    INFO    : Waiting for process for BK-PhyLink to stop
2024-11-27 07:46:26.767826347  [2024-11-27 08:46:26] frigate.video                  INFO    : BK-PhyLink: emptying frame queue
2024-11-27 07:46:26.767921423  [2024-11-27 08:46:26] frigate.video                  INFO    : BK-PhyLink: exiting subprocess
2024-11-27 07:46:26.777171477  [2024-11-27 08:46:26] frigate.app                    INFO    : Closing frame queue for BK-PhyLink
2024-11-27 07:46:27.783474282  [2024-11-27 08:46:27] frigate.app                    INFO    : Detection queue closed
2024-11-27 07:46:28.284865218  [2024-11-27 08:46:28] frigate.app                    INFO    : Detected frames queue closed
2024-11-27 07:46:28.788419160  [2024-11-27 08:46:28] frigate.app                    INFO    : Timeline queue closed
2024-11-27 07:46:30.365794429  [2024-11-27 08:46:30] frigate.output.output          INFO    : exiting output process...
2024-11-27 07:46:30.722534937  [2024-11-27 08:46:30] frigate.record.maintainer      INFO    : Exiting recording maintenance...
2024-11-27 07:46:31.466477266  [2024-11-27 08:46:31] frigate.review.maintainer      INFO    : Exiting review maintainer...
2024-11-27 07:46:31.802550785  [2024-11-27 08:46:31] frigate.comms.ws               INFO    : Exiting websocket client...
2024-11-27 07:46:32.745245832  [2024-11-27 08:46:32] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
2024-11-27 07:46:33.773494828  /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 23 leaked shared_memory objects to clean up at shutdown
2024-11-27 07:46:33.773499698    warnings.warn('resource_tracker: There appear to be %d '
2024-11-27 07:46:33.778123044  [INFO] Service Frigate exited with code 0 (by signal 0)
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
2024-11-27 07:46:33.782089293  exit with signal: terminated
s6-rc: info: service frigate-log successfully stopped
2024-11-27 07:46:33.791109919  [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
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

ideas?

for me it looks like coral is missing, right?
thanks
Manne

This is not the frigate forum.

your right, but well its a HA addon. and here are plenty smart guys with probably similar problems and experiences… and i already have a user account, and asked other frigate questions and got good answers. might have something to do with piping the coral through the docker?

Did you find a fix? Mine started doing the same.