blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.46k stars 1.79k forks source link

[Support]: Permission denied, unable to convert errors after moving to new server #7704

Closed JitteryDoodle closed 1 year ago

JitteryDoodle commented 1 year ago

Describe the problem you are having

Hello,

I've recently attempted to migrate Frigate to a new Unraid docker host and am now using SMB shares instead of local shares to store footage. Unfortunately, I'm getting permission denied errors even though I can write new files in the directory from the docker container itself. I even tried setting the permissions on the share to 777 and no local security, with no luck.

Version

0.12.1-367d724

Frigate config file

mqtt:
  host: ****
  user: sdr
  password: ****

detectors:
  coral:
    type: edgetpu
    device: usb

go2rtc:
  streams:
    Side:
      - http://****/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:Side#audio=aac"
    Side_sub:
      - http://****.99/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:Side#audio=aac"
    Kitchen:
      - http://****.207/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:Kitchen#audio=aac"
    Kitchen_sub:
      - http://****.207/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:Kitchen#audio=aac"
    BackyardSide:
      - http://****.208/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:BackyardSide#audio=aac"
    BackyardSide_sub:
      - http://****.208/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:BackyardSide#audio=aac"
    Carport:
      - http://****.243/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:Carport#audio=aac"
    Carport_sub:
      - http://****.243/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:Carport#audio=aac"
    Street:
      - http://****.26/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:Street#audio=aac"
    Street_sub:
      - http://****.26/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:Street#audio=aac"
    Basement:
      - http://****.245/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:Basement#audio=aac"
    Basement_sub:
      - http://****.245/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:Basement#audio=aac"
    Backyard:
      - http://****.185/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:Backyard#audio=aac"
    Backyard_sub:
      - http://****.185/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:Backyard#audio=aac"
    FrontDoor:
      - http://****.25/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:FrontDoor#audio=aac"
    FrontDoor_sub:
      - http://****.25/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:FrontDoor#audio=aac"
    FrontYard:
      - http://****.218/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=****
      - "ffmpeg:FrontYard#audio=aac"
    FrontYard_sub:
      - http://****.218/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=****
      - "ffmpeg:FrontYard#audio=aac"
    StreetUltrawide:
      - rtsp://admin:****@****.37/Preview_01_main
      - "ffmpeg:StreetUltrawide#audio=aac"
    StreetUltrawide_sub:
      - rtsp://admin:****@****.37/Preview_01_sub
      - "ffmpeg:StreetUltrawide#audio=aac"
cameras:
  Side:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Side?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Side_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - car
      - dog
      - cat
      - horse
      - motorcycle
      - bicycle
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        car:
          threshold: 0.75
        bicycle:
          threshold: 0.75
        motorcycle:
          threshold: 0.75
        horse:
          threshold: 0.75
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5
    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10
  Kitchen:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Kitchen?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Kitchen_sub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - dog
      - cat
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5
    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10
  BackyardSide:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/BackyardSide?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/BackyardSide_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - dog
      - bicycle
      - cat
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        bicycle:
          threshold: 0.75
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5

    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10
  Carport:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Carport?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Carport_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - car
      - dog
      - cat
      - horse
      - motorcycle
      - bicycle
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        car:
          threshold: 0.78
        bicycle:
          threshold: 0.75
        motorcycle:
          threshold: 0.75
        horse:
          threshold: 0.75
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5

    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10
  Street:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Street?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Street_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - car
      - dog
      - cat
      - horse
      - motorcycle
      - bicycle
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        car:
          threshold: 0.75
          mask:
            - 849,488,798,513,748,523,709,525,670,513,650,481,642,464,638,432,641,408,647,390,644,361,661,341,674,314,684,292,718,273,751,260,779,251,828,250,903,242,937,244,978,264,1005,285,1025,308,1039,348,885,462
        bicycle:
          threshold: 0.75
        motorcycle:
          threshold: 0.75
        horse:
          threshold: 0.75
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5

    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10

  Basement:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Basement?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Basement_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - dog
      - cat
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5

    record:
      enabled: true
      retain_days: 3
      events:
        retain:
          default: 10
  Backyard:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Backyard?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Backyard_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - dog
      - cat
      - bird
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        bird:
          threshold: 0.78
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5

    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10
  FrontDoor:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/FrontDoor?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/FrontDoor_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2560
      height: 1920
      fps: 5
    objects:
      track:
      - person
      - dog
      - cat
      - bird
      - car
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        bird:
          threshold: 0.78
        car:
          threshold: 0.78
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5
    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10
  FrontYard:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/FrontYard?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/FrontYard_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 2304
      height: 1296
      fps: 5
    objects:
      track:
      - person
      - car
      - dog
      - cat
      - horse
      - motorcycle
      - bicycle
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        car:
          threshold: 0.75
        bicycle:
          threshold: 0.75
        motorcycle:
          threshold: 0.75
        horse:
          threshold: 0.75
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5
    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10

  StreetUltrawide:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/StreetUltrawide?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/StreetUltrawide_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-aac
    detect:
      width: 1536
      height: 576
      fps: 5
    objects:
      track:
      - person
      - car
      - dog
      - cat
      - horse
      - motorcycle
      - bicycle
      filters:
        person:
          threshold: 0.75
        dog:
          threshold: 0.78
        cat:
          threshold: 0.78
        car:
          mask:
            - 0,576,0,397,0,280,90,236,231,156,451,59,657,0,829,0,826,576,540,576
          threshold: 0.75
        bicycle:
          threshold: 0.75
        motorcycle:
          threshold: 0.75
        horse:
          threshold: 0.75
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 5
    record:
      enabled: true
      retain_days: 5
      events:
        retain:
          default: 10

Relevant log output

023-09-05 12:03:14.588497566  [2023-09-05 12:03:14] frigate.record                 ERROR   : Unable to convert /tmp/cache/Side-20230905115540.mp4 to /media/frigate/recordings/2023-09-05/18/Side/55.40.mp4
2023-09-05 12:03:14.588559174  [2023-09-05 12:03:14] frigate.record                 ERROR   : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
2023-09-05 12:03:14.588560447    built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
2023-09-05 12:03:14.588564390    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
2023-09-05 12:03:14.588565650    libavutil      57. 28.100 / 57. 28.100
2023-09-05 12:03:14.588566431    libavcodec     59. 37.100 / 59. 37.100
2023-09-05 12:03:14.588567108    libavformat    59. 27.100 / 59. 27.100
2023-09-05 12:03:14.588567897    libavdevice    59.  7.100 / 59.  7.100
2023-09-05 12:03:14.588568669    libavfilter     8. 44.100 /  8. 44.100
2023-09-05 12:03:14.588569456    libswscale      6.  7.100 /  6.  7.100
2023-09-05 12:03:14.588570165    libswresample   4.  7.100 /  4.  7.100
2023-09-05 12:03:14.588570926    libpostproc    56.  6.100 / 56.  6.100
2023-09-05 12:03:14.588571815  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/cache/Side-20230905115540.mp4':
2023-09-05 12:03:14.588572542    Metadata:
2023-09-05 12:03:14.588573406      major_brand     : isom
2023-09-05 12:03:14.588574154      minor_version   : 512
2023-09-05 12:03:14.588575090      compatible_brands: isomiso2avc1mp41
2023-09-05 12:03:14.588575923      title           : go2rtc/1.2.0
2023-09-05 12:03:14.588576754      encoder         : Lavf59.27.100
2023-09-05 12:03:14.588577801    Duration: 00:00:10.05, start: 0.000000, bitrate: 6315 kb/s
2023-09-05 12:03:14.588579118    Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 2560x1440, 6317 kb/s, 25.11 fps, 25 tbr, 90k tbn (default)
2023-09-05 12:03:14.588579935      Metadata:
2023-09-05 12:03:14.588580732        handler_name    : VideoHandler
2023-09-05 12:03:14.588581635        vendor_id       : [0][0][0][0]
2023-09-05 12:03:14.588582743    Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 49 kb/s (default)
2023-09-05 12:03:14.588583429      Metadata:
2023-09-05 12:03:14.588584247        handler_name    : SoundHandler
2023-09-05 12:03:14.588585102        vendor_id       : [0][0][0][0]

FFprobe output from your camera

[{"return_code":0,"stderr":"","stdout":{"programs":[],"streams":[{"avg_frame_rate":"25/1","codec_long_name":"H.264/AVC/MPEG-4AVC/MPEG-4part10","height":1440,"width":2560},{"avg_frame_rate":"0/0","codec_long_name":"AAC(AdvancedAudioCoding)"}]}},{"return_code":0,"stderr":"","stdout":{"programs":[],"streams":[{"avg_frame_rate":"0/0","codec_long_name":"H.264/AVC/MPEG-4AVC/MPEG-4part10","height":512,"width":896}]}}]

Frigate stats

{"Backyard":{"camera_fps":5.1,"capture_pid":1065,"detection_enabled":1,"detection_fps":5.4,"ffmpeg_pid":1083,"pid":1028,"process_fps":5.1,"skipped_fps":0.0},"BackyardSide":{"camera_fps":5.1,"capture_pid":1043,"detection_enabled":1,"detection_fps":6.6,"ffmpeg_pid":1052,"pid":1022,"process_fps":5.1,"skipped_fps":0.0},"Basement":{"camera_fps":5.1,"capture_pid":1062,"detection_enabled":1,"detection_fps":2.4,"ffmpeg_pid":1067,"pid":1027,"process_fps":5.1,"skipped_fps":0.0},"Carport":{"camera_fps":5.1,"capture_pid":1050,"detection_enabled":1,"detection_fps":3.9,"ffmpeg_pid":1094,"pid":1024,"process_fps":5.1,"skipped_fps":0.0},"FrontDoor":{"camera_fps":5.1,"capture_pid":1076,"detection_enabled":1,"detection_fps":5.4,"ffmpeg_pid":1095,"pid":1030,"process_fps":5.1,"skipped_fps":0.0},"FrontYard":{"camera_fps":5.1,"capture_pid":1089,"detection_enabled":1,"detection_fps":2.0,"ffmpeg_pid":1107,"pid":1032,"process_fps":5.1,"skipped_fps":0.0},"Kitchen":{"camera_fps":5.1,"capture_pid":1039,"detection_enabled":1,"detection_fps":2.0,"ffmpeg_pid":1045,"pid":1021,"process_fps":5.1,"skipped_fps":0.0},"Side":{"camera_fps":5.0,"capture_pid":1035,"detection_enabled":1,"detection_fps":4.6,"ffmpeg_pid":1040,"pid":1019,"process_fps":5.0,"skipped_fps":0.0},"Street":{"camera_fps":5.0,"capture_pid":1057,"detection_enabled":1,"detection_fps":10.3,"ffmpeg_pid":1090,"pid":1025,"process_fps":5.1,"skipped_fps":0.0},"StreetUltrawide":{"camera_fps":5.0,"capture_pid":1102,"detection_enabled":1,"detection_fps":6.4,"ffmpeg_pid":1121,"pid":1033,"process_fps":5.0,"skipped_fps":0.0},"cpu_usages":{"%Cpu(s):":{"cpu":"id,","mem":"0.0"},"1":{"cpu":"0.0","mem":"0.0"},"1004":{"cpu":"0.3","mem":"0.2"},"1010":{"cpu":"0.3","mem":"0.0"},"1011":{"cpu":"7.3","mem":"0.4"},"1013":{"cpu":"3.0","mem":"0.4"},"1019":{"cpu":"1.3","mem":"0.4"},"1020":{"cpu":"0.0","mem":"0.1"},"1021":{"cpu":"0.7","mem":"0.4"},"1022":{"cpu":"12.3","mem":"0.4"},"1023":{"cpu":"0.0","mem":"0.1"},"1024":{"cpu":"0.7","mem":"0.5"},"1025":{"cpu":"19.9","mem":"0.4"},"1026":{"cpu":"0.0","mem":"0.1"},"1027":{"cpu":"0.3","mem":"0.4"},"1028":{"cpu":"19.9","mem":"0.5"},"1029":{"cpu":"0.0","mem":"0.1"},"1030":{"cpu":"7.0","mem":"0.4"},"1031":{"cpu":"0.0","mem":"0.1"},"1032":{"cpu":"0.7","mem":"0.4"},"1033":{"cpu":"12.0","mem":"0.4"},"1034":{"cpu":"0.0","mem":"0.1"},"1035":{"cpu":"2.3","mem":"0.4"},"1036":{"cpu":"0.0","mem":"0.1"},"1039":{"cpu":"2.3","mem":"0.4"},"1040":{"cpu":"6.6","mem":"0.2"},"1043":{"cpu":"2.0","mem":"0.4"},"1044":{"cpu":"0.0","mem":"0.1"},"1045":{"cpu":"7.3","mem":"0.2"},"1050":{"cpu":"2.7","mem":"0.4"},"1051":{"cpu":"0.0","mem":"0.1"},"1052":{"cpu":"6.6","mem":"0.2"},"1057":{"cpu":"2.7","mem":"0.4"},"1059":{"cpu":"0.0","mem":"0.1"},"1062":{"cpu":"2.3","mem":"0.4"},"1065":{"cpu":"2.7","mem":"0.4"},"1066":{"cpu":"0.0","mem":"0.1"},"1067":{"cpu":"7.3","mem":"0.2"},"1076":{"cpu":"4.0","mem":"0.4"},"1083":{"cpu":"6.3","mem":"0.2"},"1089":{"cpu":"2.3","mem":"0.4"},"1090":{"cpu":"6.3","mem":"0.2"},"1094":{"cpu":"6.6","mem":"0.2"},"1095":{"cpu":"9.6","mem":"0.2"},"1102":{"cpu":"1.0","mem":"0.4"},"1107":{"cpu":"7.0","mem":"0.2"},"111":{"cpu":"0.0","mem":"0.0"},"1121":{"cpu":"3.0","mem":"0.1"},"134":{"cpu":"0.0","mem":"0.0"},"135":{"cpu":"0.0","mem":"0.0"},"136":{"cpu":"0.0","mem":"0.0"},"137":{"cpu":"0.0","mem":"0.0"},"143":{"cpu":"0.0","mem":"0.0"},"15":{"cpu":"0.0","mem":"0.0"},"156":{"cpu":"0.0","mem":"0.0"},"17":{"cpu":"0.0","mem":"0.0"},"175":{"cpu":"0.0","mem":"0.0"},"19531":{"cpu":"0.0","mem":"0.0"},"205":{"cpu":"0.0","mem":"0.0"},"233":{"cpu":"0.0","mem":"0.0"},"24":{"cpu":"0.0","mem":"0.0"},"25":{"cpu":"0.0","mem":"0.0"},"26":{"cpu":"0.0","mem":"0.0"},"26504":{"cpu":"0.0","mem":"0.0"},"26805":{"cpu":"0.0","mem":"0.0"},"26807":{"cpu":"0.0","mem":"0.0"},"26808":{"cpu":"0.0","mem":"0.0"},"26809":{"cpu":"0.0","mem":"0.0"},"26810":{"cpu":"0.0","mem":"0.0"},"26811":{"cpu":"0.0","mem":"0.0"},"26812":{"cpu":"0.0","mem":"0.0"},"26813":{"cpu":"0.0","mem":"0.0"},"26814":{"cpu":"0.0","mem":"0.0"},"26815":{"cpu":"0.0","mem":"0.0"},"27":{"cpu":"0.0","mem":"0.0"},"27069":{"cpu":"0.0","mem":"0.0"},"27088":{"cpu":"2.0","mem":"0.1"},"27089":{"cpu":"3.0","mem":"0.1"},"27090":{"cpu":"0.3","mem":"0.1"},"27091":{"cpu":"2.7","mem":"0.1"},"27092":{"cpu":"0.0","mem":"0.1"},"27093":{"cpu":"3.0","mem":"0.1"},"27094":{"cpu":"2.7","mem":"0.1"},"27095":{"cpu":"0.0","mem":"0.1"},"27096":{"cpu":"0.0","mem":"0.1"},"27097":{"cpu":"3.3","mem":"0.1"},"279":{"cpu":"0.0","mem":"0.0"},"28":{"cpu":"0.0","mem":"0.0"},"29":{"cpu":"0.0","mem":"0.0"},"30":{"cpu":"0.0","mem":"0.0"},"31":{"cpu":"0.0","mem":"0.0"},"32":{"cpu":"0.0","mem":"0.0"},"325":{"cpu":"0.0","mem":"0.0"},"354":{"cpu":"0.0","mem":"0.0"},"389":{"cpu":"0.0","mem":"0.0"},"41":{"cpu":"0.0","mem":"0.0"},"42":{"cpu":"0.0","mem":"0.0"},"421":{"cpu":"0.0","mem":"0.0"},"449":{"cpu":"0.0","mem":"0.0"},"494":{"cpu":"0.0","mem":"0.0"},"528":{"cpu":"0.0","mem":"0.0"},"562":{"cpu":"0.0","mem":"0.0"},"587":{"cpu":"0.0","mem":"0.0"},"635":{"cpu":"0.0","mem":"0.0"},"672":{"cpu":"0.0","mem":"0.0"},"710":{"cpu":"0.0","mem":"0.0"},"742":{"cpu":"0.0","mem":"0.0"},"773":{"cpu":"0.0","mem":"0.0"},"80":{"cpu":"0.0","mem":"0.0"},"81":{"cpu":"0.0","mem":"0.0"},"82":{"cpu":"0.0","mem":"0.0"},"89":{"cpu":"8.0","mem":"0.1"},"97":{"cpu":"0.0","mem":"0.0"},"98":{"cpu":"5.6","mem":"1.0"},"MiB":{"cpu":"28874.1","mem":"avail"},"PID":{"cpu":"%CPU","mem":"%MEM"},"Tasks:":{"cpu":"stopped,","mem":"0"},"top":{"cpu":"average:","mem":"4.63,"}},"detection_fps":49.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":7.59,"pid":1011}},"service":{"last_updated":1693941071,"latest_version":"0.12.1","storage":{"/dev/shm":{"free":207.4,"mount_type":"tmpfs","total":268.4,"used":61.0},"/media/frigate/clips":{"free":26571719.2,"mount_type":"cifs","total":135982928.9,"used":109411209.7},"/media/frigate/recordings":{"free":26571719.2,"mount_type":"cifs","total":135982928.9,"used":109411209.7},"/tmp/cache":{"free":38.3,"mount_type":"tmpfs","total":100.0,"used":61.7}},"temperatures":{},"uptime":933,"version":"0.12.1-367d724"}}

Operating system

UNRAID

Install method

Docker CLI

Coral version

USB

Network connection

Wired

Camera make and model

reolink

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

What is the docker CLI command used in Unraid?

JitteryDoodle commented 1 year ago

Thanks for the super fast reply, much appreciated!

Here's the docker CLI command:

docker run
  -d
  --name='frigate'
  --net='bridge'
  --privileged=true
  -e TZ="America/Los_Angeles"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="KatrinaUnraid"
  -e HOST_CONTAINERNAME="frigate"
  -e 'FRIGATE_RTSP_PASSWORD'='***'
  -e 'PLUS_API_KEY'=''
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:5000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/yayitazale/unraid-templates/main/frigate.png'
  -p '5000:5000/tcp'
  -p '8554:8554/tcp'
  -v '/mnt/user/appdata/frigate':'/config':'rw'
  -v '/mnt/remotes/security-nvr/':'/media/frigate':'rw'
  -v '/etc/localtime':'/etc/localtime':'rw'
  --device='/dev/bus/usb'
  --shm-size=256mb
  --mount type=tmpfs,target=/tmp/cache,tmpfs-size=100000000
  --restart unless-stopped 'ghcr.io/blakeblackshear/frigate:stable'

1f160b1b0ed39c559c8acdbf61673ff9e43ed9f6abdde0eac50cbd4f88c480dd
NickM-27 commented 1 year ago

How do you know it's a permission error? Don't see that in the logs

JitteryDoodle commented 1 year ago

Apologies, left that out. But looking back at the logs I discovered a space issue? Odd because there is 30TB available on the frigate media share.

Here's the permission denied, probably because of no space:

2023-09-05 12:25:46.415471583 [2023-09-05 12:25:46] ffmpeg.Carport.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device
2023-09-05 12:25:46.415556271 [2023-09-05 12:25:46] ffmpeg.Carport.record ERROR : Error initializing output stream 0:1 --
2023-09-05 12:25:46.415589936 [2023-09-05 12:25:46] watchdog.Carport INFO : Terminating the existing ffmpeg process...
2023-09-05 12:25:46.415624418 [2023-09-05 12:25:46] watchdog.Carport INFO : Waiting for ffmpeg to exit gracefully...
2023-09-05 12:25:50.972846410 [2023-09-05 12:25:50] frigate.record ERROR : Error occurred when attempting to maintain recording cache
2023-09-05 12:25:50.972881532 [2023-09-05 12:25:50] frigate.record ERROR : [Errno 13] Permission denied: '/media/frigate/recordings/2023-09-05/19'
JitteryDoodle commented 1 year ago

Figured the original issue out! I had the default --shm-size set to 256mb. I increased this to 8GB along with the tmpfs mount size.

Now I just am getting some errors about cleaning up some old recordings. This is probably to be expected though; I'm guessing it's because the old recordings are still owned by the previous host. I can likely fix this with chown - going to close for now! Thanks for the help.