Ant-Media-Server
Ant-Media-Server copied to clipboard
Starting docker container on ARM server crashes
Short description
After building and starting the docker container on an ARM server, I get a Java instantiation error, and the program exits
Environment
- Operating system and version: Ubuntu 20.04 aarch64
- Java version: N/A
- Ant Media Server version: Enterprise 2.4.3
- Browser name and version: N/A
Steps to reproduce
- Build docker container on specified OS
- Attempt to run container using
docker run -d --name antmedia --network=host -it antmediaserver
Expected behavior
The server starts without crashing
Actual behavior
The server spits out Java instantiation error and docker container exits.
Logs
Logs can be found here
I think I know this problem. We can provide a quick workaround solution for that and permanent solution is already in its way.
Thank you @samfry13
I think I know this problem. We can provide a quick workaround solution for that and permanent solution is already in its way.
Awesome, great news. What is the workaround in the meantime?
Thank you for follow up.
Can you just disable the SRT bean in the /usr/local/antmedia/conf/red5-common.xml
and start again?
- Just open the file
/usr/local/antmedia/conf/red5-common.xml
- Comment out the srtAdaptor as follows
<!--
<bean id="srtAdaptor" class="#{ T(io.antmedia.rest.RestServiceBase).isEnterprise() ? 'io.antmedia.enterprise.srt.SRTAdaptor' : 'io.antmedia.srt.SRTAdaptor' }"></bean>
-->
- Save the file
- Rebuild image if it is necessary
- Start the container
If it does not work, please let me have the logs (/usr/local/antmedia/log/ant-media-server.log and /usr/local/antmedia/log/antmedia-error.log)
Logs can be found here I cannot reach the logs. I think it's expired.
~~Sorry for the late response. When commenting out that adapter, then rezipping up the folder, then trying to build the container again, the build process fails, and these are the logs I get.~~
Edit: After messing around some more, I got the image to build, and it's seemingly up and running. Thanks for the help!
Thank you for letting us know @samfry13
Hi @samfry13 ,
Let me update you.
SRT ARM64 support is added in this issue(#4210) and it should work without changing the bean in the /usr/local/antmedia/conf/red5-common.xml
You can download the latest snapshot(Ant Media Server Latest Snapshot(Unstable)) under your subscriptions at antmedia.io
If you use AMS in some marketplaces and you want to test the latest snapshot, I can share the latest snapshot via email. Just send me an email(mekya at antmedia dot io) about that
FYI