ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.27k stars 627 forks source link

Upgrading to 2.4 #3572

Closed alxlion closed 3 years ago

alxlion commented 3 years ago

Short description

After 2.4 upgrade, webserver doesn't listen on 5080 anymore.

Environment

Steps to reproduce

  1. Get the latest installer
  2. Upgrade AMS EE 2.3.3 to 2.4
  3. Check the opened ports (5080 is not running anymore)

Expected behavior

Webserver should listen on 5080 after upgrade.

Actual behavior

Service is running well but nothing on port 5080.

Logs

https://zerobin.net/?0c133fd1561ae334#KhE5Lcz9YS0aUIyKZhrIASIXe2ZROTsKrL6SE+IWQ7w=

mekya commented 3 years ago

Thank you for the issue. We'll try to assign in next week meeting(Monday).

alxlion commented 3 years ago

Hi, I did a clean install and all is working good.

Thanks

mekya commented 3 years ago

Thank you for letting us know. Let us investigate the case on our end.

harshald28 commented 3 years ago

Hi,

Yes, after the upgrade 5080 is not listening to any request. Finally, it worked with clean installation but due to that, we need to add our server config settings again.

@alxlion thanks for this ticket.

mekya commented 3 years ago

Yes, we've scheduled this issue for this week.

donikatz commented 3 years ago

Is this still open? I need to upgrade to 2.4.0.2, but not a clean installation.

mekya commented 3 years ago

Hi @donikatz ,

Sorry my colleague has some kind of personal stuff so that he could not complete this issue. Another of my colleague will take a look at this issue in a couple of days.

mekya commented 3 years ago

Hi Guys,

Here is a quick workaround for this problem. After you make the installation

  1. Open the jee-container.xml -> /usr/local/antmedia/conf/jee-container.xml
  2. Replace the Http11AprProtocol with Http11Nio2Protocol. There are two changes. If you don't find any Http11Nio2Protocol, no worries. There should be no problem in your installation.
  3. Save and exit the file.
  4. Restart the service sudo service antmedia restart

For permanent solution, I'm updating the install script to handle this case.

mekya commented 3 years ago

I'm closing this issue guys. We've merged the PR to the master in the installation script. https://github.com/ant-media/Scripts/blob/master/install_ant-media-server.sh

Please feel free to re-open if it does not work for you