apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.06k stars 342 forks source link

Traffic router failed with oracle jdk #3562

Open tyagian opened 5 years ago

tyagian commented 5 years ago

As traffc_router supporting OpenJDK now, when upgrading to new version it failed if oracle-jdk is already installed. It also don't try to install open-jdk. Can we make changes to remove oracle-jdk if exist and install open-jdk?

jhg03a commented 5 years ago

Can you provide more information as to how it failed?

tyagian commented 5 years ago

When upgrade was failing, this is what found in catalina logs No relevant info in traffic_router.logs

tail -f   /opt/tomcat/logs/catalina.log
/opt/tomcat/bin/catalina.sh: line 464: /usr/lib/jvm/jre/bin/java: No such file or directory
/opt/tomcat/bin/catalina.sh: line 464: /usr/lib/jvm/jre/bin/java: No such file or directory

After discussion in slack community, it was figured out TR switched from oracle jdk to openjdk and we have not installed openjdk on it. So, we installed openjdk manually first then upgraded TR again and it worked. Either TR should throw an error to install open-jdk or install during the upgrade, it's a requirement for the new version.