Closed xAcrosonicx closed 1 year ago
input_args: -tag:v hvc1
this is overwriting many input args that frigate needs to use, I'd suggest removing this line entirely and letting frigate use its default args
Hi Nick,
Thanks for the quick reply! I have gone ahead and removed this from my config and rebooted Frigate, unfortunately the issue persists. See logs for reference:
2023-09-23 02:32:54.622373457 [INFO] Starting Frigate... 2023-09-23 02:32:55.620642983 [2023-09-22 21:32:55] frigate.app INFO : Starting Frigate (0.12.1-367d724) 2023-09-23 02:32:55.641219786 [2023-09-22 21:32:55] frigate.app INFO : Creating directory: /tmp/cache 2023-09-23 02:32:55.641355573 [2023-09-22 21:32:55] peewee_migrate INFO : Starting migrations 2023-09-23 02:32:55.645350583 [2023-09-22 21:32:55] peewee_migrate INFO : There is nothing to migrate 2023-09-23 02:32:55.659378862 [2023-09-22 21:32:55] frigate.app INFO : Output process started: 300 2023-09-23 02:32:55.663136009 [2023-09-22 21:32:55] detector.coral INFO : Starting detection process: 299 2023-09-23 02:32:55.672423485 [2023-09-22 21:32:55] frigate.app INFO : Camera processor started for frontcamera: 308 2023-09-23 02:32:55.673261421 [2023-09-22 21:32:55] frigate.app INFO : Capture process started for frontcamera: 309 2023-09-23 02:32:59.096129328 [2023-09-22 21:32:55] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb 2023-09-23 02:32:59.100746082 [2023-09-22 21:32:59] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found 2023-09-23 02:33:49.790418925 [2023-09-22 21:33:49] frigate.http ERROR : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers 2023-09-23 02:33:49.790422336 built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b) 2023-09-23 02:33:49.790442012 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731 2023-09-23 02:33:49.790443779 libavutil 57. 28.100 / 57. 28.100 2023-09-23 02:33:49.790444827 libavcodec 59. 37.100 / 59. 37.100 2023-09-23 02:33:49.790445828 libavformat 59. 27.100 / 59. 27.100 2023-09-23 02:33:49.790446829 libavdevice 59. 7.100 / 59. 7.100 2023-09-23 02:33:49.790459685 libavfilter 8. 44.100 / 8. 44.100 2023-09-23 02:33:49.790460723 libswscale 6. 7.100 / 6. 7.100 2023-09-23 02:33:49.790461674 libswresample 4. 7.100 / 4. 7.100 2023-09-23 02:33:49.790462602 libpostproc 56. 6.100 / 56. 6.100 2023-09-23 02:33:49.790463997 [concat @ 0x558a62595a80] No files to concat 2023-09-23 02:33:49.790465003 /dev/stdin: Invalid data found when processing input 2023-09-23 02:33:49.790465910
2023-09-23 02:33:51.070506344 [2023-09-22 21:33:51] frigate.record ERROR : Error occurred when attempting to maintain recording cache 2023-09-23 02:33:51.070618118 [2023-09-22 21:33:51] frigate.record ERROR : [Errno 5] Input/output error: '/media/frigate/recordings/2023-09-23' 2023-09-23 02:33:52.171381556 [2023-09-22 21:33:52] frigate.http ERROR : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers 2023-09-23 02:33:52.171385517 built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b) 2023-09-23 02:33:52.171391573 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731 2023-09-23 02:33:52.171392730 libavutil 57. 28.100 / 57. 28.100 2023-09-23 02:33:52.171393796 libavcodec 59. 37.100 / 59. 37.100 2023-09-23 02:33:52.171394734 libavformat 59. 27.100 / 59. 27.100 2023-09-23 02:33:52.171395676 libavdevice 59. 7.100 / 59. 7.100 2023-09-23 02:33:52.171396586 libavfilter 8. 44.100 / 8. 44.100 2023-09-23 02:33:52.171397501 libswscale 6. 7.100 / 6. 7.100 2023-09-23 02:33:52.171398419 libswresample 4. 7.100 / 4. 7.100 2023-09-23 02:33:52.171399332 libpostproc 56. 6.100 / 56. 6.100 2023-09-23 02:33:52.171400285 [concat @ 0x55ee2675aa80] No files to concat 2023-09-23 02:33:52.171401286 /dev/stdin: Invalid data found when processing input 2023-09-23 02:33:52.171402191
2023-09-23 02:33:55.015350961 Exception in thread detected_frames_processor: 2023-09-23 02:33:55.015529848 Traceback (most recent call last): 2023-09-23 02:33:55.015753390 File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner 2023-09-23 02:33:55.016120066 self.run() 2023-09-23 02:33:55.016253045 File "/opt/frigate/frigate/object_processing.py", line 910, in run 2023-09-23 02:33:55.016490766 camera_state.update( 2023-09-23 02:33:55.016529134 File "/opt/frigate/frigate/object_processing.py", line 531, in update 2023-09-23 02:33:55.016767274 c(self.name, removed_obj, frame_time) 2023-09-23 02:33:55.016836646 File "/opt/frigate/frigate/object_processing.py", line 694, in end 2023-09-23 02:33:55.016978510 with open( 2023-09-23 02:33:55.017038525 OSError: [Errno 5] Input/output error: '/media/frigate/clips/frontcamera-1695436423.107706-jcdp8e.jpg' 2023-09-23 02:33:56.058379715 [2023-09-22 21:33:56] frigate.record ERROR : Error occurred when attempting to maintain recording cache 2023-09-23 02:33:56.058383288 [2023-09-22 21:33:56] frigate.record ERROR : [Errno 5] Input/output error: '/media/frigate/recordings/2023-09-23' 2023-09-23 02:34:01.057342993 [2023-09-22 21:34:01] frigate.record ERROR : Error occurred when attempting to maintain recording cache 2023-09-23 02:34:01.057345919 [2023-09-22 21:34:01] frigate.record ERROR : [Errno 5] Input/output error: '/media/frigate/recordings/2023-09-23' 2023-09-23 02:34:06.072365271 [2023-09-22 21:34:06] frigate.record ERROR : Error occurred when attempting to maintain recording cache 2023-09-23 02:34:06.072368134 [2023-09-22 21:34:06] frigate.record ERROR : [Errno 5] Input/output error: '/media/frigate/recordings/2023-09-23' 2023-09-23 02:34:11.000792629 [2023-09-22 21:34:11] frigate.record ERROR : Error occurred when attempting to maintain recording cache 2023-09-23 02:34:11.000795597 [2023-09-22 21:34:11] frigate.record ERROR : [Errno 5] Input/output error: '/media/frigate/recordings/2023-09-23'
it appears this is an error that happens when the volume that is being written to is out of space https://github.com/blakeblackshear/frigate/issues/7577
Interestingly it was reporting that I had ~2TB of space available still. After some troubleshooting I discovered that something had corrupted my frigate folder on my NAS.
I moved the non-Frigate data onto another drive and reformatted everything so I could start fresh and dedicate it to Frigate.
In HA (OS) I stopped frigate, removed my old NAS storage, and rebooted. After ensuring Frigate was not running I removed the frigate database and then went to add the new NAS to HA, but am receiving an error that (to me) appears to be related to the fact that there was a previous frigate mount that it is not able to update/remove and recreate. See attached screenshots, I have even gone as far as removing both the Frigate add-on and integration and rebooting to ensure there was nothing interfering.
To clarify, I am also able to add the exact NAS configuration that I want with any name other than “frigate” (I.e I have it added with “frigate_1” and it works perfectly, and I am able to manually read and write files to it but of course it must be “frigate” to work properly).
Maybe this is something to do with HA OS not removing/updating the old mount point properly?
Have you restarted the HA OS host device? This seems like a supervisor bug, frigate does not control any of this behavior.
Yes, I have also rebooted my host. I’ll close this out since you were correct with your previous comment regarding the storage device being the solution to my original issue and open a request elsewhere since this new issue is not Frigate’s problem.
As always, thanks for all your help!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For anyone who may find this in the future, the issue was resolved in a recent update. I disabled the Frigate add-on, rebooted, updated HA, and then re-enabled the add-on and rebooted one more time.
Describe the problem you are having
Hello,
First of all, I really appreciate all of the hard work and dedication put into this great project! I have been running Frigate for a few months with this exact setup and it has been working flawlessly - nothing in my environment has changed recently. However, as of a few days ago my camera suddenly started crashing (not sending frames to Frigate) anytime it detects any of the objects I specify in my config / when it starts recording. After rebooting the add-on, I am not able to view the recordings/clips in the web UI, or browse to the file(s) for viewing.
Version
0.12.1-367D724
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Network connection
Wired
Camera make and model
Amcrest UltraHD 4K (8MP) Outdoor Security IP Turret PoE Camera
Any other information that may be helpful
I have auto-update enabled, so I am unsure whether or not an update was pushed that could have caused this (unlikely).
After rebooting Frigate, the first detection in one of my zones causes it to crash. The "events" typically shows the snapshot, but cannot replay the footage and the event is still "In Progress" even though the camera is stating "No frames have been received"
There do not appear to be any hardware issues that I can find, Coral and host CPU are not complaining anywhere that I can tell.
I have done the following steps, none of which resolved the issue: