(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.31.1 Upgrade the Viewpoint Server
On the Viewpoint Server Host, do the following:
[root]# systemctl stop httpd.service
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]# zypper install moab-viewpoint
[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]# zypper install moab-viewpoint
Upgrade the Viewpoint RPM.
[root]# zypper 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_*
[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
Viewpoint has a number of environment variables used to configure a Viewpoint installation and troubleshoot operating issues. See 5.4.1 General configuration issues for more information about Viewpoint environment variables.
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]# systemctl start httpd.service
3.31.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.31.2 Upgrade the Viewpoint File Manager Service
On the Moab Server Host where the Viewpoint File Manager Service resides, do the following:
[root]# zypper install moab-viewpoint-filemanager
[root]# systemctl restart acfileman.service
3.31.3 Update the Viewpoint License
3.31.4 Verify Base Roles are Present
As part of the Viewpoint upgrade, if you are upgrading from version 9.0.2 or prior, you will need to verify that the base roles are present.
Do the following:
Click to enlarge |
Click to enlarge |
However, if one of the base roles is not present, you will need to recreate (restore) the base roles.
Click to enlarge |
You can also modify the default roles and create new roles as needed. See About Roles in the Moab ViewpointReference Guide for more information.