truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.15k stars 619 forks source link

ispy-agent-dvr stuck on Installing FFmpeg 6 #17970

Closed pvyParts closed 7 months ago

pvyParts commented 9 months ago

App Name

ispy-agent-dvr

Operating System

TrueNAS SCALE 23.10.1

App Version

5.2.4.0

Application Events

2024-02-04 16:13:00
Updated LoadBalancer with new IPs: [] -> [10.0.0.8]
2024-02-04 16:12:59
Created container ispy-agent-dvr
2024-02-04 16:12:59
Started container ispy-agent-dvr
2024-02-04 16:12:57
Add eth0 [172.16.0.91/16] from ix-net
2024-02-04 16:12:57
Updated LoadBalancer with new IPs: [] -> [10.0.0.8]
2024-02-04 16:12:57
Container image "doitandbedone/ispyagentdvr:5.2.4.0@sha256:9519d085a3943dfc516b5d96654127a7d83cb9ae1e5f9c7035de64338d1066a5" already present on machine
2024-02-04 16:12:56
Updated LoadBalancer with new IPs: [] -> [10.0.0.8]
2024-02-04 16:12:54
Ensuring load balancer
2024-02-04 16:12:54
There are no available nodes for LoadBalancer
2024-02-04 16:12:54
Applied LoadBalancer DaemonSet kube-system/svclb-ispy-agent-dvr-073038a0
2024-02-04 16:12:54
Ensuring load balancer
2024-02-04 16:12:54
There are no available nodes for LoadBalancer
2024-02-04 16:12:54
Applied LoadBalancer DaemonSet kube-system/svclb-ispy-agent-dvr-turn-36512ea5
2024-02-04 16:12:54
Ensuring load balancer
2024-02-04 16:12:54
There are no available nodes for LoadBalancer
2024-02-04 16:12:54
Applied LoadBalancer DaemonSet kube-system/svclb-ispy-agent-dvr-webrtc-7fbd2b24
2024-02-04 16:12:54
Scaled up replica set ispy-agent-dvr-6d6f474548 to 1
2024-02-04 16:12:54
Created pod: ispy-agent-dvr-6d6f474548-mdq9k
2024-02-04 16:12:54
Successfully assigned ix-ispy-agent-dvr/ispy-agent-dvr-6d6f474548-mdq9k to ix-truenas
2024-02-04 16:12:41
Readiness probe failed: Get "http://172.16.0.84:8090/": dial tcp 172.16.0.84:8090: connect: connection refused
2024-02-04 16:12:38
Deleted pod: ispy-agent-dvr-6d4984b75-sgfjj
2024-02-04 16:12:38
Stopping container ispy-agent-dvr
2024-02-04 16:12:37
Deleting load balancer
2024-02-04 16:12:37
Deleted LoadBalancer DaemonSet kube-system/svclb-ispy-agent-dvr-a547f21a
2024-02-04 16:12:37
Deleted load balancer
2024-02-04 16:12:37
Deleting load balancer
2024-02-04 16:12:37
Deleted LoadBalancer DaemonSet kube-system/svclb-ispy-agent-dvr-turn-435ebef7
2024-02-04 16:12:37
Deleted load balancer
2024-02-04 16:12:37
Deleting load balancer
2024-02-04 16:12:37
Deleted LoadBalancer DaemonSet kube-system/svclb-ispy-agent-dvr-webrtc-8a12d912
2024-02-04 16:12:37
Deleted load balancer
2024-02-04 16:12:37
Scaled down replica set ispy-agent-dvr-6d4984b75 to 0 from 1

Application Logs

These are from `app_url.com/logs.html` the logs in truenas are not showing.

4:12:59 PM  CheckContent: Copying /agent/Content/sounds/police.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/alarm.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/alsationxsiberian_bark.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/wiggle.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/doorbell.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/spanielgrowlbark.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/alsation_bark.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/cairnterrierbark.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/pop.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/rottweiler_bark.wav
4:12:59 PM  CheckContent: Copying /agent/Content/sounds/airhorn.wav
4:12:59 PM  Init: Log start
4:12:59 PM  Go: Agent (v5.2.4.0)
4:12:59 PM  Go: Starting...
4:12:59 PM  Go: Detected: Linux64
4:12:59 PM  Go: Creating temp path for opencv in /tmp/
4:12:59 PM  Go: Get com port list
4:12:59 PM  Conf: Check /agent/Media/WebServerRoot/Media/
4:13:00 PM  StartUp: Using WorkStation GC
4:13:00 PM  StartUp: Inbuilt SOAP auth unavailable (using alternate)
4:13:00 PM  StartUp: Using Original WebRTC library
4:13:00 PM  StartUp: Init FFmpeg
4:13:00 PM  TryLoad: ffmpeg6/lib not found
4:13:00 PM  TryLoad: ffmpeg-v6/workspace/lib not found
4:13:00 PM  TryLoad: Checking in /usr/local/lib
4:13:00 PM  TryLoad: Checking in /usr/lib/x86_64-linux-gnu
4:13:00 PM  TryLoad: /usr/lib/x86_64-linux-gnueabi not found
4:13:00 PM  TryLoad: /usr/lib/x86_64-linux-gnueabihf not found
4:13:00 PM  Load: Installing FFmpeg6
4:13:00 PM  StartUp: P2P library not installed (this is normal)
4:13:00 PM  Init: NDI
4:13:00 PM  Init: Not installed
4:13:00 PM  StartUp: Init SDL
4:13:00 PM  Install: Downloading https://ispyrtcdata.blob.core.windows.net/downloads/ffmpeg6-linuxx64.tar.xz
4:13:00 PM  Init: Database
4:13:00 PM  StartUp: Preloading Images
4:13:00 PM  LoadStaticImages: Loading static images
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.cam_connecting.jpg
4:13:00 PM  RunTURN: Turn Server accepting connections at 172.16.0.91:3478 using range 50000-50010
4:13:00 PM  LoadStaticImages: Size {Width=95, Height=72}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.cam_offline.jpg
4:13:00 PM  LoadStaticImages: Size {Width=95, Height=72}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.mic_offline.jpg
4:13:00 PM  LoadStaticImages: Size {Width=95, Height=72}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.cam_removed.jpg
4:13:00 PM  LoadStaticImages: Size {Width=95, Height=72}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.stream.jpg
4:13:00 PM  LoadStaticImages: Size {Width=854, Height=480}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.ai_alpr.jpg
4:13:00 PM  LoadStaticImages: Size {Width=1062, Height=597}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.ai_face.jpg
4:13:00 PM  LoadStaticImages: Size {Width=224, Height=224}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.ai_ocr.jpg
4:13:00 PM  LoadStaticImages: Size {Width=382, Height=58}
4:13:00 PM  LoadStaticImages: Load CoreLogic.SharedContent.images.ai_scene.jpg
4:13:00 PM  LoadStaticImages: Size {Width=640, Height=427}
4:13:00 PM  Init: MQTT not configured or enabled
4:13:01 PM  GetObjects: Loaded 4 cameras and 0 mics from /agent/Media/XML/objects.xml
4:13:01 PM  LocalServerPort: Using default port (8090)
4:13:01 PM  InitServer: Access locally at http://localhost:8090/
4:13:01 PM  StartUp: LogLevel: Debug
4:13:01 PM  Initialize_OnInitialized: Running at http://localhost:8090/
4:13:01 PM  AddressListIPv4: IP addresses:
4:13:01 PM  AddressListIPv4: 172.16.0.91
4:13:01 PM  Listen: Accepting http connections at http://*:8090/
4:13:01 PM  ScanNetwork: No network devices found
4:13:01 PM  Init: ZeroConf Service Started
4:13:02 PM  Front Door: CheckEnableDisable: Device waiting for ffmpeg
4:13:02 PM  Front Yard: CheckEnableDisable: Device waiting for ffmpeg
4:13:02 PM  Car Port: CheckEnableDisable: Device waiting for ffmpeg
4:13:02 PM  Driveway: CheckEnableDisable: Device waiting for ffmpeg

Application Configuration

Defaults except for adding storage

Describe the bug

Application is stuck on a screen showing Agent DVR: Installing FFmpeg 6

To Reproduce

Add ispy-agent-dvr chart open web app

Expected Behavior

web app loads and cameras function

Screenshots

image

Additional Context

related external issues: https://github.com/doitandbedone/ispyagentdvr-docker/issues/618 https://github.com/doitandbedone/ispyagentdvr-docker/issues/621 mentions a new repo-image

https://github.com/doitandbedone/ispyagentdvr-docker/issues/676 I have left it for days no change.

related from reddit: https://www.reddit.com/r/ispyconnect/comments/18c0ogr/stuck_at_agent_dvr_installing_ffmpeg_6/ mentions the new repo-image

I've read and agree with the following

pvyParts commented 8 months ago

Update

I appear to have found a work around this issue by giving the ffmpeg6 directory persistent storage..

  1. Editing the ispy-dvr app and adding additional application storage
    • type: PVC
    • mount: /agent/ffmpeg6/
    • Quotum: 1Gi
  2. Restart ispy-dvr
  3. entering the ispy-dvr app's shell
  4. running the following
    bash
    cd agent
    ./setup-ffmpeg-linux.sh ffmpeg6/
  5. restart ispy-dvr again
PrivatePuffin commented 8 months ago

Update

I appear to have found a work around this issue by giving the ffmpeg6 directory persistent storage..

  1. Editing the ispy-dvr app and adding additional application storage

    • type: PVC
    • mount: /agent/ffmpeg6/
    • Quotum: 1Gi
  2. Restart ispy-dvr
  3. entering the ispy-dvr app's shell
  4. running the following
    bash
    cd agent
    ./setup-ffmpeg-linux.sh ffmpeg6/
  5. restart ispy-dvr again

Can be set to type: emptyDir instead.

pvyParts commented 8 months ago

repeating the process with the type as emptyDir appears to not work.

the /agent/ffmpeg6/ directory is empty each restart of the container. and i get stuck with the Agent DVR: Installing FFmpeg 6 message again.

PrivatePuffin commented 8 months ago

emptyDir is just as empty as PVC at first start.

Nbr1Sniper commented 8 months ago

This fixed my issue. Thank you sooooo much!

StevenMcElligott commented 8 months ago

I'll add persistence to it

sakebit commented 7 months ago

Update

I appear to have found a work around this issue by giving the ffmpeg6 directory persistent storage..

  1. Editing the ispy-dvr app and adding additional application storage

    • type: PVC
    • mount: /agent/ffmpeg6/
    • Quotum: 1Gi
  2. Restart ispy-dvr
  3. entering the ispy-dvr app's shell
  4. running the following
    bash
    cd agent
    ./setup-ffmpeg-linux.sh ffmpeg6/
  5. restart ispy-dvr again

Can be set to type: emptyDir instead.

fixed it for me. thx!

PrivatePuffin commented 7 months ago

I'll add persistence to it

didn't you already add persistence to this?

StevenMcElligott commented 7 months ago

I'll add persistence to it

didn't you already add persistence to this?

it was on the todo lol

truecharts-admin commented 5 days ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists