Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support]: Error - frigate.api.media b" #16865

Open
andygev35 opened this issue Feb 28, 2025 · 4 comments
Open

[Support]: Error - frigate.api.media b" #16865

andygev35 opened this issue Feb 28, 2025 · 4 comments

Comments

@andygev35
Copy link

Describe the problem you are having

I have a whole bunch of the same error in my system logs. Im not entirely sure if it's causing issues or not but thought I would post it here to be looked at.

Version

0.15.0-cea210d

What browser(s) are you using?

Safari Version 18.3 (20620.2.4.11.5)

Frigate config file

mqtt:
  host: 192.168.1.252
  user: frigate
  password: ########
  port: 1883

detectors:
  cpu:
    type: cpu
    num_threads: 4

go2rtc:
  streams:
    Driveway: ffmpeg:rtsp://######:######@192.168.1.41:554
    Frontdoor: ffmpeg:rtsp://######:######@192.168.1.42:554
    Side: ffmpeg:rtsp://######:######@192.168.1.43:554
    Backyard: ffmpeg:rtsp://######:######@192.168.1.44:554
    Kitchen: ffmpeg:rtsp://######:######@192.168.1.45:554
    Basement: ffmpeg:rtsp://######:######@192.168.1.46:554
    Garage: ffmpeg:rtsp://######:######@192.168.1.47:554

cameras:
  Driveway:
    ui:
      order: 1
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Driveway
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 2688
      height: 1512
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
    zones:
      Driveway_pad:
        coordinates: 
          0.061,0.992,0.112,0.571,0.176,0.373,0.221,0.157,0.37,0.132,0.458,0.129,0.599,0.146,0.695,0.159,0.759,0.386,0.812,0.589,0.86,0.859,0.86,0.995
        loitering_time: 0
  Frontdoor:
    ui:
      order: 2
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Frontdoor
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 1512
      height: 2688
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
      filters:
        car: {}
    zones:
      porch:
        coordinates: 
          0,1278,0,2688,543,2688,1006,2688,1376,2688,1520,2666,1153,1882,932,1673,891,1611,835,1573,709,1299,387,1114,305,807,254,480,0,478
    motion: {}
    review:
      alerts:
        required_zones: porch
  Side:
    ui:
      order: 3
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Side
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 2688
      height: 1512
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
  Backyard:
    ui:
      order: 4
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Backyard
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 1512
      height: 2866
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
  Kitchen:
    ui:
      order: 5
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Kitchen
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 2688
      height: 1512
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
  Basement:
    ui:
      order: 6
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Basement
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 2688
      height: 1512
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
      filters:
        person:
          mask:
            - 1570,530,1882,500
    motion: {}
  Garage:
    ui:
      order: 7
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Garage
          roles:
            - detect
            - record
    record:
      enabled: true
      retain:
        days: 10
      alerts:
        retain:
          days: 10
      detections:
        retain:
          days: 10
    snapshots:
      enabled: true
    detect:
      enabled: true
      width: 1512
      height: 2688
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
        - dog
version: 0.15-1

Relevant Frigate log output

2025-02-09 23:17:25.547240219  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.568031219  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.594910219  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.602532761  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.640443136  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.664800595  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.692496553  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.730246595  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.745021428  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:17:25.764834636  [2025-02-09 23:17:25] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.118586717  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.124857550  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.254396758  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.254399008  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.300539633  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.324156258  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.518745300  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.537124717  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.621685425  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:38:20.621813550  [2025-02-09 23:38:20] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.301356597  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.476796639  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.537867472  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.544026055  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.579270680  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.584469597  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.693605750  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.788355541  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.788357833  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:39:01.829461083  [2025-02-09 23:39:01] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.722060215  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.746996340  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.760189299  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.874926507  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.874928466  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.917999882  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.918002174  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.924092216  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:47.947485216  [2025-02-09 23:42:47] frigate.api.media              ERROR   : b''
2025-02-09 23:42:48.011825049  [2025-02-09 23:42:48] frigate.api.media              ERROR   : b''

Relevant go2rtc log output

2025-02-09 20:51:30.841012208  [INFO] Preparing new go2rtc config...
2025-02-09 20:51:32.193257584  [INFO] Starting go2rtc...
2025-02-09 20:51:32.237738125  20:51:32.237 INF go2rtc platform=linux/arm64 revision=b2399f3 version=1.9.2
2025-02-09 20:51:32.237739875  20:51:32.237 INF config path=/dev/shm/go2rtc.yaml
2025-02-09 20:51:32.237961834  20:51:32.237 INF [rtsp] listen addr=:8554
2025-02-09 20:51:32.238007667  20:51:32.237 INF [webrtc] listen addr=:8555/tcp
2025-02-09 20:51:32.238195417  20:51:32.238 INF [api] listen addr=:1984
2025-02-09 20:51:40.841100838  [INFO] Starting go2rtc healthcheck service...

FFprobe output from your camera

Not sure about this but will look into it and post back

Frigate stats

No response

Install method

Docker Compose

docker-compose file or Docker CLI command

version: "3.9"
services:
  frigate:
    container_name: frigatenas
    privileged: true
    restart: unless-stopped
    image: ghcr.io/blakeblackshear/frigate:0.15.0-standard-arm64
    shm_size: "4gb"
    volumes:
      - /etc/localtime:/etc/localtime:ca
      - /Volumes/frigate/config:/config
      - /Volumes/frigate/media:/media/frigate
      - type: tmpfs # 2GB of memory
        target: /tmp/cache
        tmpfs:
          size: 2000000000
    ports:
      - "5000:5000" # Port used by the Web UI
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp
    environment:
      FRIGATE_RTSP_PASSWORD: "########"

Object Detector

CPU (no coral)

Network connection

Wired

Camera make and model

hikvision (7 different models)

Screenshots of the Frigate UI's System metrics pages

Screenshot 2025-02-09 at 4 49 27 PM Screenshot 2025-02-09 at 4 49 58 PM Screenshot 2025-02-09 at 4 50 11 PM Screenshot 2025-02-09 at 4 50 21 PM

Any other information that may be helpful

Mac mini M4 - 16gb/256gb
NAS Network storage
Portainer ce 2.21.5
Docker desktop Mac --
Version4.38.0 (181591)
Engine: 27.5.1
Compose: v2.32.4-desktop.1
Credential Helper: v0.8.2
Kubernetes: v1.31.4

Attached Nginx logs
nginx-logs.txt
frigate-logs.txt

Originally posted by @Landonthi in #16437

@andygev35
Copy link
Author

andygev35 commented Feb 28, 2025

I have the same problem with my setup. (Mac Mini M4). I also have an external drive (TB4) for storage, which is being properly written to, but if I look at "System Metrics -> Storage", it looks as though the storage drive isn't properly mapped. My external storage drive partition for Frigate is 1.5TB, which I've verified contains all of Frigate's recordings, clips, exports and db files, but system metrics looks to be reporting the INTERNAL STORAGE (228.27GB) space. This is the EXACT same space reported on @Landonthi's screenshot of his system storage metrics as well. What are the odds of that?

Image

@andygev35
Copy link
Author

More evidence that there is an issue with storage mapping on docker (MacOS). Recordings show exceeding available space, although there’s still over 1TB still available on the storage partition. Curious whether that has anything to do with the alert preview gif bar at the top being blank, or sporadically filled?

Image

@Landonthi
Copy link

Landonthi commented Mar 1, 2025

@andygev35 I don’t believe that Frigate tracks free and used space. See the two screen shots I posted. I can empty the folder I am using for storage and it will still show 5.17 Tb’s used.

Image
Image

@andygev35
Copy link
Author

andygev35 commented Mar 1, 2025

@Landonthi on docker for Linux, it always showed a rough estimate (relatively accurately) of the total space on the storage drive, regardless of actual space available. Doesn’t seem to be the case on docker for MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants