Upgrading ThingsBoard PE to 3.3.4.1
NOTE:
These upgrade steps are applicable for ThingsBoard version 3.3.4PE. In order to upgrade to 3.3.4.1PE you need to upgrade to 3.3.4PE first.
ThingsBoard PE package download
Download ThingsBoard PE installation package for Windows: thingsboard-windows-3.3.4.1pe.zip.
ThingsBoard PE service upgrade
- Stop ThingsBoard service if it is running.
- Make a backup of previous ThingsBoard PE configuration located in <ThingsBoard install dir>\conf (for ex. C:\thingsboard\conf).
- Unzip installation archive to ThingsBoard install dir.
- Compare and merge your old ThingsBoard configuration files (from the backup you made in the first step) with new ones.
Start the service
Upgrading ThingsBoard PE to 3.3.4
NOTE:
These upgrade steps are applicable for ThingsBoard version 3.3.3PE. In order to upgrade to 3.3.4PE you need to upgrade to 3.3.3PE first.
ThingsBoard PE package download
Download ThingsBoard PE installation package for Windows: thingsboard-windows-3.3.4pe.zip.
ThingsBoard PE service upgrade
- Stop ThingsBoard service if it is running.
- Make a backup of previous ThingsBoard PE configuration located in <ThingsBoard install dir>\conf (for ex. C:\thingsboard\conf).
- Unzip installation archive to ThingsBoard install dir.
- Compare and merge your old ThingsBoard configuration files (from the backup you made in the first step) with new ones.
- Finally, run upgrade.bat script to upgrade ThingsBoard to the new version.
NOTE:
Scripts listed above should be executed using Administrator Role.
Execute regular upgrade script:
1
| C:\thingsboard>upgrade.bat --fromVersion=3.3.3
|
Start the service
Upgrading ThingsBoard PE to 3.3.3
NOTE: These upgrade steps are applicable for ThingsBoard version 3.3.2PE. In order to upgrade to 3.3.3PE you need to upgrade to 3.3.2PE first.
Important note before upgrading to ThingsBoard 3.3.3
ThingsBoard UI was migrated to Angular 12. You need to re-build your custom widgets and rule nodes (which use UI) on Angular 12.
ThingsBoard PE package download
Download ThingsBoard PE installation package for Windows: thingsboard-windows-setup-3.3.3pe.exe.
ThingsBoard PE service upgrade
- Stop ThingsBoard service if it is running.
NOTE Scripts listed above should be executed using Administrator Role.
Execute regular upgrade script:
1
| C:\thingsboard>upgrade.bat --fromVersion=3.3.2
|
Start the service
Upgrading ThingsBoard PE to 3.3.2
NOTE: These upgrade steps are applicable for ThingsBoard version 3.3.1PE. In order to upgrade to 3.3.2PE you need to upgrade to 3.3.1PE first.
ThingsBoard PE package download
Download ThingsBoard PE installation package for Windows: thingsboard-windows-setup-3.3.2pe.exe.
ThingsBoard PE service upgrade
- Stop ThingsBoard service if it is running.
- Make a backup of previous ThingsBoard PE configuration located in <ThingsBoard install dir>\conf (for ex. C:\thingsboard\conf).
- Run installation package thingsboard-windows-setup-3.3.1pe.exe.
- Compare your old ThingsBoard configuration files (from the backup you made in the first step) with new ones.
- Please make sure that you set database.ts.type parameter value (in the file <ThingsBoard install dir>\conf\thingsboard.yml) to “cassandra” instead of “sql” if you are using Cassandra database for timeseries data:
1
2
3
4
| database:
ts_max_intervals: "${DATABASE_TS_MAX_INTERVALS:700}" # Max number of DB queries generated by single API call to fetch telemetry records
ts:
type: "${DATABASE_TS_TYPE:sql}" # cassandra, sql, or timescale (for hybrid mode, DATABASE_TS_TYPE value should be cassandra, or timescale)
|
- Finally, run upgrade.bat script to upgrade ThingsBoard to the new version.
NOTE Scripts listed above should be executed using Administrator Role.
Execute regular upgrade script:
1
| C:\thingsboard>upgrade.bat --fromVersion=3.3.1
|
Start the service
If you use Redis for caching, you need to flush all stored keys before starting the ThingsBoard.
Connect to your Redis instance (or container/pod, depending on your setup) and run the command:
redis-cli flushall
Please note that this command is applicable only if you use Redis exclusively for ThingsBoard. If other applications use Redis, you need to locate the ThingsBoard database and flush only that. The default database index is 0, configurable with REDIS_DB ThingsBoard environment value.
redis-cli
select 0
flushdb
Upgrading ThingsBoard PE to 3.3.1
NOTE: These upgrade steps are applicable for ThingsBoard version 3.3.0PE. In order to upgrade to 3.3.1PE you need to upgrade to 3.3.0PE first.
ThingsBoard PE package download
Download ThingsBoard PE installation package for Windows: thingsboard-windows-setup-3.3.1pe.exe.
ThingsBoard PE service upgrade
- Stop ThingsBoard service if it is running.
- Make a backup of previous ThingsBoard PE configuration located in <ThingsBoard install dir>\conf (for ex. C:\thingsboard\conf).
- Run installation package thingsboard-windows-setup-3.3.1pe.exe.
- Compare your old ThingsBoard configuration files (from the backup you made in the first step) with new ones.
- Please make sure that you set database.ts.type parameter value (in the file <ThingsBoard install dir>\conf\thingsboard.yml) to “cassandra” instead of “sql” if you are using Cassandra database for timeseries data:
1
2
3
4
| database:
ts_max_intervals: "${DATABASE_TS_MAX_INTERVALS:700}" # Max number of DB queries generated by single API call to fetch telemetry records
ts:
type: "${DATABASE_TS_TYPE:sql}" # cassandra, sql, or timescale (for hybrid mode, DATABASE_TS_TYPE value should be cassandra, or timescale)
|
- Finally, run upgrade.bat script to upgrade ThingsBoard to the new version.
NOTE Scripts listed above should be executed using Administrator Role.
Execute regular upgrade script:
1
| C:\thingsboard>upgrade.bat --fromVersion=3.3.0
|
Start the service
If you use Redis for caching, you need to flush all stored keys before starting the ThingsBoard.
Connect to your Redis instance (or container/pod, depending on your setup) and run the command:
redis-cli flushall
Please note that this command is applicable only if you use Redis exclusively for ThingsBoard. If other applications use Redis, you need to locate the ThingsBoard database and flush only that. The default database index is 0, configurable with REDIS_DB ThingsBoard environment value.
redis-cli
select 0
flushdb
Upgrading ThingsBoard PE to 3.3
NOTE: These upgrade steps are applicable for ThingsBoard version 3.2.2PE. In order to upgrade to 3.3PE you need to upgrade to 3.2.2PE first.
ThingsBoard PE package download
Download ThingsBoard PE installation package for Windows: thingsboard-windows-setup-3.3pe.exe.
ThingsBoard PE service upgrade
- Stop ThingsBoard service if it is running.
- Make a backup of previous ThingsBoard PE configuration located in <ThingsBoard install dir>\conf (for ex. C:\thingsboard\conf).
- Run installation package thingsboard-windows-setup-3.3pe.exe.
- Compare your old ThingsBoard configuration files (from the backup you made in the first step) with new ones.
- Please make sure that you set database.ts.type parameter value (in the file <ThingsBoard install dir>\conf\thingsboard.yml) to “cassandra” instead of “sql” if you are using Cassandra database for timeseries data:
1
2
3
4
| database:
ts_max_intervals: "${DATABASE_TS_MAX_INTERVALS:700}" # Max number of DB queries generated by single API call to fetch telemetry records
ts:
type: "${DATABASE_TS_TYPE:sql}" # cassandra, sql, or timescale (for hybrid mode, DATABASE_TS_TYPE value should be cassandra, or timescale)
|
- If you were using MQTT over SSL instead of default MQTT, please make sure you have a proper configuration (thingsboard.yml) of ports/addresses:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| transport:
. . .
# Local MQTT transport parameters
mqtt:
# Enable/disable mqtt transport protocol.
enabled: "${MQTT_ENABLED:true}"
bind_address: "${MQTT_BIND_ADDRESS:0.0.0.0}"
bind_port: "${MQTT_BIND_PORT:1883}"
. . .
ssl:
# Enable/disable SSL support
enabled: "${MQTT_SSL_ENABLED:true}"
# MQTT SSL bind address
bind_address: "${MQTT_SSL_BIND_ADDRESS:0.0.0.0}"
# MQTT SSL bind port
bind_port: "${MQTT_SSL_BIND_PORT:8883}"
|
- Finally, run upgrade.bat script to upgrade ThingsBoard to the new version.
NOTE Scripts listed above should be executed using Administrator Role.
Execute regular upgrade script:
1
| C:\thingsboard>upgrade.bat --fromVersion=3.2.2
|
Start the service
If you use Redis for caching, you need to flush all stored keys before starting the ThingsBoard.
Connect to your Redis instance (or container/pod, depending on your setup) and run the command:
redis-cli flushall
Please note that this command is applicable only if you use Redis exclusively for ThingsBoard. If other applications use Redis, you need to locate the ThingsBoard database and flush only that. The default database index is 0, configurable with REDIS_DB ThingsBoard environment value.
redis-cli
select 0
flushdb