Upgrading to 1.11.0
These steps are applicable for 1.10.3 Trendz Analytics version.
Important note before upgrading to Trendz 1.11.0
Trendz backend was migrated to Java 17. Install JDK 17 and ensure that system’s default Java version is set to 17.
Please refer to Step 1 of the corresponding installation guide for detailed instructions:
Ubuntu
CentOS/RHEL
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.11.0.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.11.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.11.0.deb
|
|
1
| sudo rpm -Uvh trendz-1.11.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.10.3
|
Start the service
1
| sudo service trendz start
|
Windows
Important note before upgrading to Trendz 1.11.0
Trendz backend was migrated to Java 17. Install JDK 17 and ensure that system’s default Java version is set to 17.
Please refer to Step 1 of the installation guide for detailed instructions.
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.11.0.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.10.3
|
Start the service
Upgrading to 1.10.3-HF7
These steps are applicable for 1.10.3 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.10.3-HF7.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.10.3-HF7.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.10.3-HF7.deb
|
|
1
| sudo rpm -Uvh trendz-1.10.3-HF7.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.10.3
|
Start the service
1
| sudo service trendz start
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.10.3-HF7.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.10.3
|
Start the service
Upgrading to 1.10.3
These steps are applicable for 1.10.2 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.10.3.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.10.3.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.10.3.deb
|
|
1
| sudo rpm -Uvh trendz-1.10.3.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.10.2
|
Start the service
1
| sudo service trendz start
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.10.3.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.10.2
|
Start the service
Upgrading to 1.10.2
In Trendz 1.10.2 we add support of Python script execution for calculated fields and custom prediction models. Python script support is an experimental feature that was included into the current release.
For usage in production installations we recommend to start Python executor as a separate docker container. However, it is also possible to execute Python scripts in monolithic Trendz installations. In that case this feature requires Python 3.8 to be installed on the server same server with Trendz.
Please follow the steps below to upgrade your Trendz Analytics instance to 1.10.2 version. These steps are applicable for 1.10.1 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.10.2.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.10.2.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.10.2.deb
|
|
1
| sudo rpm -Uvh trendz-1.10.2.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.10.1
|
Start the service
1
| sudo service trendz start
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.10.2.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.10.1
|
Start the service
Upgrading to 1.10.1
These steps are applicable for 1.10.0 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.10.1.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.10.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.10.1.deb
|
|
1
| sudo rpm -Uvh trendz-1.10.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.10.0
|
Start the service
1
| sudo service trendz start
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.10.1.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.10.0
|
Start the service
Trendz Bundle update
If you are using ThingsBoard v3.5.0 or higher, you alos need to update Trendz bundle in ThingsBoard to use correct Trendz library version in ThingsBoard.
Detailed instructions how to do that you can find in this article
Upgrading to 1.10.0
These steps are applicable for 1.9.2 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.10.0-HF1.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.10.0-HF1.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.10.0-HF1.deb
|
|
1
| sudo rpm -Uvh trendz-1.10.0-HF1.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.9.2
|
Start the service
1
| sudo service trendz start
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.10.0-HF1.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.9.2
|
Start the service
Upgrading to 1.9.2-HF3
These steps are applicable for 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.9.2 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.9.2-HF3.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.9.2-HF3.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.9.2-HF3.deb
|
|
1
| sudo rpm -Uvh trendz-1.9.2-HF3.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.
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
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.9.2.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.8.0
|
Start the service
Upgrading to 1.8.2
These steps are applicable for 1.8.0 and 1.8.1 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.8.2.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.8.2.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.8.2.deb
|
|
1
| sudo rpm -Uvh trendz-1.8.2.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.8.2.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
- 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
Upgrading to 1.8.1
These steps are applicable for 1.7.0 Trendz Analytics version.
Ubuntu/CentOS
Trendz Analytics package download
1
| wget https://dist.thingsboard.io/trendz-1.8.2.deb
|
|
1
| wget https://dist.thingsboard.io/trendz-1.8.2.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.8.2.deb
|
|
1
| sudo rpm -Uvh trendz-1.8.2.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.
Execute regular upgrade script:
1
| sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.7.0
|
Start the service
1
| sudo service trendz start
|
Windows
Trendz Analytics package download
Download ThingsBoard Trendz Analytics installation package for Windows: trendz-windows-1.8.0.zip.
Trendz Analytics service upgrade
- Stop Trendz service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
1
| C:\trendz>upgrade.bat --fromVersion=1.7.0
|
Start the service
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
- 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
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
| 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.
- 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
| # SQL DAO Configuration
spring:
data:
jpa:
repositories:
enabled: "true"
jpa:
open-in-view: "false"
hibernate:
ddl-auto: "none"
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
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
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.
- 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
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.
- 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
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.
- 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
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
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.
- 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
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.
- 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