We have changed the way PostgreSQL is installed, this change will make it so that PostgreSQL can be installed using RedHat repositories instead of relying on external sources. This change makes the server more secure as you can use your internal RedHat repositories to install PostgreSQL. However, to apply this upgrade and all future upgrades you will need to follow the steps below.
Firstly Backup your data, to do this you can use the backup script provided on the Readability server. It's located in /home/visiblethread/VisibleThreadTools/ directory. Once in the 'VisibleThreadTools' directory run the following command.
Once the backup is finished it will be placed in the 'vtbackups' directory. the full file path is /home/visiblethread/VisibleThreadTools/vtbackups.
Next, you need to remove the old visiblethread packages because the current PostgreSQL version depends on them and you won't be able to remove them unless you remove the visiblethread packages first. So to remove the visiblethread and PostgreSQL packages run the following commands.
rpm -e visiblethread-readability-2.2-1.x86_64
rpm -e visiblethread-api-0.16-1.x86_64
rpm -e postgresql10-contrib-10.10-1PGDG.rhel7.x86_64 postgresql10-10.10-1PGDG.rhel7.x86_64 postgresql10-server-10.10-1PGDG.rhel7.x86_64
Once the packages are removed you can now upgrade to the latest version of VisibleThread Readability. To do this run the following commands.
subscription-manager repos --enable rhel-server-rhscl-7-rpms
yum install -y visiblethread-api-0.18-1.x86_64.rpm
yum install -y visiblethread-readability-2.3.1-1.x86_64.rpm
Lastly, restore your data then login and check everything is working as normal. To restore your data please use the restore script provided on the Readability Server. Run the following command to do so, note that <Backupfile> is the name of your latest backup in the 'vtbackups' directory.
sudo /opt/visiblethread/VisibleThreadTools/vt-restore.sh /home/visiblethread/VisibleThreadTools/vtbackup/<Backupfile>
You should now be running the latest version of VisibleThread Readability. The version number 2.3.1 should be displayed on the login screen.