CA API Gateway - Error Can't execute upgrade script more than once

Document ID : KB000111865
Last Modified Date : 23/08/2018
Show Technical Document Details
Issue:
With most recent Portal Cumulative Release patches (e.g CR7, CR8, CR9), Portal Integration Components files have been renamed with a simplified name that covers all Gateway versions (from 8.4 to 9.3):

setup-ssg-8.4-9.3.sh 
base-8.4-9.3-package.tgz


Once user has completed the update procedure by running the setup-ssg-8.4-9.3.sh script, the code will generate a new file named "setup-8.4-9.3-ssg.done" to confirm successful installation. No matter from what Portal CRx the update come from, the file generated will remain same.
Any additional execution on the same machine (for example, for new update component installation), the script checks the existence of such file and if found, it will terminate the installation routine.

 
Resolution:
In order to allow the update script to be executed again on the same Gateway, it is necessary to rename or remove the setup-8.4-9.3-ssg.done file that was created by a previous update instance.

- to rename:
# mv /opt/SecureSpan/setup-8.4-9.3-ssg.done /opt/SecureSpan/setup-8.4-9.3-ssg.OLD

- to remove
# rm -f /opt/SecureSpan/setup-8.4-9.3-ssg.done