Hello!
Scanning my newly installed community7, I noticed it includes Apache Tomcat 9.0.41. This needs to be at least 9.0.43 due to remote code execution vulnerabilities present. Has anyone else has successfully upgraded Tomcat on their Community 6 or 7 installations?
I installed /opt/apache-tomcat-9.0.43 and it looks like all I need to do is symlink it to /opt/tomcat? I'll be stopping Community tonight, repointing /opt/tomcat to the 9.0.43 version, and wanted to be as prepared as possible.
Are there any configuration files that need to be copied over, or is this as straightforward as it seems?
Solved! Go to Solution.
!SUCCESS!
It appears that upgrading Apache Tomcat on the Community7 ansible installation is 'ALMOST' as straightforward as it seems.
The /etc/opt/alfresco/setenv.sh file deployed with community7.0 is not IDEMPOTENT. It references software directories with version#, not their universal symlinks. This of course breaks Alfresco the second you remove /opt/apache-tomcat-9.0.41 so to correct this small oversite do the following.
EDIT: /etc/opt/alfresco/setenv.sh
BEFORE:
export TOMCAT_HOME=/opt/apache-tomcat-9.0.41
AFTER:
export TOMCAT_HOME=/opt/tomcat
AFTER THIS THE TOMCAT UPGRADE PROCEDURE 9.041 to 9.043 IS EASY.
# cd /opt # wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.43/bin/apache-tomcat-9.0.43.tar.gz # gunzip apache-tomcat-9.0.43.tar.gz # tar vxf apache-tomcat-9.0.43.tar # chown -R alfresco:alfresco /opt/apache-tomcat-9.0.43 # systemctl stop alfresco-content # unlink /opt/tomcat # ln -s /opt/apache-tomcat-9.0.43 /opt/tomcat # systemctl start alfresco-content
!SUCCESS!
It appears that upgrading Apache Tomcat on the Community7 ansible installation is 'ALMOST' as straightforward as it seems.
The /etc/opt/alfresco/setenv.sh file deployed with community7.0 is not IDEMPOTENT. It references software directories with version#, not their universal symlinks. This of course breaks Alfresco the second you remove /opt/apache-tomcat-9.0.41 so to correct this small oversite do the following.
EDIT: /etc/opt/alfresco/setenv.sh
BEFORE:
export TOMCAT_HOME=/opt/apache-tomcat-9.0.41
AFTER:
export TOMCAT_HOME=/opt/tomcat
AFTER THIS THE TOMCAT UPGRADE PROCEDURE 9.041 to 9.043 IS EASY.
# cd /opt # wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.43/bin/apache-tomcat-9.0.43.tar.gz # gunzip apache-tomcat-9.0.43.tar.gz # tar vxf apache-tomcat-9.0.43.tar # chown -R alfresco:alfresco /opt/apache-tomcat-9.0.43 # systemctl stop alfresco-content # unlink /opt/tomcat # ln -s /opt/apache-tomcat-9.0.43 /opt/tomcat # systemctl start alfresco-content
Yah! Well done, & thanks for the extensive update - really useful to other users
Cheers,
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.