Update SRS

  • Download the latest databasePatchApplier-1.0.xx.jar, ROOT-SRS-YYYYMMDD.war and ROOT-RDAP-YYYYMMDD.war from CoCCA.
  • Put CoCCA in maintenance and backup the database via the portal or command line if you prefer, make note of the backup timestamp and copy it to a safe location.
  • Stop resin - /init.d/resin stop
  • Stop nginx proxy - sudo systemctl stop nginx
  • Copy (and rename) /opt/resin/webapps/ROOT.war to a folder outside /opt/resin/webapps.
  • Run the databasePatchApplier-1.0.XX.jar
    java -jar databasePatchApplier-1.0.XX.jar (db_ip) (db_port) (db_name) (db_user) (db_password) 2> patch-db-error.txt
    For example
    java -jar databasePatchApplier-1.0.23.jar 127.0.0.1 5432 registry postgresuser 'tw4tHE23f345t99' 2> patch-db-error.txt
    For jar databasePatchApplier-1.0.23.jar run the updater 2 times.
  • Overwrite /opt/resin/webapps/ROOT.war with the latest ROOT-SRS-YYYYMMDD.war available from CoCCA. (rename ROOT-SRS-YYYYMMDD.war to ROOT.war)
  • Start resin - /etc/init.d/resin start
  • Start nginx - sudo systemctl start nginx
  • The initial load after an upgrade could take some time ( a few mins ) as the system will re-run some SQL to check db schema.
  • Login to portal and check db and application version.
  • If you have not already activated admin users from the command line using the jar, then you will need to activate them before they can login to the web potal. Contact CoCCA for instructions.
  • If you encounter an issue upgrading - or want CoCCA to or be online while you upgrade, contact CoCCA support in your NIC Mattermost support channel.

Update RDAP

  • Copy the latest ROOT-RDAP-YYYYMMDD.war to the RDAP server.
  • Stop tomcat - sudo systemctl stop tomcat
  • Stop nginx - sudo systemctl stop nginx
  • Overwrite /opt/tomcat/webapps/ROOT.war with ROOT-RDAP-YYYYMMDD.war (rename ROOT-RDAP-YYYYMMDD.war to ROOT.war)
  • Start tomcat - sudo systemctl start tomcat
  • Start nginx - sudo systemctl start nginx