I'm using Terraform Packer to create an AMI. Starting with Ubuntu 20.04.5 LTS and then running a script to install Ant Media Server (see attached). The AMI is then launched by an AWS Autoscaling Group.
When I try to publish a stream over RTMP, there's always an InvocationTargetException and an InterruptedException - see attached log. I need to SSH into the console, manually restart the service (`sudo systemctl restart antmedia`) and then the server will work as expected.
Question
Karel
I'm using Terraform Packer to create an AMI. Starting with Ubuntu 20.04.5 LTS and then running a script to install Ant Media Server (see attached). The AMI is then launched by an AWS Autoscaling Group.
When I try to publish a stream over RTMP, there's always an InvocationTargetException and an InterruptedException - see attached log. I need to SSH into the console, manually restart the service (`sudo systemctl restart antmedia`) and then the server will work as expected.
ant-media-server.log main.pkr.hcl setup_ant.sh
Link to comment
Share on other sites
Top Posters For This Question
4
3
Popular Days
Jan 9
6
Jan 5
1
Top Posters For This Question
Karel 4 posts
Yash 3 posts
Popular Days
Jan 9 2023
6 posts
Jan 5 2023
1 post
Popular Posts
Yash
Hi @Karel On the AMS image from the AWS marketplace, we experienced a similar RTMP problem. You can check the following GitHub issue : https://github.com/ant-media/Ant-Media-Server/issues/4028 Th
Yash
@Karel I believe you can use ffmpeg in a bash script to create an RTMP stream using an mp4 file for a short period of time. You won't need to carry out any manual work in this approach. You use u
6 answers to this question
Recommended Posts