Trendz Analytics
Trendz Documentation
Cloud Professional Edition Community Edition IoT Gateway License Server Trendz Analytics
Try it now Pricing
Installation > Upgrade instructions
Getting Started Documentation

On this page

Upgrade instructions

Upgrading to 1.7.0

Note These steps are applicable for 1.5.0, 1.5.1 and 1.6.0 Trendz Analytics version.

Ubuntu/CentOS

Since Trendz Analytics 1.7.0 only PostgreSQL database is supported

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.7.0.deb
1
wget https://dist.thingsboard.io/trendz-1.7.0.rpm

Backup Trendz Analytics configuration files and database

For creating backup of Trendz configuration files and data storage, execute following commands:

1
2
3
cd /usr/share/trendz
sudo tar -zcvf trndz_data_old.tar.gz ./data
sudo tar -zcvf trndz_conf_old.tar.gz ./conf

Trendz Analytics service upgrade

  • Stop Trendz Analytics service if it is running.
1
$ sudo service trendz stop
  • Install latest Trendz Analytics service
1
sudo dpkg -i trendz-1.7.0.deb
1
sudo rpm -Uvh trendz-1.7.0.rpm

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.
Please make sure that you set SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME and SPRING_DATASOURCE_PASSWORD parameters value (in the file /etc/trendz/conf/trendz.conf) and application can connect to new PostgreSQL database:

1
2
3
4
# DB Configuration 
export SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/trendz
export SPRING_DATASOURCE_USERNAME=postgres
export SPRING_DATASOURCE_PASSWORD=PUT_YOUR_POSTGRESQL_PASSWORD_HERE

Execute regular upgrade script:

1
2
# Execute regular upgrade script
$ sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.6.0

Start the service

1
$ sudo service trendz start

Windows

Since Trendz Analytics 1.7.0 only PostgreSQL database is supported

  • During upgrade all data would be migrated form in-memory database into PostgreSQL
  • Please install PostgreSQL database before proceeding upgrade procedure using the following guide:

Trendz Analytics package download

Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.7.0.zip.

Trendz Analytics service upgrade

  • Stop Trendz service if it is running.
1
net stop trendz
  • Make a backup of previous Trendz Analytics configuration located in <Trendz install dir>\conf (for ex. C:\trendz\conf).
  • Make a backup of previous Trendz Analytics data storage located in <Trendz install dir>\data (for ex. C:\trendz\data).
  • Remove ThingsBoard install dir.
  • Unzip installation archive to ThingsBoard install dir.
  • Compare your old Trendz configuration files (from the backup you made in the first step) with new ones.

Please make sure that you set SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME and SPRING_DATASOURCE_PASSWORD parameters value (in the file C:\Program Files (x86)\trendz\conf\trendz.yml) and application can connect to new PostgreSQL database:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SQL DAO Configuration
spring:
  data:
    jpa:
      repositories:
        enabled: "true"
  jpa:
    open-in-view: "false"
    hibernate:
      ddl-auto: "none"
    database-platform: "${SPRING_JPA_DATABASE_PLATFORM:org.hibernate.dialect.PostgreSQLDialect}"
  datasource:
    driverClassName: "${SPRING_DRIVER_CLASS_NAME:org.postgresql.Driver}"
    url: "${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/trendz}"
    username: "${SPRING_DATASOURCE_USERNAME:postgres}"
    password: "${SPRING_DATASOURCE_PASSWORD:YOUR_POSTGRES_PASSWORD_HERE}"
    hikari:
      maximumPoolSize: "${SPRING_DATASOURCE_MAXIMUM_POOL_SIZE:5}"
  • Finally, run upgrade.bat script to upgrade Trendz to the new version.

NOTE Scripts listed above should be executed using Administrator Role.

1
C:\trendz>upgrade.bat --fromVersion=1.6.0

Start the service

1
net start trendz

Widget Bundle for ThingsBoard

In Trendz version 1.7.0 Widget Bundle for ThingsBoard was changed. You have to upgrade widget bundle to the latest version to receive latest features introduced in version 1.7.0

Download new Widget Bundle

Replace old Bundle with the new one

  • Login to ThingsBoard as tenant administrator
  • Open Widgets Library section
  • Delete old Trendz Bundle
  • Import new Trendz Bundle from previous step

Widgets that already added to ThingsBoard dashboard are not affected and should not be changed.

Upgrading to 1.6.0

These steps are applicable for 1.5.0 and 1.5.1 Trendz Analytics version.

Ubuntu/CentOS

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.6.0.deb
1
wget https://dist.thingsboard.io/trendz-1.6.0.rpm

Trendz Analytics service upgrade

  • Stop Trendz Analytics service if it is running.
1
$ sudo service trendz stop
  • Install latest Trendz Analytics service
1
sudo dpkg -i trendz-1.6.0.deb
1
sudo rpm -Uvh trendz-1.6.0.rpm

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.

Start the service

1
$ sudo service trendz start

Windows

Trendz Analytics package download

Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.6.0.zip.

Trendz Analytics service upgrade

  • Stop Trendz service if it is running.
1
net stop trendz
  • Make a backup of previous Trendz Analytics configuration located in <Trendz install dir>\conf (for ex. C:\trendz\conf).
  • Remove ThingsBoard install dir.
  • Unzip installation archive to ThingsBoard install dir.
  • Compare your old Trendz configuration files (from the backup you made in the first step) with new ones.

Start the service

1
net start trendz

Upgrading to 1.5.1

These steps are applicable for 1.5.0 Trendz Analytics version.

Ubuntu/CentOS

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.5.1.deb
1
wget https://dist.thingsboard.io/trendz-1.5.1.rpm

Trendz Analytics service upgrade

  • Stop Trendz Analytics service if it is running.
1
$ sudo service trendz stop
  • Install latest Trendz Analytics service
1
sudo dpkg -i trendz-1.5.1.deb
1
sudo rpm -Uvh trendz-1.5.1.rpm

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.

Start the service

1
$ sudo service trendz start

Windows

Trendz Analytics package download

Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.5.1.zip.

Trendz Analytics service upgrade

  • Stop Trendz service if it is running.
1
net stop trendz
  • Make a backup of previous Trendz Analytics configuration located in <Trendz install dir>\conf (for ex. C:\trendz\conf).
  • Remove ThingsBoard install dir.
  • Unzip installation archive to ThingsBoard install dir.
  • Compare your old Trendz configuration files (from the backup you made in the first step) with new ones.

Start the service

1
net start trendz

Upgrading to 1.5.0

These steps are applicable for 1.4.1 Trendz Analytics version.

Ubuntu/CentOS

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.5.0.deb
1
wget https://dist.thingsboard.io/trendz-1.5.0.rpm

Trendz Analytics service upgrade

  • Stop Trendz Analytics service if it is running.
1
$ sudo service trendz stop
  • Install latest Trendz Analytics service
1
sudo dpkg -i trendz-1.5.0.deb
1
sudo rpm -Uvh trendz-1.5.0.rpm

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.

Start the service

1
$ sudo service trendz start

Windows

Trendz Analytics package download

Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.5.0.zip.

Trendz Analytics service upgrade

  • Stop Trendz service if it is running.
1
net stop trendz
  • Make a backup of previous Trendz Analytics configuration located in <Trendz install dir>\conf (for ex. C:\trendz\conf).
  • Remove ThingsBoard install dir.
  • Unzip installation archive to ThingsBoard install dir.
  • Compare your old Trendz configuration files (from the backup you made in the first step) with new ones.

Start the service

1
net start trendz

Widget Bundle for ThingsBoard

In Trendz version 1.5.0 Widget Bundle for ThingsBoard was changed. You have to upgrade widget bundle to the latest version to receive latest features introduced in version 1.5.0

Download new Widget Bundle

Replace old Bundle with the new one

  • Login to ThingsBoard as tenant administrator
  • Open Widgets Library section
  • Delete old Trendz Bundle
  • Import new Trendz Bundle from previous step

Widgets that already added to ThingsBoard dashboard are not affected and should not be changed.

Upgrading to 1.4.1

These steps are applicable for 1.4.0 Trendz Analytics version.

Ubuntu/CentOS

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.4.1.deb
1
wget https://dist.thingsboard.io/trendz-1.4.1.rpm

Trendz Analytics service upgrade

  • Stop Trendz Analytics service if it is running.
1
$ sudo service trendz stop
  • Install latest Trendz Analytics service
1
sudo dpkg -i trendz-1.4.1.deb
1
sudo rpm -Uvh trendz-1.4.1.rpm

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.

Start the service

1
$ sudo service trendz start

Windows

Trendz Analytics package download

Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.4.1.zip.

Trendz Analytics service upgrade

  • Stop Trendz service if it is running.
1
net stop trendz
  • Make a backup of previous ThingsBoard Trendz Analytics configuration located in <Trendz install dir>\conf (for ex. C:\trendz\conf).
  • Compare your old Trendz configuration files (from the backup you made in the first step) with new ones.

Start the service

1
net start trendz

Upgrading to 1.4.0

These steps are applicable for 1.3.1 Trendz Analytics version.

Ubuntu/CentOS

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.4.0.deb
1
wget https://dist.thingsboard.io/trendz-1.4.0.rpm

Trendz Analytics service upgrade

  • Stop Trendz Analytics service if it is running.
1
$ sudo service trendz stop
  • Install latest Trendz Analytics service
1
sudo dpkg -i trendz-1.4.0.deb
1
sudo rpm -Uvh trendz-1.4.0.rpm

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.

Start the service

1
$ sudo service trendz start

Windows

ThingsBoard PE package download

Download ThingsBoard PE installation package for Windows: trendz-windows-1.4.0.zip.

ThingsBoard PE service upgrade

  • Stop Trendz service if it is running.
1
net stop trendz
  • Make a backup of previous ThingsBoard PE configuration located in <ThingsBoard install dir>\conf (for ex. C:\trendz\conf).
  • Compare your old Trendz configuration files (from the backup you made in the first step) with new ones.

Start the service

1
net start trendz