[Detector Support]: transfer on tag 2 failed. Abort Deadline exceeded: USB transfer error 2 #10872
-
Describe the problem you are havingFrigate worked perfectly for more than a year. Now, frigate is crashing and won't start anymore. I suspect a fault in my coral usb accelerator. I got frigate to run again but it crashed after 3 days. Could the coral accelerator be damaged? Version0.13.2 Frigate config file#has not been changed for a year
mqtt:
host: Censored
port: Censored
user: Censored
password: Censored
cameras:
Eingang:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
inputs:
- path: rtmp://Censored/bcs/channel0_ext.bcs?channel=0&stream=2&user=admin&password=Censored -map 0 -an -dn -flags -global_header
roles:
- detect
- clips
- rtmp
detect:
width: 2560
height: 1920
fps: 5
motion:
mask:
- Censored
- Censored
- Censored
- Censored
objects:
filters:
person:
mask:
- Censored
- Censored
- Censored
Carport:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
inputs:
- path: rtmp://Censored/bcs/channel0_ext.bcs?channel=0&stream=2&user=admin&password=Censored -map 0 -an -dn -flags -global_header
roles:
- detect
- clips
- rtmp
detect:
width: 3840
height: 2160
fps: 10
Weg:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
inputs:
- path: rtmp://Censored/bcs/channel0_ext.bcs?channel=0&stream=2&user=admin&password=Censored -map 0 -an -dn -flags -global_header
roles:
- detect
- clips
- rtmp
detect:
width: 2560
height: 1920
fps: 5
motion:
mask:
- Censored
- Censored
- Censored
- Censored
#objects:
#filters:
#person:
#mask:
Keller:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
inputs:
- path: rtmp://Censored/bcs/channel0_ext.bcs?channel=0&stream=2&user=admin&password=Censored -map 0 -an -dn -flags -global_header
roles:
- detect
- clips
- rtmp
detect:
width: 3840
height: 2160
fps: 5
motion:
mask:
- Censored
Unten:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
inputs:
- path: rtmp://Censored/bcs/channel0_ext.bcs?channel=0&stream=2&user=admin&password=Censored -map 0 -an -dn -flags -global_header
roles:
- detect
- clips
- rtmp
detect:
width: 3840
height: 2160
fps: 5
motion:
birdseye:
enabled: True
mode: objects
objects:
track:
- person
- car
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: Censored
record:
enabled: True
events:
retain:
default: Censored
detectors:
coral:
type: edgetpu
device: usb docker-compose file or Docker CLI command. Relevant log output2024-04-06 20:01:44.586913576 File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
2024-04-06 20:01:44.586938672 File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
2024-04-06 20:01:44.586963718 File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
2024-04-06 20:01:44.586989657 File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
2024-04-06 20:01:44.587014333 File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
2024-04-06 20:01:44.587038148 File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
2024-04-06 20:01:44.587060119 File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
2024-04-06 20:01:44.587087500 File "/opt/frigate/frigate/object_detection.py", line 183 in start_or_restart
2024-04-06 20:01:44.587108469 File "/opt/frigate/frigate/object_detection.py", line 151 in __init__
2024-04-06 20:01:44.587137313 File "/opt/frigate/frigate/app.py", line 453 in start_detectors
2024-04-06 20:01:44.587155697 File "/opt/frigate/frigate/app.py", line 683 in start
2024-04-06 20:01:44.587185272 File "/opt/frigate/frigate/__main__.py", line 17 in <module>
2024-04-06 20:01:44.587209437 File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
2024-04-06 20:01:44.587237920 File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
2024-04-06 20:01:54.055614598 [2024-04-06 22:01:54] frigate.watchdog INFO : Detection appears to be stuck. Restarting detection process...
2024-04-06 20:01:54.070157115 [2024-04-06 22:01:54] detector.coral INFO : Starting detection process: 902
2024-04-06 20:01:57.062123407 [2024-04-06 22:01:54] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2024-04-06 20:01:57.065987978 [2024-04-06 22:01:57] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-04-06 20:02:03.076899454 F driver/usb/usb_driver.cc:857] transfer on tag 2 failed. Abort. Deadline exceeded: USB transfer error 2 [LibUsbDataOutCallback]
2024-04-06 20:02:03.076905033 Fatal Python error: Aborted
2024-04-06 20:02:03.076905905
2024-04-06 20:02:03.076906827 Thread 0x00007fb62affd6c0 (most recent call first):
2024-04-06 20:02:03.076948145 File "/usr/lib/python3.9/threading.py", line 312 in wait
2024-04-06 20:02:03.076985724 File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
2024-04-06 20:02:03.077014378 File "/usr/lib/python3.9/threading.py", line 892 in run
2024-04-06 20:02:03.077050906 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2024-04-06 20:02:03.077081372 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2024-04-06 20:02:03.077097763
2024-04-06 20:02:03.077098444 Thread 0x00007fb62a7fc6c0 (most recent call first):
2024-04-06 20:02:03.077132999 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 833 in invoke
2024-04-06 20:02:03.077182390 File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 60 in detect_raw
2024-04-06 20:02:03.077225682 File "/opt/frigate/frigate/object_detection.py", line 75 in detect_raw
2024-04-06 20:02:03.077270775 File "/opt/frigate/frigate/object_detection.py", line 125 in run_detector
2024-04-06 20:02:03.077312483 File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
2024-04-06 20:02:03.077361725 File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
2024-04-06 20:02:03.077411007 File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
2024-04-06 20:02:03.077484113 File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
2024-04-06 20:02:03.077531391 File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
2024-04-06 20:02:03.077574862 File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
2024-04-06 20:02:03.077618613 File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
2024-04-06 20:02:03.077668105 File "/opt/frigate/frigate/object_detection.py", line 183 in start_or_restart
2024-04-06 20:02:03.077712329 File "/opt/frigate/frigate/watchdog.py", line 34 in run
2024-04-06 20:02:03.077757502 File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2024-04-06 20:02:03.077796635 File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2024-04-06 20:02:04.062940220 [2024-04-06 22:02:04] 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 nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2024-04-06 20:02:04.071026125 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-04-06 20:02:04.102626564 [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
2024-04-06 20:02:04.104699646 [2024-04-06 22:02:04] frigate.app INFO : Stopping...
2024-04-06 20:02:04.105742869 [2024-04-06 22:02:04] frigate.watchdog INFO : Exiting watchdog...
2024-04-06 20:02:04.105902577 [2024-04-06 22:02:04] frigate.storage INFO : Exiting storage maintainer...
2024-04-06 20:02:04.107809891 [2024-04-06 22:02:04] frigate.events.cleanup INFO : Exiting event cleanup...
2024-04-06 20:02:04.107862188 [2024-04-06 22:02:04] frigate.stats INFO : Exiting stats emitter...
2024-04-06 20:02:04.108571249 [2024-04-06 22:02:04] frigate.ptz.autotrack INFO : Exiting autotracker...
2024-04-06 20:02:04.108610783 [2024-04-06 22:02:04] frigate.record.cleanup INFO : Exiting recording cleanup...
s6-rc: info: service nginx-log successfully stopped
2024-04-06 20:02:04.466368552 [2024-04-06 22:02:04] frigate.comms.ws INFO : Exiting websocket client...
2024-04-06 20:02:04.866741172 [2024-04-06 22:02:04] frigate.object_processing INFO : Exiting object processor...
2024-04-06 20:02:05.089330284 [2024-04-06 22:02:05] frigate.events.maintainer INFO : Exiting event processor...
2024-04-06 20:02:05.090033974 [2024-04-06 22:02:05] peewee.sqliteq INFO : writer received shutdown request, exiting.
2024-04-06 20:02:05.091584684 [2024-04-06 22:02:05] watchdog.Weg INFO : Terminating the existing ffmpeg process...
2024-04-06 20:02:05.091718783 [2024-04-06 22:02:05] watchdog.Eingang INFO : Terminating the existing ffmpeg process...
2024-04-06 20:02:05.091981082 [2024-04-06 22:02:05] watchdog.Unten INFO : Terminating the existing ffmpeg process...
2024-04-06 20:02:05.092093472 [2024-04-06 22:02:05] watchdog.Keller INFO : Terminating the existing ffmpeg process...
2024-04-06 20:02:05.092142924 [2024-04-06 22:02:05] watchdog.Eingang INFO : Waiting for ffmpeg to exit gracefully...
2024-04-06 20:02:05.092185634 [2024-04-06 22:02:05] watchdog.Keller INFO : Waiting for ffmpeg to exit gracefully...
2024-04-06 20:02:05.092239233 [2024-04-06 22:02:05] watchdog.Weg INFO : Waiting for ffmpeg to exit gracefully...
2024-04-06 20:02:05.092301219 [2024-04-06 22:02:05] watchdog.Unten INFO : Waiting for ffmpeg to exit gracefully...
2024-04-06 20:02:05.092363145 [2024-04-06 22:02:05] watchdog.Carport INFO : Terminating the existing ffmpeg process...
2024-04-06 20:02:05.092415051 [2024-04-06 22:02:05] watchdog.Carport INFO : Waiting for ffmpeg to exit gracefully...
2024-04-06 20:02:05.888270651 [2024-04-06 22:02:05] frigate.output INFO : exiting output process...
2024-04-06 20:02:09.263694479 /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 20 leaked shared_memory objects to clean up at shutdown
2024-04-06 20:02:09.263698927 warnings.warn('resource_tracker: There appear to be %d '
2024-04-06 20:02:09.266865016 [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-04-06 20:02:09.268826732 exit with signal: terminated
s6-rc: info: service frigate-log successfully stopped
2024-04-06 20:02:09.272374933 [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 Operating systemHassOS Install methodHassOS Addon Coral versionUSB Any other information that may be helpfulI have already tried all USB ports and replaced the USB cable. No change! ##Update 09.04.2024 ## 2024-04-08 17:42:15.648493173 172.30.32.1 - - [08/Apr/2024:19:42:15 +0200] "GET /api/Carport/latest.jpg?h=500 HTTP/1.1" 200 81602 "-" "axios/0.27.2" "-" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have the same issue since yesterday: What I noticed is that the LED on the coral usb accelerator flashes 3 times per second (but I don't know if it did this before). |
Beta Was this translation helpful? Give feedback.
I solved the problem by replacing the usb accelerator with an m.2 accelerator. Probably the usb accelerator was broken.