ispysoftware / agent-install-scripts

Setup scripts for Agent DVR
GNU General Public License v3.0
24 stars 8 forks source link

Agent DVR: Installing FFmpeg 6 #43

Open MarcTremblay1981 opened 4 days ago

MarcTremblay1981 commented 4 days ago

Under a brand new (100% freshly installed) macOS 14.5 environment, I ran the install script: bash <(curl -H 'Cache-Control: no-cache, no-store' -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/osx_setup2.sh")

It downloaded and installed a bunch of things and asked for my password to set AgentDVR as a service and then the output was:

Started service
go to http://localhost:8090 to configure

So I went there and over the last 10 minutes, all I see is this. What do I do now?

Screenshot 2024-06-29 at 9 25 45 AM

I read elsewhere that /logs.html might contain a clue, so here's a bit from it that seems relevant:

Screenshot 2024-06-29 at 11 03 23 AM
MarcTremblay1981 commented 4 days ago

Alright, I just figured it out and it works now so I'll leave the solution here for the next person to save them from pulling all their hair out. Note to the Agent DVR developers: This should really be added to your install script somehow as it makes it very confusing for a newbie to install Agent DVR without this missing command.

After the normal install procedure has finished, you have to do this manually in the Terminal: sudo launchctl unload -w /Library/LaunchDaemons/com.ispy.agent.dvr.plist ...and then symlink ffmpeg install folder to where Agent DVR is expecting it AND NOTE THAT "6.1.1_2" WILL BE SOMETHING ELSE IN THE FUTURE SO ADAPT THE PATH TO THE VERSION YOU'VE GOT. ln -s /opt/homebrew/Cellar/ffmpeg@6/6.1.1_2 /opt/homebrew/Cellar/ffmpeg/6 ...and then re-launch Agent DVR deamon: sudo launchctl load -w /Library/LaunchDaemons/com.ispy.agent.dvr.plist

Hope it helps you, the reader, in the near future. I've personally wasted an hour to figure this out ;-)

ispysoftware commented 3 days ago

Thanks, fix for this in next update

On Sat, Jun 29, 2024 at 11:28 PM MarcTremblay1981 @.***> wrote:

Alright, I just figured it out and it works now so I'll leave the solution here for the next person to save them from pulling all their hair out. Note the Agent DVR developers: This should really be added to your install script somehow as it makes it very confusing for a newbie to install Agent DVR without this missing command.

After the normal install procedure has finished, you have to do this manually in the Terminal: sudo launchctl unload -w /Library/LaunchDaemons/com.ispy.agent.dvr.plist ...and then symlink ffmpeg install folder to where Agent DVR is expecting it AND NOTE THAT "6.1.1_2" WILL BE SOMETHING ELSE IN THE FUTURE SO ADAPT THE PATH TO THE VERSION YOU'VE GOT. ln -s @.***/6.1.1_2 /opt/homebrew/Cellar/ffmpeg/6 ...and then re-launch Agent DVR deamon: sudo launchctl load -w /Library/LaunchDaemons/com.ispy.agent.dvr.plist

Hope it helps you, the reader, in the near future. I've personally wasted an hour to figure this out ;-)

— Reply to this email directly, view it on GitHub https://github.com/ispysoftware/agent-install-scripts/issues/43#issuecomment-2198234442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGDKXO3KGASRJJWQCYCCETZJ3HDVAVCNFSM6AAAAABKDGTB36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGIZTINBUGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>