Installing/upgrading Viewpoint > Reinstalling Viewpoint

1.3 Reinstalling Viewpoint

If you are reinstalling Moab Viewpoint for Moab Cloud 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 and reporting.war files 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 and reporting.war to the Tomcat /webapps directory.
  8. > cp /tmp/viewpoint/dist/moab.war /var/lib/tomcat6/webapps

    > cp /tmp/viewpoint/dist/reporting.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 sqlserver database type:

    > vi /opt/viewpoint/setup.properties
    #dbType=mssql
    #dbHost=hostName
    #dbPort=1433
    #dbName=viewpoint
    #dbSchema=viewpoint
    #dbUser=viewpoint
    #dbPassword=myPassword
    #tempDir=/tmp
  11. Verify that the Tomcat user has read/write privileges to the Viewpoint home directory. For example, you could run the following:
  12. 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).

  13. Start the Tomcat service.
  14. > service tomcat6 start
  15. Back up the setup.properties file and delete it from the Viewpoint home directory.

  16. Configure Viewpoint (see Configuring Viewpoint).

Related topics