[Support]: Bus error followed by Python exceptions despite 2048mb shm_size and single low-FPS/low-res stream #14340
-
Describe the problem you are havingI have one instance of Frigate running great. I am experimenting with a second instance on completely different hardware. I cannot get this second instance to run for more than a few seconds without crashing with "Bus error", followed by a bunch of Python exceptions. This second instance is a Celeron n5105 (essentially the precursor to the n100) with 32gb RAM. Per the FAQ, the most common cause of "Bus error" crash is due to too little shared memory ( Note that while the OS is Proxmox, I am not running under a container, I am running directly on the host (I initially tried to run under a container, but had the same issue, so I'm trying to remove any unnecessary layers of complexity). IOW, this is essentially an Ubuntu kernel with Debian userspace. In the config below, it is copied from my working instance, but with the following changes:
If I watch Edit: note I added another difference between configs in the bullet list above. I've also tried this hardware with CPU-based openvino detection and no hardware acceleration for ffmpeg. Version0.14.1-f4f3cfa What browser(s) are you using?N/A Frigate config fileversion: 0.14
mqtt:
enabled: false
logger:
default: info
detectors:
ov:
type: openvino
device: GPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
path: /openvino-model/ssdlite_mobilenet_v2.xml
ffmpeg:
hwaccel_args: preset-vaapi
input_args: preset-rtsp-generic
output_args:
record: preset-record-generic
objects:
track:
- person
- dog
- cat
record:
enabled: true
retain:
days: 0
events:
pre_capture: 5
post_capture: 5
retain:
default: 20
mode: active_objects
cameras:
Front_Porch:
ffmpeg:
inputs:
- path: rtsp://user:pass@ip_addr:8554/Front_Porch_Sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://user:pass@ip_addr:8554/Front_Porch_Sub
input_args: preset-rtsp-restream
roles:
- record
detect:
width: 640
height: 480
motion:
mask: 0.426,0.088,0.783,0.083,1,0.641,1,0,0,0,0,0.471
zones:
Front_Porch_Zone:
coordinates: 0.002,0.558,0.454,0.127,0.764,0.121,1,0.707,1,1,0,1
loitering_time: 0
snapshots:
enabled: true
required_zones:
- front_porch_zone Relevant Frigate log outputfrigate | s6-rc: info: service s6rc-fdholder: starting
frigate | s6-rc: info: service s6rc-oneshot-runner: starting
frigate | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate | s6-rc: info: service fix-attrs: starting
frigate | s6-rc: info: service s6rc-fdholder successfully started
frigate | s6-rc: info: service fix-attrs successfully started
frigate | s6-rc: info: service legacy-cont-init: starting
frigate | s6-rc: info: service legacy-cont-init successfully started
frigate | s6-rc: info: service log-prepare: starting
frigate | s6-rc: info: service log-prepare successfully started
frigate | s6-rc: info: service nginx-log: starting
frigate | s6-rc: info: service go2rtc-log: starting
frigate | s6-rc: info: service frigate-log: starting
frigate | s6-rc: info: service certsync-log: starting
frigate | s6-rc: info: service nginx-log successfully started
frigate | s6-rc: info: service go2rtc-log successfully started
frigate | s6-rc: info: service go2rtc: starting
frigate | s6-rc: info: service frigate-log successfully started
frigate | s6-rc: info: service certsync-log successfully started
frigate | s6-rc: info: service go2rtc successfully started
frigate | s6-rc: info: service go2rtc-healthcheck: starting
frigate | s6-rc: info: service frigate: starting
frigate | s6-rc: info: service go2rtc-healthcheck successfully started
frigate | s6-rc: info: service frigate successfully started
frigate | s6-rc: info: service nginx: starting
frigate | 2024-10-14 09:43:56.043606533 [INFO] Preparing Frigate...
frigate | 2024-10-14 09:43:56.046623203 [INFO] Preparing new go2rtc config...
frigate | 2024-10-14 09:43:56.052991798 [INFO] Starting NGINX...
frigate | 2024-10-14 09:43:56.081135469 [INFO] Starting Frigate...
frigate | 2024-10-14 09:43:57.278617943 [INFO] Starting go2rtc...
frigate | s6-rc: info: service nginx successfully started
frigate | s6-rc: info: service certsync: starting
frigate | s6-rc: info: service certsync successfully started
frigate | s6-rc: info: service legacy-services: starting
frigate | 2024-10-14 09:43:57.320224950 [INFO] Starting certsync...
frigate | s6-rc: info: service legacy-services successfully started
frigate | 2024-10-14 09:43:57.650487900 127.0.0.1 - - [14/Oct/2024:09:43:57 -0500] "" 400 0 "-" "-" "-"
frigate | 2024-10-14 09:43:57.739717461 09:43:57.739 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
frigate | 2024-10-14 09:43:57.740630702 09:43:57.739 INF config path=/dev/shm/go2rtc.yaml
frigate | 2024-10-14 09:43:57.743713413 09:43:57.741 INF [rtsp] listen addr=:8554
frigate | 2024-10-14 09:43:57.743725819 09:43:57.742 INF [api] listen addr=:1984
frigate | 2024-10-14 09:43:57.743739378 09:43:57.742 INF [webrtc] listen addr=:8555/tcp
frigate | 2024-10-14 09:44:00.909761877 2024/10/14 09:44:00 [error] 160#160: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 12
7.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"
frigate | 2024-10-14 09:44:00.909780873 2024/10/14 09:44:00 [error] 160#160: *2 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, ser
ver: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
frigate | 2024-10-14 09:44:01.451100087 [2024-10-14 09:44:01] frigate.app INFO : Starting Frigate (0.14.1-f4f3cfa)
frigate | 2024-10-14 09:44:01.502461135 [2024-10-14 09:44:01] frigate.util.config INFO : Checking if frigate config needs migration...
frigate | 2024-10-14 09:44:01.580113257 [2024-10-14 09:44:01] frigate.util.config INFO : frigate config does not need migration...
frigate | 2024-10-14 09:44:01.770118378 [2024-10-14 09:44:01] peewee_migrate.logs INFO : Starting migrations
frigate | 2024-10-14 09:44:01.773936096 [2024-10-14 09:44:01] peewee_migrate.logs INFO : There is nothing to migrate
frigate | 2024-10-14 09:44:01.811575460 [2024-10-14 09:44:01] frigate.app INFO : Recording process started: 348
frigate | 2024-10-14 09:44:01.826951559 [2024-10-14 09:44:01] frigate.app INFO : Recording process started: 349
frigate | 2024-10-14 09:44:01.838718104 [2024-10-14 09:44:01] frigate.app INFO : go2rtc process pid: 96
frigate | 2024-10-14 09:44:01.901270231 [2024-10-14 09:44:01] detector.ov INFO : Starting detection process: 376
frigate | 2024-10-14 09:44:01.912315352 [2024-10-14 09:44:01] frigate.app INFO : Output process started: 378
frigate | 2024-10-14 09:44:02.021087983 [2024-10-14 09:44:02] frigate.app INFO : Camera processor started for Front_Porch: 394
frigate | 2024-10-14 09:44:02.045730831 [2024-10-14 09:44:02] frigate.app INFO : Capture process started for Front_Porch: 397
frigate | 2024-10-14 09:44:06.048690536 [INFO] Starting go2rtc healthcheck service...
frigate | 2024-10-14 09:44:17.014812254 Fatal Python error: Bus error
frigate | 2024-10-14 09:44:17.014825502
frigate | 2024-10-14 09:44:17.014831529 Current thread 0x00007a79a16006c0 (most recent call first):
frigate | 2024-10-14 09:44:17.015053090 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3632 in _set_pragmas
frigate | 2024-10-14 09:44:17.015060074 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3617 in _add_conn_hooks
frigate | 2024-10-14 09:44:17.015255418 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqlite_ext.py", line 1084 in _add_conn_hooks
frigate | 2024-10-14 09:44:17.015477041 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3607 in _connect
frigate | 2024-10-14 09:44:17.015751387 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3263 in connect
frigate | 2024-10-14 09:44:17.016417312 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3311 in cursor
frigate | 2024-10-14 09:44:17.017951249 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3321 in execute_sql
frigate | 2024-10-14 09:44:17.018327470 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 256 in execute_sql
frigate | 2024-10-14 09:44:17.020772846 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3330 in execute
frigate | 2024-10-14 09:44:17.020934099 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 2280 in _execute
frigate | 2024-10-14 09:44:17.023745650 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 2107 in execute
frigate | 2024-10-14 09:44:17.023759227 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 2036 in inner
frigate | 2024-10-14 09:44:17.023764519 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 7275 in __iter__
frigate | 2024-10-14 09:44:17.023778609 File "/opt/frigate/frigate/record/maintainer.py", line 235 in validate_and_move_segment
frigate | 2024-10-14 09:44:17.023854230 File "/usr/lib/python3.9/asyncio/events.py", line 80 in _run
frigate | 2024-10-14 09:44:17.023860258 File "/usr/lib/python3.9/asyncio/base_events.py", line 1890 in _run_once
frigate | 2024-10-14 09:44:17.023866852 File "/usr/lib/python3.9/asyncio/base_events.py", line 596 in run_forever
frigate | 2024-10-14 09:44:17.023871743 File "/usr/lib/python3.9/asyncio/base_events.py", line 629 in run_until_complete
frigate | 2024-10-14 09:44:17.023877468 File "/usr/lib/python3.9/asyncio/runners.py", line 44 in run
frigate | 2024-10-14 09:44:17.023881706 File "/opt/frigate/frigate/record/maintainer.py", line 524 in run
frigate | 2024-10-14 09:44:17.023973062 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:17.023977949 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:17.024035243
frigate | 2024-10-14 09:44:17.024040216 Thread 0x00007a79c56006c0 (most recent call first):
frigate | 2024-10-14 09:44:17.024044109 File "/usr/lib/python3.9/threading.py", line 312 in wait
frigate | 2024-10-14 09:44:17.024048403 File "/usr/lib/python3.9/queue.py", line 171 in get
frigate | 2024-10-14 09:44:17.024052894 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 162 in loop
frigate | 2024-10-14 09:44:17.024057407 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 137 in run
frigate | 2024-10-14 09:44:17.024061675 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 272 in run
frigate | 2024-10-14 09:44:17.024119833 File "/usr/lib/python3.9/threading.py", line 892 in run
frigate | 2024-10-14 09:44:17.024125228 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:17.024129350 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:17.024132938
frigate | 2024-10-14 09:44:17.024136580 Thread 0x00007a79ccbb3740 (most recent call first):
frigate | 2024-10-14 09:44:17.024140672 File "/usr/lib/python3.9/threading.py", line 1428 in _shutdown
frigate | 2024-10-14 09:44:17.028863367 File "/usr/lib/python3.9/multiprocessing/process.py", line 333 in _bootstrap
frigate | 2024-10-14 09:44:17.028875768 File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
frigate | 2024-10-14 09:44:17.028880617 File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
frigate | 2024-10-14 09:44:17.028884809 File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
frigate | 2024-10-14 09:44:17.028888976 File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
frigate | 2024-10-14 09:44:17.028893149 File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
frigate | 2024-10-14 09:44:17.028897238 File "/opt/frigate/frigate/app.py", line 305 in init_recording_manager
frigate | 2024-10-14 09:44:17.028901088 File "/opt/frigate/frigate/app.py", line 679 in start
frigate | 2024-10-14 09:44:17.028904962 File "/opt/frigate/frigate/__main__.py", line 17 in <module>
frigate | 2024-10-14 09:44:17.028908899 File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
frigate | 2024-10-14 09:44:17.028912889 File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
frigate | 2024-10-14 09:44:21.338984534 Fatal Python error: Bus error
frigate | 2024-10-14 09:44:21.338996849
frigate | 2024-10-14 09:44:21.339002214 Current thread 0x00007a795f4006c0 (most recent call first): 09:44:21 [135/9668]
frigate | 2024-10-14 09:44:21.339062880 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3632 in _set_pragmas
frigate | 2024-10-14 09:44:21.339184539 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3617 in _add_conn_hooks
frigate | 2024-10-14 09:44:21.339319451 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqlite_ext.py", line 1084 in _add_conn_hooks
frigate | 2024-10-14 09:44:21.339416864 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3607 in _connect
frigate | 2024-10-14 09:44:21.339516993 File "/usr/local/lib/python3.9/dist-packages/peewee.py", line 3263 in connect
frigate | 2024-10-14 09:44:21.339608210 File "/opt/frigate/frigate/api/app.py", line 74 in _db_connect
frigate | 2024-10-14 09:44:21.340698081 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1253 in preprocess_request
frigate | 2024-10-14 09:44:21.340710472 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 878 in full_dispatch_request
frigate | 2024-10-14 09:44:21.340715937 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1473 in wsgi_app
frigate | 2024-10-14 09:44:21.340721042 File "/usr/local/lib/python3.9/dist-packages/werkzeug/middleware/proxy_fix.py", line 183 in __call__
frigate | 2024-10-14 09:44:21.340725641 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1498 in __call__
frigate | 2024-10-14 09:44:21.340730421 File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 324 in execute
frigate | 2024-10-14 09:44:21.340735117 File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 363 in run_wsgi
frigate | 2024-10-14 09:44:21.340739285 File "/usr/lib/python3.9/http/server.py", line 415 in handle_one_request
frigate | 2024-10-14 09:44:21.340743546 File "/usr/lib/python3.9/http/server.py", line 427 in handle
frigate | 2024-10-14 09:44:21.341209381 File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 391 in handle
frigate | 2024-10-14 09:44:21.341217679 File "/usr/lib/python3.9/socketserver.py", line 720 in __init__
frigate | 2024-10-14 09:44:21.341222026 File "/usr/lib/python3.9/socketserver.py", line 360 in finish_request
frigate | 2024-10-14 09:44:21.341226117 File "/usr/lib/python3.9/socketserver.py", line 650 in process_request_thread
frigate | 2024-10-14 09:44:21.341230089 File "/usr/lib/python3.9/threading.py", line 892 in run
frigate | 2024-10-14 09:44:21.341234396 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.341256456 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.341273954
frigate | 2024-10-14 09:44:21.341277956 Thread 0x00007a7968c006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.341357829 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
frigate | 2024-10-14 09:44:21.341467685 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
frigate | 2024-10-14 09:44:21.341535994 File "/opt/frigate/frigate/watchdog.py", line 22 in run
frigate | 2024-10-14 09:44:21.341625602 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.341727284 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.341731792
frigate | 2024-10-14 09:44:21.341754398 Thread 0x00007a79696006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.341844761 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
frigate | 2024-10-14 09:44:21.341942764 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
frigate | 2024-10-14 09:44:21.342033324 File "/opt/frigate/frigate/record/cleanup.py", line 342 in run
frigate | 2024-10-14 09:44:21.342119868 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.342203303 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.342226076
frigate | 2024-10-14 09:44:21.342230722 Thread 0x00007a796a0006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.342306727 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
frigate | 2024-10-14 09:44:21.342411756 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
frigate | 2024-10-14 09:44:21.342491451 File "/opt/frigate/frigate/events/cleanup.py", line 189 in run
frigate | 2024-10-14 09:44:21.342580720 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.342681474 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.342686945
frigate | 2024-10-14 09:44:21.342711305 Thread 0x00007a796aa006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.342804683 File "/usr/local/lib/python3.9/dist-packages/zmq/sugar/poll.py", line 156 in select
frigate | 2024-10-14 09:44:21.343405512 File "/opt/frigate/frigate/comms/events_updater.py", line 43 in check_for_update
frigate | 2024-10-14 09:44:21.343416123 File "/opt/frigate/frigate/events/maintainer.py", line 74 in run
frigate | 2024-10-14 09:44:21.343421021 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.343425210 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.343428509
frigate | 2024-10-14 09:44:21.343432542 Thread 0x00007a79760006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.343436979 File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate | 2024-10-14 09:44:21.343441771 File "/usr/lib/python3.9/multiprocessing/connection.py", line 936 in wait
frigate | 2024-10-14 09:44:21.343581598 File "/usr/lib/python3.9/multiprocessing/connection.py", line 429 in _poll
frigate | 2024-10-14 09:44:21.343587987 File "/usr/lib/python3.9/multiprocessing/connection.py", line 262 in poll
frigate | 2024-10-14 09:44:21.343681581 File "/usr/lib/python3.9/multiprocessing/queues.py", line 113 in get
frigate | 2024-10-14 09:44:21.343687030 File "/opt/frigate/frigate/timeline.py", line 42 in run
frigate | 2024-10-14 09:44:21.344764101 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.344775950 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.344779497
frigate | 2024-10-14 09:44:21.344783523 Thread 0x00007a7976a006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.344788131 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
frigate | 2024-10-14 09:44:21.344792376 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
frigate | 2024-10-14 09:44:21.344796490 File "/opt/frigate/frigate/stats/emitter.py", line 76 in run
frigate | 2024-10-14 09:44:21.344800775 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.344804954 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.344808060
frigate | 2024-10-14 09:44:21.344811706 Thread 0x00007a79834006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.344815918 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
frigate | 2024-10-14 09:44:21.344820243 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
frigate | 2024-10-14 09:44:21.344824757 File "/opt/frigate/frigate/storage.py", line 213 in run
frigate | 2024-10-14 09:44:21.344829088 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.344833066 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.344836311
frigate | 2024-10-14 09:44:21.344840278 Thread 0x00007a7983e006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.344844473 File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate | 2024-10-14 09:44:21.344975919 File "/usr/lib/python3.9/multiprocessing/connection.py", line 936 in wait
frigate | 2024-10-14 09:44:21.344982596 File "/usr/lib/python3.9/multiprocessing/connection.py", line 429 in _poll
frigate | 2024-10-14 09:44:21.344987008 File "/usr/lib/python3.9/multiprocessing/connection.py", line 262 in poll
frigate | 2024-10-14 09:44:21.345033349 File "/usr/lib/python3.9/multiprocessing/queues.py", line 113 in get
frigate | 2024-10-14 09:44:21.347711459 File "/opt/frigate/frigate/object_processing.py", line 1173 in run
frigate | 2024-10-14 09:44:21.347731518 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.347736883 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.347740334
frigate | 2024-10-14 09:44:21.347744322 Thread 0x00007a799a0006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.347748883 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
frigate | 2024-10-14 09:44:21.347753416 File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
frigate | 2024-10-14 09:44:21.347757536 File "/opt/frigate/frigate/ptz/autotrack.py", line 160 in run
frigate | 2024-10-14 09:44:21.347761873 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.347766072 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.347769041
frigate | 2024-10-14 09:44:21.347776946 Thread 0x00007a799aa006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.347781403 File "/usr/local/lib/python3.9/dist-packages/zmq/sugar/poll.py", line 156 in select
frigate | 2024-10-14 09:44:21.347785518 File "/opt/frigate/frigate/comms/inter_process.py", line 34 in read
frigate | 2024-10-14 09:44:21.347789447 File "/usr/lib/python3.9/threading.py", line 892 in run
frigate | 2024-10-14 09:44:21.347793767 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.347797765 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.347801130
frigate | 2024-10-14 09:44:21.347804956 Thread 0x00007a799b4006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.347809146 File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate | 2024-10-14 09:44:21.347813290 File "/usr/lib/python3.9/socketserver.py", line 232 in serve_forever
frigate | 2024-10-14 09:44:21.347817152 File "/usr/lib/python3.9/threading.py", line 892 in run
frigate | 2024-10-14 09:44:21.347823983 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.347827880 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.347831184
frigate | 2024-10-14 09:44:21.347834730 Thread 0x00007a799be006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.347839479 File "/usr/local/lib/python3.9/dist-packages/ws4py/manager.py", line 141 in poll
frigate | 2024-10-14 09:44:21.347843806 File "/usr/local/lib/python3.9/dist-packages/ws4py/manager.py", line 312 in run
frigate | 2024-10-14 09:44:21.348009889 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.348015569 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.348018737
frigate | 2024-10-14 09:44:21.348022271 Thread 0x00007a79a0c006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.348026376 File "/opt/frigate/frigate/comms/detections_updater.py", line 36 in run
frigate | 2024-10-14 09:44:21.348031597 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.348035842 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.348038995
frigate | 2024-10-14 09:44:21.348042841 Thread 0x00007a79c60006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.348046815 File "/usr/lib/python3.9/threading.py", line 312 in wait
frigate | 2024-10-14 09:44:21.348051118 File "/usr/lib/python3.9/queue.py", line 171 in get
frigate | 2024-10-14 09:44:21.348055383 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 162 in loop
frigate | 2024-10-14 09:44:21.348851977 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 137 in run
frigate | 2024-10-14 09:44:21.349486074 File "/usr/local/lib/python3.9/dist-packages/playhouse/sqliteq.py", line 272 in run
frigate | 2024-10-14 09:44:21.349843904 File "/usr/lib/python3.9/threading.py", line 892 in run
frigate | 2024-10-14 09:44:21.349851388 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.349855586 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.349901532
frigate | 2024-10-14 09:44:21.349905286 Thread 0x00007a79c56006c0 (most recent call first):
frigate | 2024-10-14 09:44:21.349909314 File "/usr/lib/python3.9/threading.py", line 312 in wait
frigate | 2024-10-14 09:44:21.349939348 File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
frigate | 2024-10-14 09:44:21.349943799 File "/usr/lib/python3.9/threading.py", line 892 in run
frigate | 2024-10-14 09:44:21.350205499 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
frigate | 2024-10-14 09:44:21.350211160 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
frigate | 2024-10-14 09:44:21.350214490
frigate | 2024-10-14 09:44:21.350218297 Thread 0x00007a79ccbb3740 (most recent call first):
frigate | 2024-10-14 09:44:21.350222449 File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate | 2024-10-14 09:44:21.350226656 File "/usr/lib/python3.9/socketserver.py", line 232 in serve_forever
frigate | 2024-10-14 09:44:21.350306758 File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 810 in serve_forever
frigate | 2024-10-14 09:44:21.350432464 File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 1116 in run_simple
frigate | 2024-10-14 09:44:21.351228746 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 625 in run
frigate | 2024-10-14 09:44:21.351236231 File "/opt/frigate/frigate/app.py", line 717 in start
frigate | 2024-10-14 09:44:21.351240438 File "/opt/frigate/frigate/__main__.py", line 17 in <module>
frigate | 2024-10-14 09:44:21.351244362 File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
frigate | 2024-10-14 09:44:21.351248401 File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
frigate | 2024-10-14 09:44:21.859907539 2024/10/14 09:44:21 [error] 161#161: *7 upstream prematurely closed connection while reading response header from 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"
frigate | 2024-10-14 09:44:21.860048820 2024/10/14 09:44:21 [error] 161#161: *7 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, ser
ver: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
frigate | 2024-10-14 09:44:22.063547376 [INFO] Service Frigate exited with code 256 (by signal 7)
frigate | s6-rc: info: service legacy-services: stopping
frigate | s6-rc: info: service legacy-services successfully stopped
frigate | s6-rc: info: service go2rtc-healthcheck: stopping
frigate | s6-rc: info: service certsync: stopping
frigate | 2024-10-14 09:44:22.091241419 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
frigate | s6-rc: info: service go2rtc-healthcheck successfully stopped
frigate | 2024-10-14 09:44:22.094690649 [INFO] Service CERTSYNC exited with code 256 (by signal 15)
frigate | s6-rc: info: service certsync successfully stopped
frigate | s6-rc: info: service nginx: stopping
frigate | s6-rc: info: service certsync-log: stopping
frigate | s6-rc: info: service certsync-log successfully stopped
frigate | 2024-10-14 09:44:22.149720199 [INFO] Service NGINX exited with code 0 (by signal 0)
frigate | s6-rc: info: service nginx successfully stopped
frigate | s6-rc: info: service nginx-log: stopping
frigate | s6-rc: info: service frigate: stopping
frigate | s6-rc: info: service frigate successfully stopped
frigate | s6-rc: info: service go2rtc: stopping
frigate | s6-rc: info: service frigate-log: stopping
frigate | s6-rc: info: service nginx-log successfully stopped
frigate | 2024-10-14 09:44:22.164459492 exit with signal: terminated
frigate | s6-rc: info: service frigate-log successfully stopped
frigate | 2024-10-14 09:44:22.182151683 [INFO] The go2rtc service exited with code 0 (by signal 0)
frigate | s6-rc: info: service go2rtc successfully stopped
frigate | s6-rc: info: service go2rtc-log: stopping
frigate | s6-rc: info: service go2rtc-log successfully stopped
frigate | s6-rc: info: service log-prepare: stopping
frigate | s6-rc: info: service s6rc-fdholder: stopping
frigate | s6-rc: info: service log-prepare successfully stopped
frigate | s6-rc: info: service legacy-cont-init: stopping
frigate | s6-rc: info: service s6rc-fdholder successfully stopped
frigate | s6-rc: info: service legacy-cont-init successfully stopped
frigate | s6-rc: info: service fix-attrs: stopping
frigate | s6-rc: info: service fix-attrs successfully stopped
frigate | s6-rc: info: service s6rc-oneshot-runner: stopping
frigate | s6-rc: info: service s6rc-oneshot-runner successfully stopped
(I omitted the rest, as it goes on to try to restart) Relevant go2rtc log outputN/A FFprobe output from your camera# NOTE: this is from my *working* instance, as the new (non-working) instance doesn't run long enough to get a usable shell
# I use this same URL in my working Frigate instance (though with 127.0.0.1) without issue
# I've also tested this URL from VLC
root@fb76b06f9e52:/opt/frigate# ffprobe rtsp://user:pass@ip_addr:8554/Front_Porch_Sub
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
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
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
[rtsp @ 0x563366c24140] method SETUP failed: 461 Unsupported transport
Input #0, rtsp, from 'rtsp://user:pass@ip_addr:8554/Front_Porch_Sub':
Metadata:
title : go2rtc/1.9.2
Duration: N/A, start: 0.200000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv, progressive), 704x480, 5 fps, 5 tbr, 90k tbn Frigate statsN/A Install methodDocker Compose docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "2048mb"
volumes:
- /usr/share/zoneinfo/America/Chicago:/etc/localtime:ro
- /mnt/nfs/frigate-test/config:/config
- /mnt/nfs/frigate-test/media:/media/frigate
- type: tmpfs # reduce ssd wear
target: /tmp/cache
tmpfs:
size: 4294967296 # 4 GB
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card1:/dev/dri/card1 Object DetectorOpenVino Network connectionWired Camera make and modelEmpireTech (Dahua) IPC-B54IR-ZE-S3 Screenshots of the Frigate UI's System metrics pagesN/A Any other information that may be helpfulN/A |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
that's very odd, it would be good to see the contents of /dev/shm when it crashes |
Beta Was this translation helpful? Give feedback.
-
So I wiped this system and installed Alpine Linux, and now everything is working as-expected. Not just the config above, but all four cameras, So it appears there is something wrong with the Intel GPU software stack under Proxmox, at least in regards to the Celeron n5105. |
Beta Was this translation helpful? Give feedback.
So I wiped this system and installed Alpine Linux, and now everything is working as-expected. Not just the config above, but all four cameras,
shm_size
dropped down to 512mb, and recording with the primary (full resolution, high FPS) streams. Total system load is around 0.75 to 0.80 (each of the four cores is hanging around 20% utilization, with a fair amount of ebb and flow). And using only about 10 Watts measured from the wall.So it appears there is something wrong with the Intel GPU software stack under Proxmox, at least in regards to the Celeron n5105.