Prepare for upgrading SENTIENT ANALYTICS
Stop SENTIENT ANALYTICS Check if SENTIENT ANALYTICS and database services are stopped.
1
sudo systemctl stop sentient-analytics
1
sudo systemctl status sentient-analytics
Backup Database
Make a backup of the database before upgrading.
Check PostgreSQL status. It is unnecessary to stop PostgreSQL for the backup.
1
sudo systemctl status postgresql
Make sure you have enough space to place a backup of the database
Check database size
1
sudo -u postgres psql -c "SELECT pg_size_pretty( pg_database_size('sentient-analytics') );"
Check free space
1
df -h /
If there is enough free space - make a backup.
1
sudo -Hiu postgres pg_dump sentient-analytics > sentient-analytics.sql.bak
Check backup file being created.
Upgrading SENTIENT ANALYTICS to 1.14.0
SENTIENT ANALYTICS package download
1
wget https://dist.sentient.invenia.in/sentient-analytics-1.14.0.deb
SENTIENT ANALYTICS service upgrade
- Install SENTIENT ANALYTICS service
1
sudo dpkg -i sentient-analytics-1.14.0.deb
NOTE: Package installer will ask you to merge your sentient-analytics configuration. It is preferred to use merge option to make sure that all your previous parameters will not be overwritten.
Execute regular upgrade script:
1
sudo /usr/share/sentient-analytics/bin/install/upgrade.sh --fromVersion=1.13.2
Start the service
1
sudo service sentient-analytics start