frigate: [EdgeTPU Support]: F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Unknown: USB transfer error 1 [LibUsbDataInCallback] frigate | Fatal Python error: Aborted

Describe the problem you are having

Error message on startup with Coral USB. Frigate starts fine when using CPU instead of TPU. Whether accessed directly or from inside HomeAssistant, Frigate did not seem to be running smoothly. I was also seeing repeating errors in the HA logs re: Frigate could not get stats from /api/stats but I could access /api/stats directly from a browser window. This led to identifying that the Frigate integration devices/entities were cycling online/offline. Basically, cycling the red exclamation point on and off in the entities view in HA. Next step was to update Frigate (to 0.11) which led to seeing the error listed below. I then concluded (erroneously) that the upgrade was an issue, so downgraded back to 0.10 and the error persisted.

I reviewed the information in [Support]: bulk out for header failed. Abort. Unknown: USB transfer error 1 [LibUsbDataOutCallback] #2107 https://github.com/blakeblackshear/frigate/issues/2107 and [EdgeTPU Support]: HandleQueuedBulkIn transfer in failed. Not found: USB transfer error 5 [LibUsbDataInCallback] Fatal Python error: Aborted #3808 https://github.com/blakeblackshear/frigate/issues/3808. However, I believe power supply is not an issue given the PCIe USB board in use (detail below) and the Coral test script runs just fine (detail below).

I did find two other posts which may be of interest and suggest this may be a kernel issue, but the technical depth required to advance on such a solution is beyond my skill set. Here are the posts: Device error: USB transfer error 4 [LibUsbDataInCallback] #423 https://github.com/dorssel/usbipd-win/issues/423#issuecomment-1262851628 and Support Coral USB in WSL2 Docker #623 https://github.com/google-coral/edgetpu/issues/623.

Software environment in broad strokes is three Proxmox servers in a cluster. All operating systems fully updated and current at the time of this submission. Running Home Assistant OS on VHOST1. Running Frigate integration and Frigate NVR Proxy in HA. Running rtsp-simple-server and frigate on VHOST2 (both on Docker inside an LXC container), so camera traffic is going thru rtsp-simple-server to frigate.

Any and all input on how to proceed with troubleshooting would be most welcome. Thanks very much for the excellent application!

Version

0.10.1-8348laf and 0.11.1-2eada21

Frigate config file

# To connect to Mosquitto
mqtt:
  host: 192.168.150.42
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: xxxxxx
  password: xxxxxxxxxxxxxxxxx
  stats_interval: 60
  
database:
  path: /db/frigate.db

logger:
  default: warning
  logs:
    frigate.mqtt: error
    watchdog.lpfront: warning
    watchdog.lpback: warning
    watchdog.lpgarage: warning

# Add the Coral USB device
detectors:
  coral:
    type: edgetpu
    device: usb

timestamp_style:
  position: "tl"
  format: "%m/%d/%Y %H:%M:%S"
  color:
    red: 255
    green: 255
    blue: 255
  thickness: 2

cameras:
  lpnorth:  # <------ Name the camera
    ffmpeg:
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags 
        - +genpts+discardcorrupt
        - -analyzeduration
        - 1000M
        - -probesize
        - 1000M
      inputs:
        - path: rtsp://192.168.150.51:8554/lpnorthlores # <Update per camera; low res
          roles:
            - detect
        - path: rtsp://192.168.150.51:8554/lpnorthhires # <Update per camera; high res
          roles:
            - record
    rtmp:
      enabled: False # <-- RTMP should be disabled if your stream is not H264
    detect:
      enabled: True
      width:  640
      height: 480
      fps: 3
    objects:
      track:
        - person
        - dog
        - bicycle
        - cat
      filters:
        person:
          threshold: 0.5
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 90
        objects:
          person: 90
    record:
      enabled: true
      retain:
        days: 90
        mode: all
      events:
        pre_capture: 8
        post_capture: 15
        retain:
          default: 90
          mode: active_objects

[PLUS SEVEN MORE CAMERAS ALL CONFIGURED THE SAME]

docker-compose file or Docker CLI command

version: "3.9"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: blakeblackshear/frigate:stable
    shm_size: '256mb'
    devices:
      - /dev/bus/usb:/dev/bus/usb
      - /dev/dri/renderD128 # for intel hwaccel
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /root/frigate/config.yml:/config/config.yml:ro
      - /mnt/frigatezfs/frigate:/media/frigate
      - /mnt/frigatezfs/frigate/snapshots:/media/frigate/clips
      - /mnt/frigatezfs/frigate/recordings:/media/frigate/recordings
      - /db:/db
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "1935:1935" # RTMP feeds
    environment:
      FRIGATE_RTSP_PASSWORD: "xxxxxxxxxxxxxxxxxxxxxxxx"

Relevant log output

[FROM V 0.10 shown first, then V 0.11 below]

[V 0.10 - note ERROR return from ws4py - saw this one only once]
Attaching to frigate
frigate  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate  | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate  | [fix-attrs.d] applying ownership & permissions fixes...
frigate  | [fix-attrs.d] done.
frigate  | [cont-init.d] executing container initialization scripts...
frigate  | [cont-init.d] done.
frigate  | [services.d] starting services
frigate  | [services.d] done.
frigate  | [2022-11-29 08:25:52] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
frigate  | Starting migrations
frigate  | [2022-11-29 08:25:52] peewee_migrate                 INFO    : Starting migrations
frigate  | There is nothing to migrate
frigate  | [2022-11-29 08:25:52] peewee_migrate                 INFO    : There is nothing to migrate
frigate  | F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Unknown: USB transfer error 1 [LibUsbDataInCallback]
frigate  | Fatal Python error: Aborted
frigate  | 
frigate  | Thread 0x00007f4b571c3740 (most recent call first):
frigate  |   File "/usr/lib/python3.8/selectors.py", line 415 in select
frigate  |   File "/usr/lib/python3.8/multiprocessing/connection.py", line 931 in wait
frigate  |   File "/usr/lib/python3.8/multiprocessing/connection.py", line 424 in _poll
frigate  |   File "/usr/lib/python3.8/multiprocessing/connection.py", line 257 in poll
frigate  |   File "/usr/lib/python3.8/multiprocessing/queues.py", line 107 in get
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 148 in run_detector
frigate  |   File "/usr/lib/python3.8/multiprocessing/process.py", line 108 in run
frigate  |   File "/usr/lib/python3.8/multiprocessing/process.py", line 315 in _bootstrap
frigate  |   File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75 in _launch
frigate  |   File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19 in __init__
frigate  |   File "/usr/lib/python3.8/multiprocessing/context.py", line 277 in _Popen
frigate  |   File "/usr/lib/python3.8/multiprocessing/context.py", line 224 in _Popen
frigate  |   File "/usr/lib/python3.8/multiprocessing/process.py", line 121 in start
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 221 in start_or_restart
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 190 in __init__
frigate  |   File "/opt/frigate/frigate/app.py", line 197 in start_detectors
frigate  |   File "/opt/frigate/frigate/app.py", line 340 in start
frigate  |   File "/opt/frigate/frigate/__main__.py", line 17 in <module>
frigate  |   File "/usr/lib/python3.8/runpy.py", line 87 in _run_code
frigate  |   File "/usr/lib/python3.8/runpy.py", line 194 in _run_module_as_main
frigate  | [2022-11-29 08:26:22] ws4py                          ERROR   : Failed to receive data
frigate  | Traceback (most recent call last):
frigate  |   File "/usr/local/lib/python3.8/dist-packages/ws4py/websocket.py", line 394, in once
frigate  |     b = self.sock.recv(self.reading_buffer_size)
frigate  | ConnectionResetError: [Errno 104] Connection reset by peer
frigate  | [cont-finish.d] executing container finish scripts...
frigate  | [cont-finish.d] done.
frigate  | [s6-finish] waiting for services.
frigate  | [s6-finish] sending all processes the TERM signal.
frigate  | [s6-finish] sending all processes the KILL signal and exiting.
frigate exited with code 0

[V 0.10 - this is the usual log output]
Attaching to frigate
frigate  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate  | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate  | [fix-attrs.d] applying ownership & permissions fixes...
frigate  | [fix-attrs.d] done.
frigate  | [cont-init.d] executing container initialization scripts...
frigate  | [cont-init.d] done.
frigate  | [services.d] starting services
frigate  | [services.d] done.
frigate  | [2022-11-29 09:51:35] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
frigate  | Starting migrations
frigate  | [2022-11-29 09:51:35] peewee_migrate                 INFO    : Starting migrations
frigate  | There is nothing to migrate
frigate  | [2022-11-29 09:51:35] peewee_migrate                 INFO    : There is nothing to migrate
frigate  | F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Unknown: USB transfer error 1 [LibUsbDataInCallback]
frigate  | Fatal Python error: Aborted
frigate  | 
frigate  | Thread 0x00007f5ad5ea6740 (most recent call first):
frigate  |   File "/usr/lib/python3.8/selectors.py", line 415 in select
frigate  |   File "/usr/lib/python3.8/multiprocessing/connection.py", line 931 in wait
frigate  |   File "/usr/lib/python3.8/multiprocessing/connection.py", line 424 in _poll
frigate  |   File "/usr/lib/python3.8/multiprocessing/connection.py", line 257 in poll
frigate  |   File "/usr/lib/python3.8/multiprocessing/queues.py", line 107 in get
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 148 in run_detector
frigate  |   File "/usr/lib/python3.8/multiprocessing/process.py", line 108 in run
frigate  |   File "/usr/lib/python3.8/multiprocessing/process.py", line 315 in _bootstrap
frigate  |   File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75 in _launch
frigate  |   File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19 in __init__
frigate  |   File "/usr/lib/python3.8/multiprocessing/context.py", line 277 in _Popen
frigate  |   File "/usr/lib/python3.8/multiprocessing/context.py", line 224 in _Popen
frigate  |   File "/usr/lib/python3.8/multiprocessing/process.py", line 121 in start
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 221 in start_or_restart
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 190 in __init__
frigate  |   File "/opt/frigate/frigate/app.py", line 197 in start_detectors
frigate  |   File "/opt/frigate/frigate/app.py", line 340 in start
frigate  |   File "/opt/frigate/frigate/__main__.py", line 17 in <module>
frigate  |   File "/usr/lib/python3.8/runpy.py", line 87 in _run_code
frigate  |   File "/usr/lib/python3.8/runpy.py", line 194 in _run_module_as_main
frigate  | [cont-finish.d] executing container finish scripts...
frigate  | [cont-finish.d] done.
frigate  | [s6-finish] waiting for services.
frigate  | [s6-finish] sending all processes the TERM signal.
frigate  | [s6-finish] sending all processes the KILL signal and exiting.
frigate exited with code 0

[V 0.11 - this is the log output from a fresh install, new db create]
[Included log file to show recurring nature of error/restart]
Attaching to frigate
frigate  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate  | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate  | [fix-attrs.d] applying ownership & permissions fixes...
frigate  | [fix-attrs.d] done.
frigate  | [cont-init.d] executing container initialization scripts...
frigate  | [cont-init.d] done.
frigate  | [services.d] starting services
frigate  | [services.d] done.
frigate  | [2022-11-29 10:02:28] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
frigate  | Starting migrations
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Starting migrations
frigate  | Migrate "001_create_events_table"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "001_create_events_table"
frigate  | sql ('CREATE TABLE IF NOT EXISTS "event" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "label" VARCHAR(20) NOT NULL, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "top_score" REAL NOT NULL, "false_positive" INTEGER NOT NULL, "zones" JSON NOT NULL, "thumbnail" TEXT NOT NULL)',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE TABLE IF NOT EXISTS "event" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "label" VARCHAR(20) NOT NULL, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "top_score" REAL NOT NULL, "false_positive" INTEGER NOT NULL, "zones" JSON NOT NULL, "thumbnail" TEXT NOT NULL)',)
frigate  | sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
frigate  | sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
frigate  | Done 001_create_events_table
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 001_create_events_table
frigate  | Migrate "002_add_clip_snapshot"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "002_add_clip_snapshot"
frigate  | add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
frigate  | add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
frigate  | Done 002_add_clip_snapshot
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 002_add_clip_snapshot
frigate  | Migrate "003_create_recordings_table"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "003_create_recordings_table"
frigate  | sql ('CREATE TABLE IF NOT EXISTS "recordings" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE TABLE IF NOT EXISTS "recordings" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
frigate  | sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
frigate  | sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
frigate  | sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
frigate  | Done 003_create_recordings_table
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 003_create_recordings_table
frigate  | Migrate "004_add_bbox_region_area"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "004_add_bbox_region_area"
frigate  | add_column ('event', 'region', <JSONField: Event.region>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'region', <JSONField: Event.region>)
frigate  | add_column ('event', 'box', <JSONField: Event.box>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'box', <JSONField: Event.box>)
frigate  | add_column ('event', 'area', <IntegerField: Event.area>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'area', <IntegerField: Event.area>)
frigate  | Done 004_add_bbox_region_area
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 004_add_bbox_region_area
frigate  | Migrate "005_make_end_time_nullable"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "005_make_end_time_nullable"
frigate  | drop_not_null ('event', 'end_time')
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : drop_not_null ('event', 'end_time')
frigate  | Done 005_make_end_time_nullable
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 005_make_end_time_nullable
frigate  | Migrate "006_add_motion_active_objects"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "006_add_motion_active_objects"
frigate  | add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
frigate  | add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
frigate  | Done 006_add_motion_active_objects
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 006_add_motion_active_objects
frigate  | Migrate "007_add_retain_indefinitely"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "007_add_retain_indefinitely"
frigate  | add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
frigate  | Done 007_add_retain_indefinitely
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 007_add_retain_indefinitely
frigate  | Migrate "008_add_sub_label"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "008_add_sub_label"
frigate  | add_column ('event', 'sub_label', <CharField: Event.sub_label>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
frigate  | Done 008_add_sub_label
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 008_add_sub_label
frigate  | Migrate "009_add_object_filter_ratio"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "009_add_object_filter_ratio"
frigate  | add_column ('event', 'ratio', <FloatField: Event.ratio>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'ratio', <FloatField: Event.ratio>)
frigate  | Done 009_add_object_filter_ratio
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 009_add_object_filter_ratio
frigate  | Migrate "010_add_plus_image_id"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "010_add_plus_image_id"
frigate  | add_column ('event', 'plus_id', <CharField: Event.plus_id>)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
frigate  | Done 010_add_plus_image_id
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 010_add_plus_image_id
frigate  | Migrate "011_update_indexes"
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Migrate "011_update_indexes"
frigate  | sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
frigate  | sql ('DROP INDEX recordings_start_time_end_time',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('DROP INDEX recordings_start_time_end_time',)
frigate  | sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
frigate  | Done 011_update_indexes
frigate  | [2022-11-29 10:02:28] peewee_migrate                 INFO    : Done 011_update_indexes
frigate  | F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Unknown: USB transfer error 1 [LibUsbDataInCallback]
frigate  | Fatal Python error: Aborted
frigate  | 
frigate  | Thread 0x00007f75863db740 (most recent call first):
frigate  |   File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 936 in wait
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 429 in _poll
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 262 in poll
frigate  |   File "/usr/lib/python3.9/multiprocessing/queues.py", line 113 in get
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 147 in run_detector
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
frigate  |   File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
frigate  |   File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
frigate  |   File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
frigate  |   File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 220 in start_or_restart
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 189 in __init__
frigate  |   File "/opt/frigate/frigate/app.py", line 217 in start_detectors
frigate  |   File "/opt/frigate/frigate/app.py", line 360 in start
frigate  |   File "/opt/frigate/frigate/__main__.py", line 16 in <module>
frigate  |   File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
frigate  |   File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
frigate  | [cont-finish.d] executing container finish scripts...
frigate  | [cont-finish.d] done.
frigate  | [s6-finish] waiting for services.
frigate  | [s6-finish] sending all processes the TERM signal.
frigate  | [s6-finish] sending all processes the KILL signal and exiting.
frigate exited with code 0
frigate  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate  | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate  | [fix-attrs.d] applying ownership & permissions fixes...
frigate  | [fix-attrs.d] done.
frigate  | [cont-init.d] executing container initialization scripts...
frigate  | [cont-init.d] done.
frigate  | [services.d] starting services
frigate  | [services.d] done.
frigate  | [2022-11-29 10:03:04] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
frigate  | Starting migrations
frigate  | [2022-11-29 10:03:04] peewee_migrate                 INFO    : Starting migrations
frigate  | There is nothing to migrate
frigate  | [2022-11-29 10:03:07] peewee_migrate                 INFO    : There is nothing to migrate
frigate  | F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Unknown: USB transfer error 1 [LibUsbDataInCallback]
frigate  | Fatal Python error: Aborted
frigate  | 
frigate  | Thread 0x00007fbecd6c5740 (most recent call first):
frigate  |   File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 936 in wait
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 429 in _poll
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 262 in poll
frigate  |   File "/usr/lib/python3.9/multiprocessing/queues.py", line 113 in get
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 147 in run_detector
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
frigate  |   File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
frigate  |   File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
frigate  |   File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
frigate  |   File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 220 in start_or_restart
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 189 in __init__
frigate  |   File "/opt/frigate/frigate/app.py", line 217 in start_detectors
frigate  |   File "/opt/frigate/frigate/app.py", line 360 in start
frigate  |   File "/opt/frigate/frigate/__main__.py", line 16 in <module>
frigate  |   File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
frigate  |   File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
frigate  | [cont-finish.d] executing container finish scripts...
frigate  | [cont-finish.d] done.
frigate  | [s6-finish] waiting for services.
frigate  | [s6-finish] sending all processes the TERM signal.
frigate  | [s6-finish] sending all processes the KILL signal and exiting.
frigate exited with code 0
frigate  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate  | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate  | [fix-attrs.d] applying ownership & permissions fixes...
frigate  | [fix-attrs.d] done.
frigate  | [cont-init.d] executing container initialization scripts...
frigate  | [cont-init.d] done.
frigate  | [services.d] starting services
frigate  | [services.d] done.
frigate  | [2022-11-29 10:04:12] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
frigate  | Starting migrations
frigate  | [2022-11-29 10:04:12] peewee_migrate                 INFO    : Starting migrations
frigate  | There is nothing to migrate
frigate  | [2022-11-29 10:04:12] peewee_migrate                 INFO    : There is nothing to migrate
frigate  | F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Unknown: USB transfer error 1 [LibUsbDataInCallback]
frigate  | Fatal Python error: Aborted
frigate  | 
frigate  | Thread 0x00007f5475197740 (most recent call first):
frigate  |   File "/usr/lib/python3.9/selectors.py", line 416 in select
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 936 in wait
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 429 in _poll
frigate  |   File "/usr/lib/python3.9/multiprocessing/connection.py", line 262 in poll
frigate  |   File "/usr/lib/python3.9/multiprocessing/queues.py", line 113 in get
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 147 in run_detector
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
frigate  |   File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
frigate  |   File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
frigate  |   File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
frigate  |   File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
frigate  |   File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 220 in start_or_restart
frigate  |   File "/opt/frigate/frigate/edgetpu.py", line 189 in __init__
frigate  |   File "/opt/frigate/frigate/app.py", line 217 in start_detectors
frigate  |   File "/opt/frigate/frigate/app.py", line 360 in start
frigate  |   File "/opt/frigate/frigate/__main__.py", line 16 in <module>
frigate  |   File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
frigate  |   File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
frigate  | [cont-finish.d] executing container finish scripts...
frigate  | [cont-finish.d] done.
frigate  | [s6-finish] waiting for services.
frigate  | [s6-finish] sending all processes the TERM signal.
frigate  | [s6-finish] sending all processes the KILL signal and exiting.
frigate exited with code 0
frigate  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate  | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate  | [fix-attrs.d] applying ownership & permissions fixes...
frigate  | [fix-attrs.d] done.
frigate  | [cont-init.d] executing container initialization scripts...
frigate  | [cont-init.d] done.
frigate  | [services.d] starting services
frigate  | [services.d] done.
frigate  | [2022-11-29 10:04:48] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
frigate  | Starting migrations
frigate  | [2022-11-29 10:04:48] peewee_migrate                 INFO    : Starting migrations
frigate  | There is nothing to migrate
frigate  | [2022-11-29 10:04:49] peewee_migrate                 INFO    : There is nothing to migrate

Operating system

Proxmox

Install method

Docker Compose

Coral version

USB

Any other information that may be helpful

Hardware environment is Dell 9020, i7, 32GB, plenty of storage. The Coral USB is the only device connected to an addon PCI board, a FebSmart 2 Port (FS-U2S-Pro) 5Gbps USB 3.0 PCIe expansion card with a built-in 5V/4A power supply. In theory more than adequate power for the Coral USB should be present.

The Coral USB seems to be rock steady. Output from the test script follows: root@lpfrigate:~/coral/pycoral# python3 examples/classify_image.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels test_data/inat_bird_labels.txt --input test_data/parrot.jpg ----INFERENCE TIME---- Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory. 18.1ms 4.9ms 4.9ms 4.8ms 4.8ms -------RESULTS-------- Ara macao (Scarlet Macaw): 0.75781

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25

Most upvoted comments

This is confirmed still an issue with Raspberry Pi 5 when the Google Coral device is plugged into USB 3.0 port, not the USB 2.0 port. The USB 2.0 ports always work fine.