Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Unpack the distribution Zip archive in a directory e.g. under /tmp:
    No Format
    cd /tmp
    unzip repository-dist.zip
    
  2. Shut down your Tomcat java servlet container.
  3. Delete the old repo webapp subdirectory and WAR file, since there should not be any local modifcations there. For example:
    No Format
    rm -rf ${CATALINA_HOME}/webapps/ROOT*
    
  4. Save the current release files in case you have to roll back:
    No Format
    cd ${REPO_HOME}
    mv etc etc.old
    mv lib lib.old
    mv webapps webapps.old
    
  5. Copy the distribution into place (in this example the distribution is version 1.7-MS1.01) -- note there are 2 steps:
    No Format
    cp -f -rp /tmp/repository-1.7-MS1.01/* ${REPO_HOME}
    cp ${REPO_HOME}/webapps/ROOT.war ${CATALINA_HOME}/webapps/.
    
  6. Start up your tomcat java servlet container.
  7. Run the upgrade script, substituting your admin's username and password:
    No Format
    bash ${REPO_HOME}/etc/upgrade.sh USERNAME PASSWORD https://localhost:8443
    Watch the output of upgrade.sh very carefully! Pay particular attention to the final status and any messages beginning "WARN", they will indicate problems you MUST resolve.
  8. Confirm that it worked: visit the repo admin page, check for new version, and then follow the link to Show Data Model Ontology versions to confirm that "loaded" and "available" versions of the ontology are the same.When running the upgrade script, there may be messages about out-of-date NG_Internal and NG_Query graphs. Most likely, these are nothing to worry about -- check the release notes. These graphs are only initialized from static files when the repository was created, and afterward they accumulate statements, so reloading a new copy of the original data is not practical. Some releases may include instructions for making changes in these graphs when upgrading from previous versions.
  9. Download the data migration toolkit that corresponds to your repository version (in this example, version 1.7-MS1.02) and run the data migration script, substituting your admin's username and password:
    No Format
    wget  wget -O ${REPO_HOME}/etc/eagle-i-datatools-datamanagement.jar \
    http://infra.search.eagle-i.net:8081/nexus/content/repositories/\
    releases/org/eagle-i/eagle-i-datatools-datamanagement/1.7-MS1.02/\
    eagle-i-datatools-datamanagement-1.7-MS1.02.jar
    
    bash ${REPO_HOME}/etc/data-migration.sh USERNAME PASSWORD https://localhost:8443
    
    Watch the output of data-migration.sh very carefully! Pay particular attention to the final status and any messages beginning "WARN", they will indicate problems you MUST resolve. In addition to the output on screen, the data-migration script will place a data migration report in the logs directory directly under /etc.

...