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

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

Closed
1 task done
pvyParts opened this issue Feb 5, 2024 · 9 comments · Fixed by #19149
Closed
1 task done

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

pvyParts opened this issue Feb 5, 2024 · 9 comments · Fixed by #19149
Labels
bug Something isn't working

Comments

@pvyParts
Copy link

pvyParts commented Feb 5, 2024

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:
doitandbedone/ispyagentdvr-docker#618
doitandbedone/ispyagentdvr-docker#621
mentions a new repo-image

doitandbedone/ispyagentdvr-docker#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

  • I've checked all open and closed issues and my issue is not there.
@pvyParts pvyParts added the bug Something isn't working label Feb 5, 2024
@pvyParts
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

emptyDir is just as empty as PVC at first start.

@Nbr1Sniper
Copy link

This fixed my issue. Thank you sooooo much!

@StevenMcElligott
Copy link
Member

I'll add persistence to it

@sakebit
Copy link

sakebit commented Mar 11, 2024

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
Copy link
Member

I'll add persistence to it

didn't you already add persistence to this?

@StevenMcElligott
Copy link
Member

I'll add persistence to it

didn't you already add persistence to this?

it was on the todo lol

PrivatePuffin pushed a commit that referenced this issue Mar 11, 2024
…19149)

**Description**

Added the `ffmpeg6` folder to be persisted and other minor fixes

For those who didn't persist ffmpeg6 previously

Go into shell and do

```bash
cd agent
./setup-ffmpeg-linux.sh ffmpeg6/
```

⚒️ Fixes  #17970 

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants