(Click to open topic with navigation)
This topic provides instructions to upgrade Moab Viewpoint to the latest release version using the RPM upgrade method. It includes instructions for migrating your database schema to a new version if necessary.
Because many system-level files and directories are accessed during the installation, the instructions in this guide should be executed with root privileges.
You will see that the instructions execute commands as the root user. Please note that the same commands will work for a non-root user with the sudo command.
In this topic:
3.30.1 Upgrade the Viewpoint Server
On the Viewpoint Server Host, do the following:
[root]# service httpd stop
Beginning with the 9.0.1 release, several variables became obsolete. In addition, the configuration files were renamed and/or moved.
Remove these obsolete variables from /etc/httpd/conf.d/viewpoint.conf:
The IRIS_DEBUG variable must not be used in production; also remove this variable from /etc/httpd/conf.d/viewpoint.conf.
[root]# cp -p /opt/viewpoint/config/config.json /etc/httpd/conf.d/viewpoint.conf /tmp
[root]# cp -p /opt/viewpoint/webdav_client/client-cert.pem /opt/viewpoint/webdav_client/client-key.pem /opt/viewpoint/webdav_client/ca-cert.pem /tmp
[root]# rpm -e --nodeps moab-viewpoint [root]# rpm -q --quiet python-importlib && rpm -e python-importlib [root]# rpm -q --quiet mod_wsgi && rpm -e mod_wsgi
[root]# rm -rf /var/log/viewpoint /opt/viewpoint /etc/httpd/conf.d/viewpoint.conf /etc/cron.daily/viewpoint.sh
[root]# cp -p /opt/viewpoint/lib/viewpoint/config/config.json /opt/viewpoint/etc/viewpoint.cfg /tmp
[root]# cp -p /opt/viewpoint/lib/viewpoint/webdav_client/client-cert.pem /opt/viewpoint/lib/viewpoint/webdav_client/client-key.pem /opt/viewpoint/lib/viewpoint/webdav_client/ca-cert.pem /tmp
[root]# rpm -e --nodeps moab-viewpoint
[root]# yum install moab-viewpoint
If you are upgrading from Viewpoint 9.0.0, restore certificates to their new location:
[root]# cp -p /tmp/client-cert.pem /tmp/client-key.pem /tmp/ca-cert.pem /opt/viewpoint/lib/viewpoint/webdav_client/
All IRIS_DATABASE* SetEnv entries in /etc/httpd/conf.d/viewpoint.conf are obsolete. Database environment variables are now stored in /opt/viewpoint/etc/viewpoint.cfg. Therefore, move all your uncommented database SetEnv entries into the environment section of /opt/viewpoint/etc/viewpoint.cfg; and edit as needed to reflect the 9.0.2 renaming (see the warning later in this step for more information).
Beginning with version 9.0.2, all IRIS_* variables were renamed to VIEWPOINT_*
After you are finished, your /opt/viewpoint/etc/viewpoint.cfg will look something like this:
[admin] username = viewpoint-admin password = pbkdf2_sha256$20000$ZHeToCJgrSUH$+xmzYdhpqZCJokxO9eGzyr2B6jrfCgLlBT+pBgMis4w= [environment] VIEWPOINT_DATABASE_HOST = localhost VIEWPOINT_DATABASE_PORT = 5432 VIEWPOINT_DATABASE_NAME = moab_viewpoint VIEWPOINT_DATABASE_USER = moab_viewpoint VIEWPOINT_DATABASE_PASSWORD = changeme! [settings] past_hours = 24 future_hours = 4
For security purposes, the admin password is encrypted. In the example above, the default is the encrypted equivalent to "changeme!", which is the default for the Viewpoint instance. Change this default password to a different encrypted password. To encrypt the password, do the following (substituting "changeme!" with your password):
[root]# echo -n 'changeme!' | /opt/viewpoint/bin/viewpoint makehash Using default hasher pbkdf2_sha256$20000$ZHeToCJgrSUH$+xmzYdhpqZCJokxO9eGzyr2B6jrfCgLlBT+pBgMis4w=
The default hashing algorithm is pbkdf2_sha256. To show the other available algorithms, run /opt/viewpoint/bin/viewpoint makehash --help
Initialize Viewpoint's PostgreSQL database.
If you are upgrading from Viewpoint 9.0.0, do the following:
[root]# /opt/viewpoint/bin/viewpoint migrate --fake-initial
If you are upgrading from Viewpoint 9.0.1 or later, do the following:
[root]# /opt/viewpoint/bin/viewpoint migrate
[root]# service httpd start
3.30.1.A Update the Permissions List
Once you have updated the Viewpoint Server, you will need to update the MWS configuration in the Viewpoint Portal to sync the permissions list.
Do the following:
3.30.2 Upgrade the Viewpoint File Manager Service
On the Moab Server Host where the Viewpoint File Manager Service resides, do the following:
[root]# yum install moab-viewpoint-filemanager [root]# yum install python-setuptools
[root]# service acfileman restart
3.30.3 Update the Viewpoint License