Summary
1. An existing docker volume ignores new AMS server apps
2. Manually executing install.sh script's -r option also fails
3. Under certain circumstances, creating an application fails without a detailed message
Hi team, last week I tried to update our AMS server from 2.4.2.1 to 2.4.3 to make use of SRT ingestion, but it didn't work as expected.
My workflow is based on the official docker-compose case. (Even if there wasn't one, I have to come up with one) With Dockerfile that ADDs ams.zip file into the ubuntu image, it successfully "install"ed the latest version but always ended up staying at the previous version.
I checked the Dockerfile, saw the installation script, tried the `-r true` option, but failed. Because `docker-compose` has the `antmedia` directory mounted as a volume but the installation script tried to `mv` it as a backup, which docker disallows of course. I had to fiddle around the script (for example using `cp -r -p` instead of `mv` but it never completed for some reason?) but ended up wiping the docker volume and start anew.
I think an official way to migrate a docker volume to the latest version that supports docker-compose would be really helpful in the long run.
One more thing,
I found out that one specific ec2 instance was flat rejecting any application creation in the dashboard, regardless of WAR or not. Without comprehensive error messages it just failed to create an application.
I digged into the container and found out that a `StreamApp-{version}.war` file is sitting alone in a directory I tried to create. Even `create.sh` didn't work with another cryptic message, 'jar command not found'. It turns out that very container was indeed missing `jar` command for whatever reasons. It had java SDK (not a runtime) installed. `java --version` worked totally fine with openjdk-11-sdk listed but checking `which jar` resulted none! So I re-installed openjdk-11-sdk again through `apt-get` and then I could create an application in the AMS dashboard as expected. Phew.
I am not a Java expert but yeah, that happened. 🤷♂️
Question
Jinhyeok Lee
Hi team, last week I tried to update our AMS server from 2.4.2.1 to 2.4.3 to make use of SRT ingestion, but it didn't work as expected.
My workflow is based on the official docker-compose case. (Even if there wasn't one, I have to come up with one) With Dockerfile that ADDs ams.zip file into the ubuntu image, it successfully "install"ed the latest version but always ended up staying at the previous version.
I checked the Dockerfile, saw the installation script, tried the `-r true` option, but failed. Because `docker-compose` has the `antmedia` directory mounted as a volume but the installation script tried to `mv` it as a backup, which docker disallows of course. I had to fiddle around the script (for example using `cp -r -p` instead of `mv` but it never completed for some reason?) but ended up wiping the docker volume and start anew.
I think an official way to migrate a docker volume to the latest version that supports docker-compose would be really helpful in the long run.
One more thing,
I found out that one specific ec2 instance was flat rejecting any application creation in the dashboard, regardless of WAR or not. Without comprehensive error messages it just failed to create an application.
I digged into the container and found out that a `StreamApp-{version}.war` file is sitting alone in a directory I tried to create. Even `create.sh` didn't work with another cryptic message, 'jar command not found'. It turns out that very container was indeed missing `jar` command for whatever reasons. It had java SDK (not a runtime) installed. `java --version` worked totally fine with openjdk-11-sdk listed but checking `which jar` resulted none! So I re-installed openjdk-11-sdk again through `apt-get` and then I could create an application in the AMS dashboard as expected. Phew.
I am not a Java expert but yeah, that happened. 🤷♂️
Best,
Jinhyeok Lee
Edited by Jinhyeok LeeLink to comment
Share on other sites
Top Posters For This Question
2
1
Popular Days
Jul 13
2
Jul 11
1
Top Posters For This Question
Jinhyeok Lee 2 posts
Murat Eminoglu 1 post
Popular Days
Jul 13 2022
2 posts
Jul 11 2022
1 post
2 answers to this question
Recommended Posts