Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Starting docker container on ARM server crashes

Open samfry13 opened this issue 2 years ago • 6 comments

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

  1. Build docker container on specified OS
  2. 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

samfry13 avatar Jun 16 '22 03:06 samfry13

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

mekya avatar Jun 20 '22 17:06 mekya

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?

samfry13 avatar Jun 20 '22 22:06 samfry13

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.

mekya avatar Jun 21 '22 09:06 mekya

~~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!

samfry13 avatar Jun 26 '22 04:06 samfry13

Thank you for letting us know @samfry13

mekya avatar Jun 27 '22 17:06 mekya

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

mekya avatar Jul 28 '22 10:07 mekya