Installing/upgrading Viewpoint > Reinstalling Viewpoint

1.3 Reinstalling Viewpoint

If you are reinstalling Moab Viewpoint for Moab HPC Suite, including retrying an upgrade, complete the instructions found in Before installing Viewpoint, then perform the following steps.

To reinstall Viewpoint

  1. Optional: back up your Viewpoint home directory and /webapp directories if you want to keep your current Viewpoint settings.
  2. > cp -r /opt/viewpoint /tmp/viewpoint/

    > cp -r /var/lib/tomcat6/webapps/moab /tmp/viewpoint/

    > cp -r /var/lib/tomcat6/webapps/reporting/ /tmp/viewpoint/

  3. Clean out the database by running the drop_tables.sql script. Remember to run the script in context.
  4. > mysql -u root -p viewpoint < /tmp/viewpoint/sql/[dbType]/drop_tables.sql

  5. Clean out the Viewpoint home directory. Remove the moab.war file (and, if applicable, the reporting.war file) and the /moab and /reporting directories from the Tomcat directory. Remove all Viewpoint-related contents from both the Tomcat /work directories.
  6. > rm -rf /opt/viewpoint/* /usr/share/tomcat6/webapps/moab* /usr/share/tomcat6/work/Catalina/localhost/moab*/usr/share/tomcat6/work/Catalina/localhost/reporting* /var/lib/tomcat6/work/Catalina/localhost/moab* /var/lib/tomcat6/work/Catalina/localhost/reporting*

  7. Copy moab.war to the Tomcat /webapps directory. Do not run more than one instance of Viewpoint within Tomcat.
  8. > cp /tmp/viewpoint/moab.war /var/lib/tomcat6/webapps

  9. Copy your working setup.properties file back into the Viewpoint home directory.
  10. > cp /opt/viewpoint/bak/setup.properties.[dbType]

    If you do not have a backed up, working copy, create one from the templates and  change its name to setup.properties, removing the .[dbType]. Modify it according to your database's type, host name, port, name, schema, admin username, admin password, and temporary directory. The included template is based on the mysql database type:

    > vi /opt/viewpoint/setup.properties

    #dbType=mysql

    #dbHost=hostName

    #dbPort=1433

    #dbName=viewpoint

    #dbSchema=viewpoint

    #dbUser=viewpoint

    #dbPassword=myPassword

    #tempDir=/tmp

  11. If you are installing Moab Accounting Manager, define the MAM URL in the ViewpointConfig.groovy file.
  12. mam.url="https://<hostname>/cgi-bin/mam/index.cgi?start=login"

  13. Verify that the Tomcat user has read/write privileges to the Viewpoint home directory. For example, you could run the following:
  14. chown -R tomcat6:tomcat6 /opt/viewpoint

    You must grant read privileges for this directory to the Tomcat user. If you do not know the Tomcat user (often tomcat or tomcat6), use the owner of the Tomcat home directory (usually /var/lib/tomcat6).

  15. Run the setup_hpc.sql script. This is located in the sql/[dbType] directory.
  16. Start the Tomcat service.
  17. > service tomcat6 start

    If you are running Fedora, you must navigate to $CATALINA_HOME/bin/ and run startup.sh as root:

    [root]> $CATALINA_HOME/bin/startup.sh

  18. Configure Viewpoint. To do so, see Configuring Viewpoint.

If you want reporting in Viewpoint, please contact Adaptive Computing Professional Services.

Related topics