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
/webapp
directories if you want to keep your current Viewpoint settings.> cp -r /opt/viewpoint /tmp/viewpoint/
> cp -r /var/lib/tomcat6/webapps/moab /tmp/viewpoint/
> cp -r /var/lib/tomcat6/webapps/reporting/ /tmp/viewpoint/
> mysql -u root -p viewpoint < /tmp/viewpoint/sql/[dbType]/drop_tables.sql
> 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*
> cp /tmp/viewpoint/moab.war /var/lib/tomcat6/webapps
> 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
mam.url="https://<hostname>/cgi-bin/mam/index.cgi?start=login"
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).
> 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
If you want reporting in Viewpoint, please contact Adaptive Computing Professional Services.
Related topics