[SUPPORT] blakeblackshear - Frigate


Recommended Posts

10 hours ago, jbrukardt said:

Im really struggling with maintaining a clean config.yml for this.   Is anyone aware of a script or application that will generate a basic config.yml based upon inputs?   

 

Its works, but its super-ugly, and yaml tab and spacing requirements is killing me.  

 

Here are my basic desires:

 

Specs: 8 4k cameras, 7 1080p cameras

 

0) Feed events to mqtt

1) Use my coral

2) Use quicksync for ffmpeg decode to reduce cpu use

3) Detect vehicles, cats, people

4) Detect on 1080P substreams of each camera at 5fps

5) Record clips at native full-stream resolution for playback

6) Record 24/7 in addition to a different location.   

There is not, you must follow the instructions of the docs, you can use the example as a template.

Link to comment
  • 3 weeks later...

Upgraded my server to 6.10 RC3 but it appears that this docker is not compatible-

 

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-03-12 11:52:21] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
Starting migrations
[2022-03-12 11:52:21] peewee_migrate                 INFO    : Starting migrations
database or disk is full
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

** Press ANY KEY to close this window ** 

 

 

 

brunnhilde-diagnostics-20220312-1157.zip

Link to comment
38 minutes ago, wgstarks said:

Upgraded my server to 6.10 RC3 but it appears that this docker is not compatible-

 

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-03-12 11:52:21] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
Starting migrations
[2022-03-12 11:52:21] peewee_migrate                 INFO    : Starting migrations
database or disk is full
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

** Press ANY KEY to close this window ** 

 

 

 

brunnhilde-diagnostics-20220312-1157.zip 184.74 kB · 0 downloads

Disregard.

 

Looks like the WD purple that I'm using for Frigate failed to auto-mount in UD. After I mounted it everything is working.

Link to comment

Hi Guys, I'm new to both Unraid and Frigate.  I'm running Home Assistant Core as a docker container on Unraid, and I'm not following this instruction from the Frigate website:

 

For all other installation types, the config file should be mapped to /config/config.yml inside the container.For all other installation types, the config file should be mapped to /config/config.yml inside the container.

 

I'm sure it's just a simple thing, but I can't figure out what is meant by /config in terms of my Unraid setup.  All of my docker containers (Home Assistant, Mosquitto broker, Frigate, Node Red) all have folders under UNRAID/appdata/ (see image below).  I assume that I should be creating frigate/config/config.yml, but when I do this, the logs make it look like the file isn't being seen by Frigate:

 

ErrorWarningSystemArrayLogin


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
[Errno 2] No such file or directory: '/config/config.yml'
[2022-03-15 14:02:58] frigate.app INFO : Starting Frigate (0.10.1-83481af)
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 312, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 77, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 896, in parse_file
with open(config_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml'

*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
[Errno 2] No such file or directory: '/config/config.yml'
[2022-03-15 14:35:50] frigate.app INFO : Starting Frigate (0.10.1-83481af)
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 312, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 77, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 896, in parse_file
with open(config_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml'

*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
[Errno 2] No such file or directory: '/config/config.yml'
[2022-03-15 14:38:04] frigate.app INFO : Starting Frigate (0.10.1-83481af)
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 312, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 77, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 896, in parse_file
with open(config_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml'

*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-03-15 14:42:25] frigate.app INFO : Starting Frigate (0.10.1-83481af)
[2022-03-15 14:42:26] frigate.app INFO : Creating directory: /media/frigate/recordings
[2022-03-15 14:42:26] frigate.app INFO : Creating directory: /media/frigate/clips
Starting migrations
[2022-03-15 14:42:26] peewee_migrate INFO : Starting migrations
Migrate "001_create_events_table"
[2022-03-15 14:42:26] peewee_migrate INFO : Migrate "001_create_events_table"
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)',)
[2022-03-15 14:42:26] 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)',)
sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
[2022-03-15 14:42:26] peewee_migrate INFO : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
[2022-03-15 14:42:26] peewee_migrate INFO : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
Done 001_create_events_table
[2022-03-15 14:42:26] peewee_migrate INFO : Done 001_create_events_table
Migrate "002_add_clip_snapshot"
[2022-03-15 14:42:26] peewee_migrate INFO : Migrate "002_add_clip_snapshot"
add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
Done 002_add_clip_snapshot
[2022-03-15 14:42:26] peewee_migrate INFO : Done 002_add_clip_snapshot
Migrate "003_create_recordings_table"
[2022-03-15 14:42:26] peewee_migrate INFO : Migrate "003_create_recordings_table"
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)',)
[2022-03-15 14:42:26] 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)',)
sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
[2022-03-15 14:42:26] peewee_migrate INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
[2022-03-15 14:42:26] peewee_migrate INFO : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
[2022-03-15 14:42:26] peewee_migrate INFO : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
Done 003_create_recordings_table
[2022-03-15 14:42:26] peewee_migrate INFO : Done 003_create_recordings_table
Migrate "004_add_bbox_region_area"
[2022-03-15 14:42:26] peewee_migrate INFO : Migrate "004_add_bbox_region_area"
add_column ('event', 'region', <JSONField: Event.region>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('event', 'region', <JSONField: Event.region>)
add_column ('event', 'box', <JSONField: Event.box>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('event', 'box', <JSONField: Event.box>)
add_column ('event', 'area', <IntegerField: Event.area>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('event', 'area', <IntegerField: Event.area>)
Done 004_add_bbox_region_area
[2022-03-15 14:42:26] peewee_migrate INFO : Done 004_add_bbox_region_area
Migrate "005_make_end_time_nullable"
[2022-03-15 14:42:26] peewee_migrate INFO : Migrate "005_make_end_time_nullable"
drop_not_null ('event', 'end_time')
[2022-03-15 14:42:26] peewee_migrate INFO : drop_not_null ('event', 'end_time')
Done 005_make_end_time_nullable
[2022-03-15 14:42:26] peewee_migrate INFO : Done 005_make_end_time_nullable
Migrate "006_add_motion_active_objects"
[2022-03-15 14:42:26] peewee_migrate INFO : Migrate "006_add_motion_active_objects"
add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
[2022-03-15 14:42:26] peewee_migrate INFO : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
Done 006_add_motion_active_objects
[2022-03-15 14:42:26] peewee_migrate INFO : Done 006_add_motion_active_objects
[Errno -2] Name or service not known
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-03-15 15:37:08] frigate.app INFO : Starting Frigate (0.10.1-83481af)
Starting migrations
[2022-03-15 15:37:08] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2022-03-15 15:37:08] peewee_migrate INFO : There is nothing to migrate
[Errno -2] Name or service not known
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
[Errno 2] No such file or directory: '/config/config.yml'
[2022-03-15 15:38:17] frigate.app INFO : Starting Frigate (0.10.1-83481af)
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 312, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 77, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 896, in parse_file
with open(config_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml'

*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
[Errno 2] No such file or directory: '/config/config.yml'
[2022-03-15 15:39:50] frigate.app INFO : Starting Frigate (0.10.1-83481af)
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 312, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 77, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 896, in parse_file
with open(config_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/config/config.yml'

*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Any suggestions?

 

 

2022-03-15 15_50_29-appdata.png

Link to comment
19 minutes ago, jonathanmarshall said:

Ok thanks, I put the config file in appdata/frigate.  I guess the verbiage of the error was the confusion; the file is there, it's just not valid.  I'll work on this. Thanks.

If you need help with the config file post it here and we will try to help you.

Link to comment
11 minutes ago, Tarcisio said:

 

does it provide a rtsp for each camera? What's the purpose of it if you're already have the rtsp of the cameras?

What's the link for the rtsp?

 

Thank you! 

If for example you install the frigate integration in home assistant you would be able to access the rtsp streams for automations such as sending the stream to you living room tv when someone rings the doorbell or if motion is detected in your backyard late at night. Just one example.

The frigate docs should have more info.

 

Link to comment

Hi,

 

Having a fair amount of trouble getting a M.2 Coral working. I have the driver addon from ich777 installed and have set TPU mapping to /dev/apex_0. Not sure where to start on resolving this, but many hours of researching the error and have not found a solution. Just wondering if anyone has any advice on resolving this?

 

[2022-03-25 12:42:54] detector.coral INFO : Starting detection process: 321
[2022-03-25 12:42:54] frigate.edgetpu INFO : Attempting to load TPU as pci
[2022-03-25 12:42:54] frigate.edgetpu INFO : TPU found
[2022-03-25 12:43:14] frigate.watchdog INFO : Detection appears to be stuck. Restarting detection process...
[2022-03-25 12:43:14] root INFO : Waiting for detection process to exit gracefully...
[2022-03-25 12:43:44] root INFO : Detection process didnt exit. Force killing...

[2022-03-25 12:42:54] detector.coral INFO : Starting detection process: 321
[2022-03-25 12:42:54] frigate.edgetpu INFO : Attempting to load TPU as pci
[2022-03-25 12:42:54] frigate.edgetpu INFO : TPU found
[2022-03-25 12:43:14] frigate.watchdog INFO : Detection appears to be stuck. Restarting detection process...
[2022-03-25 12:43:14] root INFO : Waiting for detection process to exit gracefully...
[2022-03-25 12:43:44] root INFO : Detection process didnt exit. Force killing...

 

Edited by Nickb167
Link to comment
On 3/25/2022 at 2:47 AM, Nickb167 said:

Hi,

 

Having a fair amount of trouble getting a M.2 Coral working. I have the driver addon from ich777 installed and have set TPU mapping to /dev/apex_0. Not sure where to start on resolving this, but many hours of researching the error and have not found a solution. Just wondering if anyone has any advice on resolving this?

 

[2022-03-25 12:42:54] detector.coral INFO : Starting detection process: 321
[2022-03-25 12:42:54] frigate.edgetpu INFO : Attempting to load TPU as pci
[2022-03-25 12:42:54] frigate.edgetpu INFO : TPU found
[2022-03-25 12:43:14] frigate.watchdog INFO : Detection appears to be stuck. Restarting detection process...
[2022-03-25 12:43:14] root INFO : Waiting for detection process to exit gracefully...
[2022-03-25 12:43:44] root INFO : Detection process didnt exit. Force killing...

[2022-03-25 12:42:54] detector.coral INFO : Starting detection process: 321
[2022-03-25 12:42:54] frigate.edgetpu INFO : Attempting to load TPU as pci
[2022-03-25 12:42:54] frigate.edgetpu INFO : TPU found
[2022-03-25 12:43:14] frigate.watchdog INFO : Detection appears to be stuck. Restarting detection process...
[2022-03-25 12:43:14] root INFO : Waiting for detection process to exit gracefully...
[2022-03-25 12:43:44] root INFO : Detection process didnt exit. Force killing...

 

Are you using it with another container? Try to unmount it from m.2 slot and mount and install again everything from scratch.

Link to comment
On 3/28/2022 at 4:46 AM, yayitazale said:

Are you using it with another container? Try to unmount it from m.2 slot and mount and install again everything from scratch.

I just tried it with a new unraid server. Created array, installed/configured mosquito, installed coral driver, rebooted, installed frigate with minimal config and still getting the same error. Would I be right in assuming I have a failed coral device or a hardware incompatibility. Is there anything i'm missing here?

mqtt:
  host: 172.16.0.13
  user: mqtt-user
  password: "XXXXXXX"
cameras:
 

  PuppyCam:
    ffmpeg:
      inputs:
        - path: rtsp://puppycam:[email protected]/stream1
          roles:
            - detect
            - rtmp
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
    detect:
      width: 2304
      height: 1296

detectors:
 coral:
   type: edgetpu
   device: pci

Link to comment
6 hours ago, Nickb167 said:

I just tried it with a new unraid server. Created array, installed/configured mosquito, installed coral driver, rebooted, installed frigate with minimal config and still getting the same error. Would I be right in assuming I have a failed coral device or a hardware incompatibility. Is there anything i'm missing here?

mqtt:
  host: 172.16.0.13
  user: mqtt-user
  password: "XXXXXXX"
cameras:
 

  PuppyCam:
    ffmpeg:
      inputs:
        - path: rtsp://puppycam:[email protected]/stream1
          roles:
            - detect
            - rtmp
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
    detect:
      width: 2304
      height: 1296

detectors:
 coral:
   type: edgetpu
   device: pci

Can you see the coral in the device list of unraid? If you can and your are pointing to it in the frigate container as it looks like you are doing it right, It can be a failed coral. There have been more cases in the past in this forum...

Link to comment
19 hours ago, yayitazale said:

Can you see the coral in the device list of unraid? If you can and your are pointing to it in the frigate container as it looks like you are doing it right, It can be a failed coral. There have been more cases in the past in this forum...

Yep, its visible in the system devices list in its own IOMMU group. Yesterday, I tried swapping M.2 ports and booting up without the card installed with no luck. I'm going to try and get my hands on another one to test, really wish I could get a USB coral at this stage.

 

Are you able to confirm that I don't need to do any setup on the device and can drop it in straight out of the box?

Link to comment
6 hours ago, Nickb167 said:

Yep, its visible in the system devices list in its own IOMMU group. Yesterday, I tried swapping M.2 ports and booting up without the card installed with no luck. I'm going to try and get my hands on another one to test, really wish I could get a USB coral at this stage.

 

Are you able to confirm that I don't need to do any setup on the device and can drop it in straight out of the box?

Yes, in M.2 devices you only need to install the drivers, but @ich777 can confirm this as I don't own an PCI-M2 device.

 

There have been USB failed devices too, is just a lottery.

 

Can you show device list? Some people made the mistake of binding the device to VFIO-PCI

Link to comment
7 hours ago, Nickb167 said:

Are you able to confirm that I don't need to do any setup on the device and can drop it in straight out of the box?

Can you post your Diagnostics?

 

On 3/25/2022 at 2:47 AM, Nickb167 said:

have set TPU mapping to /dev/apex_0

Can you post a screenshot from the template?

 

On 3/25/2022 at 2:47 AM, Nickb167 said:

have the driver addon from ich777 installed

What does the plugin itself say, is the TPU visible in there?

 

What TPU do you own exactly?

 

16 minutes ago, yayitazale said:

There have been USB failed devices too, is just a lottery.

Very unlikely that the PCIe versions fail because I've set the throttle temperature a little lower as usually in the Coral driver except for the Dual Edge TPU because you need to come up with a custom cooling solution for this TPU on your own, but of course they could die because of other circumstances....

  • Like 1
Link to comment
11 hours ago, yayitazale said:

Yes, in M.2 devices you only need to install the drivers, but @ich777 can confirm this as I don't own an PCI-M2 device.

 

There have been USB failed devices too, is just a lottery.

 

Can you show device list? Some people made the mistake of binding the device to VFIO-PCI

Device list is below
image.thumb.png.dfb0bd760d67dcdc98ad7ed7358c7bd3.png

Link to comment
  • 2 weeks later...

Hi @yayitazale

I've been running Frigate for the past 4 months and it's been working great.

In the last week though, the container stops after 1-2 hours (don't know the timeframe exactly).

When I check the Coral TPU Driver, I get this message:

 

1390710918_Screenshotfrom2022-04-1000-54-51.png.2090e61e14e7c5199939ccd84fb36b0e.png

 

I haven't made any changes at all to either Frigate or the cameras themselves.

Of course, if I try to restart the container it still crashes because it cannot locate the Coral.

The only way to make it work is to restart Unraid.

 

The logs say:

 

Apr  9 23:10:59 SERVER kernel: apex 0000:07:00.0: RAM did not enable within timeout (12000 ms)
Apr  9 23:11:12 SERVER kernel: apex 0000:07:00.0: RAM did not enable within timeout (12000 ms)
Apr  9 23:11:12 SERVER kernel: apex 0000:07:00.0: Error in device open cb: -110
Apr  9 23:11:23 SERVER kernel: veth540f305: renamed from eth0
Apr  9 23:11:23 SERVER kernel: docker0: port 2(vethcdfa559) entered disabled state
Apr  9 23:11:23 SERVER avahi-daemon[4173]: Interface vethcdfa559.IPv6 no longer relevant for mDNS.
Apr  9 23:11:23 SERVER avahi-daemon[4173]: Leaving mDNS multicast group on interface vethcdfa559.IPv6 with address fe80::c8e6:35ff:fe10:a4d.
Apr  9 23:11:23 SERVER kernel: docker0: port 2(vethcdfa559) entered disabled state
Apr  9 23:11:23 SERVER kernel: device vethcdfa559 left promiscuous mode
Apr  9 23:11:23 SERVER kernel: docker0: port 2(vethcdfa559) entered disabled state
Apr  9 23:11:23 SERVER avahi-daemon[4173]: Withdrawing address record for fe80::c8e6:35ff:fe10:a4d on vethcdfa559.
Apr  9 23:28:47 SERVER kernel: hrtimer: interrupt took 13700 ns
Apr 10 00:00:43 SERVER emhttpd: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog 
Apr 10 00:01:34 SERVER emhttpd: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog 

 

Any idea what might be causing this and how I can fix it?

Is there a way to restart the Coral TPU Driver without restarting Unraid?

Link to comment
10 hours ago, morethanenough said:

Hi @yayitazale

I've been running Frigate for the past 4 months and it's been working great.

In the last week though, the container stops after 1-2 hours (don't know the timeframe exactly).

When I check the Coral TPU Driver, I get this message:

 

1390710918_Screenshotfrom2022-04-1000-54-51.png.2090e61e14e7c5199939ccd84fb36b0e.png

 

I haven't made any changes at all to either Frigate or the cameras themselves.

Of course, if I try to restart the container it still crashes because it cannot locate the Coral.

The only way to make it work is to restart Unraid.

 

The logs say:

 

Apr  9 23:10:59 SERVER kernel: apex 0000:07:00.0: RAM did not enable within timeout (12000 ms)
Apr  9 23:11:12 SERVER kernel: apex 0000:07:00.0: RAM did not enable within timeout (12000 ms)
Apr  9 23:11:12 SERVER kernel: apex 0000:07:00.0: Error in device open cb: -110
Apr  9 23:11:23 SERVER kernel: veth540f305: renamed from eth0
Apr  9 23:11:23 SERVER kernel: docker0: port 2(vethcdfa559) entered disabled state
Apr  9 23:11:23 SERVER avahi-daemon[4173]: Interface vethcdfa559.IPv6 no longer relevant for mDNS.
Apr  9 23:11:23 SERVER avahi-daemon[4173]: Leaving mDNS multicast group on interface vethcdfa559.IPv6 with address fe80::c8e6:35ff:fe10:a4d.
Apr  9 23:11:23 SERVER kernel: docker0: port 2(vethcdfa559) entered disabled state
Apr  9 23:11:23 SERVER kernel: device vethcdfa559 left promiscuous mode
Apr  9 23:11:23 SERVER kernel: docker0: port 2(vethcdfa559) entered disabled state
Apr  9 23:11:23 SERVER avahi-daemon[4173]: Withdrawing address record for fe80::c8e6:35ff:fe10:a4d on vethcdfa559.
Apr  9 23:28:47 SERVER kernel: hrtimer: interrupt took 13700 ns
Apr 10 00:00:43 SERVER emhttpd: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog 
Apr 10 00:01:34 SERVER emhttpd: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog 

 

Any idea what might be causing this and how I can fix it?

Is there a way to restart the Coral TPU Driver without restarting Unraid?

Can be a thermal problem. Can you monitor the Corals temperature? @ich777 any idea?

Link to comment
11 hours ago, morethanenough said:

Is there a way to restart the Coral TPU Driver without restarting Unraid?

No… not after a thermal shutdown…

 

1 hour ago, yayitazale said:

Can be a thermal problem. Can you monitor the Corals temperature? @ich777 any idea?

Looks like a thermal issue…

 

@morethanenough what kind of TPU do you own? Do you have a little Airflow over you TPU or betrer speaking is it cooled enough?

 

A shutdown is troggered in your case at 104.8 C and it seems like your TPU are gitting that temperature, otherwise it wouldn‘t shutdown.

 

Please keep in mind when a TPU isn‘t properly cooled it could be a fire hazard (this is also mentioned in the documentation/specification from the TPUs).

 

That‘s why the USB TPUs run at a way lower clock speed than the PCIe ones…

 

If you are interested I can send you a script wich writes the temperatures into a file so that you can monitor them.

Link to comment
58 minutes ago, morethanenough said:

Yes, I'd like to have that script please (and instructions on where to type it if you have them).

You have multiple ways of running the script the easiest would be that you add it as a User Script

 

Do the following:

  1. Go to Settings
  2. Click on User Scripts
  3. Click on Add new script
  4. Enter a name for the script, something like "Corel Temp" would be appropriate
  5. Click OK
  6. Click on the little gear icon where it says "Corel Temp"
  7. Click on Edit Script
  8. Paste this:
    #!/bin/bash
    INTERVAL=15
    WRITE_FILE=/mnt/user/appdata/coraltemp.txt
    
    while true
    do
      echo "$(date "+%Y-%m-%d %T") Coral Temp: $(cat /sys/$(udevadm info --query=path --name=/dev/apex_0)/temp | sed 's/.\{3\}$/.&/' | sed 's/.\{1\}$//')C" >> ${WRITE_FILE}
      sleep ${INTERVAL}s
    done
  9. Click on Save Changes
  10. Click on the Drop Down from "Coral Temp" where it says "Schedule Disabled" and select "At First Array Start Only"
  11. Click on "Apply"
  12. Reboot your Server

 

By default this script will write a file to /mnt/user/appdata/coraltemp.txt every 15 seconds, you can of course change the path and also the interval if you want too.

This will only read the temp from the first TPU if someone else is trying this script...

 

Very courious to see what the issue is on your system...

 

If you want to remove this script do the following:

  1. Go to Settings
  2. Click on User Scripts
  3. Click on the little gear icon where it says "Corel Temp"
  4. Click on Delete Script
  5. Click on OK

 

1 hour ago, morethanenough said:

I don't understand why it would work fine for 4 months and now it started overheating. I don't recall changing something in Frigate.

Have you changed anything else?

 

Please also post the output from:

cat /boot/config/plugins/coral-driver/settings.cfg

(simply run this from a terminal from Unraid)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.