Skip to content
Stand with Ukraine flag

ThingsBoard Edge CentOS/RHEL 4.2.x Upgrade Instructions

Upgrading Edge to latest 4.2.2 (4.2.2.1)

Backup before upgrading

Stop the ThingsBoard Edge service to prevent data writes during the upgrade:

sudo systemctl stop tb-edge

Create the backup:

sudo -Hiu postgres pg_dump tb_edge > tb_edge.sql.bak

Verify the backup was created successfully:

ls -lh tb_edge.sql.bak

Download the Edge package

wget https://github.com/thingsboard/thingsboard-edge/releases/download/v4.2.2.1/tb-edge-4.2.2.1.rpm

Upgrade the package

Stop the service if it is still running:

sudo service tb-edge stop
sudo rpm -Uvh tb-edge-4.2.2.1.rpm

Run the upgrade script to migrate your data and configurations:

sudo /usr/share/tb-edge/bin/install/upgrade.sh

Start the service

sudo service tb-edge start

Upgrading Edge to latest 4.2.1 (4.2.1.2)

Backup before upgrading

Stop the ThingsBoard Edge service to prevent data writes during the upgrade:

sudo systemctl stop tb-edge

Create the backup:

sudo -Hiu postgres pg_dump tb_edge > tb_edge.sql.bak

Verify the backup was created successfully:

ls -lh tb_edge.sql.bak

Download the Edge package

wget https://github.com/thingsboard/thingsboard-edge/releases/download/v4.2.1.2/tb-edge-4.2.1.2.rpm

Upgrade the package

Stop the service if it is still running:

sudo service tb-edge stop
sudo rpm -Uvh tb-edge-4.2.1.2.rpm

Run the upgrade script to migrate your data and configurations:

sudo /usr/share/tb-edge/bin/install/upgrade.sh

Start the service

sudo service tb-edge start

Upgrading Edge to 4.2

Backup before upgrading

Stop the ThingsBoard Edge service to prevent data writes during the upgrade:

sudo systemctl stop tb-edge

Create the backup:

sudo -Hiu postgres pg_dump tb_edge > tb_edge.sql.bak

Verify the backup was created successfully:

ls -lh tb_edge.sql.bak

Download the Edge package

wget https://github.com/thingsboard/thingsboard-edge/releases/download/v4.2/tb-edge-4.2.rpm

Upgrade the package

Stop the service if it is still running:

sudo service tb-edge stop
sudo rpm -Uvh tb-edge-4.2.rpm

Run the upgrade script to migrate your data and configurations:

sudo /usr/share/tb-edge/bin/install/upgrade.sh

Start the service

sudo service tb-edge start