Stand with Ukraine flag
Pricing Try it now
Trendz Analytics
Getting Started Documentation Guides
How To Activate Trendz
On this page

Trendz Analytics v1.9.x upgrade instructions for Ubuntu

Prepare for upgrading Trendz Analytics

Stop Trendz Analytics Check if Trendz and database services are stopped.

1
sudo systemctl stop trendz
1
sudo systemctl status trendz

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('trendz') );"

Check free space

1
df -h /

If there is enough free space - make a backup.

1
sudo -Hiu postgres pg_dump trendz > trendz.sql.bak

Check backup file being created.

Upgrading Trendz Analytics to 1.9.2-HF3

Doc info icon

NOTE:
Prepare for upgrading Trendz Analytics.

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.9.2-HF3.deb

Trendz Analytics service upgrade

  • Install Trendz Analytics service
1
sudo dpkg -i trendz-1.9.2-HF3.deb

NOTE: Package installer will ask you to merge your trendz 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/trendz/bin/install/upgrade.sh --fromVersion=1.8.0

Start the service

1
sudo service trendz start