weltenwort / frigate-synology-dsm7

Dockerfile and docker-compose file to enable google coral USB accelerators in containers on Synology DSM 7
MIT License
119 stars 18 forks source link

USB accelerator is normal in MAC test, but ds918plus is connected to USB An error occurred when frigate-synthesis-dsm7 was started on DSM 7.1. #56

Closed siri10086 closed 2 years ago

siri10086 commented 2 years ago

USB accelerator is normal in MAC test, but ds918plus is connected to USB

An error occurred when frigate-synthesis-dsm7 was started on DSM 7.1. Type: CPU can run normally. If you change it to type: edgetpu device: USB, an error occurs. Relevant parameters and logs are as follows

DS918plus DSM 7.1-42661 Update 1 frigate-synthesis-dsm7 v0.11.0-beta5

image

detectors: coral: type: edgetpu device: usb

date stream content
2022-07-18T12:22:39.671062764Z stdout [s6-finish] sending all processes the KILL signal and exiting.
2022-07-18T12:22:36.629981766Z stdout [s6-finish] sending all processes the TERM signal.
2022-07-18T12:22:36.424630358Z stdout [s6-finish] waiting for services.
2022-07-18T12:22:36.423829316Z stdout [cont-finish.d] done.
2022-07-18T12:22:36.423081302Z stdout [cont-finish.d] executing container finish scripts...
2022-07-18T12:22:34.355030664Z stdout [2022-07-18 20:22:34] detector.coral                 INFO    : Starting detection process: 217
2022-07-18T12:22:34.349941425Z stdout [2022-07-18 20:22:34] ws4py                          INFO    : Using epoll
2022-07-18T12:22:34.340698166Z stdout [2022-07-18 20:22:34] frigate.app                    INFO    : Output process started: 218
2022-07-18T12:22:34.309096970Z stdout [2022-07-18 20:22:34] peewee_migrate                 INFO    : There is nothing to migrate
2022-07-18T12:22:34.308911291Z stdout There is nothing to migrate
2022-07-18T12:22:34.298965370Z stdout [2022-07-18 20:22:34] peewee_migrate                 INFO    : Starting migrations
2022-07-18T12:22:34.298734195Z stdout Starting migrations
2022-07-18T12:22:34.226243735Z stdout [2022-07-18 20:22:34] frigate.app                    INFO    : Starting Frigate (0.11.0-ef54cd6)
2022-07-18T12:22:31.402799563Z stdout [services.d] done.
2022-07-18T12:22:31.386422397Z stdout [services.d] starting services
2022-07-18T12:22:31.385326373Z stdout [cont-init.d] done.
2022-07-18T12:22:31.384253675Z stdout [cont-init.d] executing container initialization scripts...
2022-07-18T12:22:31.383127055Z stdout [fix-attrs.d] done.
2022-07-18T12:22:31.382199135Z stdout [fix-attrs.d] applying ownership & permissions fixes...
2022-07-18T12:22:31.380726367Z stdout [s6-init] ensuring user provided files have correct perms...exited 0.
2022-07-18T12:22:31.332846635Z stdout [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2022-07-18T12:22:26.283060104Z stdout [s6-finish] sending all processes the KILL signal and exiting.
2022-07-18T12:22:23.249121383Z stdout [s6-finish] sending all processes the TERM signal.
2022-07-18T12:22:23.020157007Z stdout [s6-finish] waiting for services.
2022-07-18T12:22:23.019535029Z stdout [cont-finish.d] done.
2022-07-18T12:22:23.018488273Z stdout [cont-finish.d] executing container finish scripts...
2022-07-18T12:22:23.017116491Z stdout [2022-07-18 20:22:23] frigate.video                  ERROR   : fristcamera: ffmpeg process is not running. exiting capture thread...
2022-07-18T12:22:23.015518451Z stdout [2022-07-18 20:22:23] frigate.video                  ERROR   : fristcamera: Unable to read frames from ffmpeg process.
2022-07-18T12:22:22.996774149Z stdout [2022-07-18 20:22:22] frigate.video                  ERROR   : ketingcamera: ffmpeg process is not running. exiting capture thread...
2022-07-18T12:22:22.995761498Z stdout [2022-07-18 20:22:22] frigate.video                  ERROR   : ketingcamera: Unable to read frames from ffmpeg process.
2022-07-18T12:22:22.960501899Z stdout [2022-07-18 20:22:22] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting frigate...
2022-07-18T12:22:16.396147061Z stdout  
2022-07-18T12:22:16.396103229Z stdout ValueError: Failed to load delegate from libedgetpu.so.1.0
2022-07-18T12:22:16.396053429Z stdout raise ValueError('Failed to load delegate from {}\n{}'.format(
2022-07-18T12:22:16.396001281Z stdout File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2022-07-18T12:22:16.395953859Z stdout edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2022-07-18T12:22:16.395902929Z stdout File "/opt/frigate/frigate/edgetpu.py", line 43, in init
2022-07-18T12:22:16.395859341Z stdout object_detector = LocalObjectDetector(
2022-07-18T12:22:16.395793017Z stdout File "/opt/frigate/frigate/edgetpu.py", line 135, in run_detector
2022-07-18T12:22:16.395748078Z stdout self._target(*self._args, **self._kwargs)
2022-07-18T12:22:16.395700094Z stdout File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2022-07-18T12:22:16.395657565Z stdout self.run()
2022-07-18T12:22:16.395584309Z stdout File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2022-07-18T12:22:16.395480361Z stdout Traceback (most recent call last):
2022-07-18T12:22:16.395336457Z stdout  
2022-07-18T12:22:16.395280546Z stdout During handling of the above exception, another exception occurred:
2022-07-18T12:22:16.395243705Z stdout  
2022-07-18T12:22:16.395202847Z stdout ValueError
2022-07-18T12:22:16.395155119Z stdout raise ValueError(capture.message)
2022-07-18T12:22:16.395091561Z stdout File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in init
2022-07-18T12:22:16.395043784Z stdout delegate = Delegate(library, options)
2022-07-18T12:22:16.394961089Z stdout File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2022-07-18T12:22:16.394769317Z stdout Traceback (most recent call last):
2022-07-18T12:22:16.392729930Z stdout Process detector:coral:
2022-07-18T12:22:16.391974070Z stdout [2022-07-18 20:22:16] frigate.edgetpu                ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2022-07-18T12:21:52.945388524Z stdout [2022-07-18 20:21:52] ws4py                          INFO    : Using epoll
2022-07-18T12:21:51.345216081Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Capture process started for ketingcamera: 226
2022-07-18T12:21:51.331934375Z stdout [2022-07-18 20:21:51] frigate.edgetpu                INFO    : Attempting to load TPU as usb
2022-07-18T12:21:51.326890153Z stdout [2022-07-18 20:21:51] frigate.mqtt                   INFO    : Turning off detection for ketingcamera via mqtt
2022-07-18T12:21:51.325877437Z stdout [2022-07-18 20:21:51] frigate.mqtt                   INFO    : Turning off snapshots for ketingcamera via mqtt
2022-07-18T12:21:51.321020467Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Capture process started for fristcamera: 224
2022-07-18T12:21:51.310108700Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Camera processor started for ketingcamera: 222
2022-07-18T12:21:51.309269569Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Camera processor started for fristcamera: 219
2022-07-18T12:21:51.301410155Z stdout [2022-07-18 20:21:51] ws4py                          INFO    : Using epoll
2022-07-18T12:21:51.292418509Z stdout [2022-07-18 20:21:51] detector.coral                 INFO    : Starting detection process: 215
2022-07-18T12:21:51.290184145Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Output process started: 216
2022-07-18T12:21:51.259252397Z stdout [2022-07-18 20:21:51] peewee_migrate                 INFO    : There is nothing to migrate
2022-07-18T12:21:51.259009845Z stdout There is nothing to migrate
2022-07-18T12:21:51.248469221Z stdout [2022-07-18 20:21:51] peewee_migrate                 INFO    : Starting migrations
2022-07-18T12:21:51.248279605Z stdout Starting migrations
2022-07-18T12:21:51.242666058Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Creating directory: /tmp/cache
2022-07-18T12:21:51.144849602Z stdout [2022-07-18 20:21:51] frigate.app                    INFO    : Starting Frigate (0.11.0-ef54cd6)
2022-07-18T12:21:42.014667319Z stdout [services.d] done.
2022-07-18T12:21:42.001176376Z stdout [services.d] starting services
2022-07-18T12:21:42.000211683Z stdout [cont-init.d] done.
2022-07-18T12:21:41.999217422Z stdout [cont-init.d] executing container initialization scripts...
2022-07-18T12:21:41.997972996Z stdout [fix-attrs.d] done.
2022-07-18T12:21:41.997038335Z stdout [fix-attrs.d] applying ownership & permissions fixes...
2022-07-18T12:21:41.995458059Z stdout [s6-init] ensuring user provided files have correct perms...exited 0.
2022-07-18T12:21:41.870074330Z stdout [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
siri10086 commented 2 years ago

I reinstalled frigate-syntax-dsm7 and solved it