产品定价 立即试用
社区版
入门 文档 指南
架构 API 常见问题
目录

ThingsBoard CE v3.2.x CentOS升级说明

Upgrading ThingsBoard CE to 3.2.2

NOTE: These upgrade steps are applicable for ThingsBoard version 3.2.1. In order to upgrade to 3.2.2 you need to upgrade to 3.2.1 first.


文档警告图标

NOTE: Since ThingsBoard version 3.2.2 Java 11 is used

文档信息图标

Please note that Cassandra 4.x is still in beta. ThingsBoard is compatible with Cassandra 3.x as well. However, since ThingsBoard 3.2.2+ requires Java 11 and Cassandra 3.x is not compatible with Java 8, you can’t launch ThingsBoard 3.2.2+ and Cassandra 3.x on the same machine without separate docker containers for both..

Please consider using docker compose or other cluster setup to avoid issues with beta version of Cassandra.

ThingsBoard package download

1
wget https://github.com/thingsboard/thingsboard/releases/download/v3.2.2/thingsboard-3.2.2.rpm

ThingsBoard service upgrade

  • Stop ThingsBoard service if it is running.
1
$ sudo service thingsboard stop
1
sudo rpm -Uvh thingsboard-3.2.2.rpm

NOTE: Package installer will ask you to merge your thingsboard 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 database.ts.type parameter value (in the file /etc/thingsboard/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)

Execute regular upgrade script:

1
sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.2.1

Start the service

文档信息图标

若将 Redis 用于缓存,在启动 ThingsBoard 前需清空所有已存储的 key。

连接到您的 Redis 实例(或 container/pod,视部署方式而定),执行:

redis-cli flushall

注意:仅当 Redis 专门用于 ThingsBoard 时可使用此命令。若其他应用也使用 Redis,需定位 ThingsBoard 使用的数据库并仅清空该库。默认数据库 index 为 0,可通过 ThingsBoard 环境变量 REDIS_DB 配置。

redis-cli

select 0

flushdb

文档信息图标

若将 Redis 用于缓存,在启动 ThingsBoard 前需清空所有已存储的 key。

连接到您的 Redis 实例(或 container/pod,视部署方式而定),执行:

redis-cli flushall

注意:仅当 Redis 专门用于 ThingsBoard 时可使用此命令。若其他应用也使用 Redis,需定位 ThingsBoard 使用的数据库并仅清空该库。默认数据库 index 为 0,可通过 ThingsBoard 环境变量 REDIS_DB 配置。

redis-cli

select 0

flushdb

1
sudo service thingsboard start

Upgrading ThingsBoard CE to 3.2.1

NOTE: These upgrade steps are applicable for ThingsBoard version 3.2. In order to upgrade to 3.2.1 you need to upgrade to 3.2 first.

ThingsBoard package download

1
wget https://github.com/thingsboard/thingsboard/releases/download/v3.2.1/thingsboard-3.2.1.rpm

ThingsBoard service upgrade

  • Stop ThingsBoard service if it is running.
1
$ sudo service thingsboard stop
1
sudo rpm -Uvh thingsboard-3.2.1.rpm

NOTE: Package installer will ask you to merge your thingsboard 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 database.ts.type parameter value (in the file /etc/thingsboard/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)

Execute regular upgrade script:

1
sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.2.0

Start the service

文档信息图标

若将 Redis 用于缓存,在启动 ThingsBoard 前需清空所有已存储的 key。

连接到您的 Redis 实例(或 container/pod,视部署方式而定),执行:

redis-cli flushall

注意:仅当 Redis 专门用于 ThingsBoard 时可使用此命令。若其他应用也使用 Redis,需定位 ThingsBoard 使用的数据库并仅清空该库。默认数据库 index 为 0,可通过 ThingsBoard 环境变量 REDIS_DB 配置。

redis-cli

select 0

flushdb

文档信息图标

若将 Redis 用于缓存,在启动 ThingsBoard 前需清空所有已存储的 key。

连接到您的 Redis 实例(或 container/pod,视部署方式而定),执行:

redis-cli flushall

注意:仅当 Redis 专门用于 ThingsBoard 时可使用此命令。若其他应用也使用 Redis,需定位 ThingsBoard 使用的数据库并仅清空该库。默认数据库 index 为 0,可通过 ThingsBoard 环境变量 REDIS_DB 配置。

redis-cli

select 0

flushdb

1
sudo service thingsboard start

Upgrading ThingsBoard CE to 3.2

NOTE: These upgrade steps are applicable for ThingsBoard version 3.1.1. In order to upgrade to 3.2 you need to upgrade to 3.1.1 first.

ThingsBoard package download

1
wget https://github.com/thingsboard/thingsboard/releases/download/v3.2/thingsboard-3.2.rpm

ThingsBoard service upgrade

  • Stop ThingsBoard service if it is running.
1
$ sudo service thingsboard stop
1
sudo rpm -Uvh thingsboard-3.2.rpm

NOTE: Package installer will ask you to merge your thingsboard 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 database.ts.type parameter value (in the file /etc/thingsboard/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)

Execute regular upgrade script:

1
sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.1.1

Start the service

文档信息图标

若将 Redis 用于缓存,在启动 ThingsBoard 前需清空所有已存储的 key。

连接到您的 Redis 实例(或 container/pod,视部署方式而定),执行:

redis-cli flushall

注意:仅当 Redis 专门用于 ThingsBoard 时可使用此命令。若其他应用也使用 Redis,需定位 ThingsBoard 使用的数据库并仅清空该库。默认数据库 index 为 0,可通过 ThingsBoard 环境变量 REDIS_DB 配置。

redis-cli

select 0

flushdb

文档信息图标

若将 Redis 用于缓存,在启动 ThingsBoard 前需清空所有已存储的 key。

连接到您的 Redis 实例(或 container/pod,视部署方式而定),执行:

redis-cli flushall

注意:仅当 Redis 专门用于 ThingsBoard 时可使用此命令。若其他应用也使用 Redis,需定位 ThingsBoard 使用的数据库并仅清空该库。默认数据库 index 为 0,可通过 ThingsBoard 环境变量 REDIS_DB 配置。

redis-cli

select 0

flushdb

1
sudo service thingsboard start