Step 1. Download the
|
1 | wget https://github.com/thingsboard/thingsboard-gateway/releases/latest/download/python3-thingsboard-gateway.deb |
Step 2. Install the new .deb
file
Run the following command in the terminal to install the updated package:
1
sudo apt install ./python3-thingsboard-gateway.deb -y
Step 3. Restart the Gateway
After the upgrade, restart the Gateway service to apply the changes:
1
sudo systemctl restart thingsboard-gateway
Step 4. Verify the Upgrade
To ensure the upgrade was successful, check the Gateway status and logs by running:
1
sudo systemctl status thingsboard-gateway
Configuration File Preservation
During the upgrade, all user configuration files will be preserved. This includes customizations made to:
- Connector configuration files.
- Custom user extensions.
tb_gateway.json
file.
The upgrade process also automatically creates a backup of your current configuration directory to ensure recoverability in case of any issues. The backups are stored under the following paths:
- For connector configurations:
1
/etc/thingsboard-gateway/configs_backup.tar.gz
- For user extensions:
1
/var/lib/thingsboard_gateway/extensions_backup.tar.gz
Notes
- This upgrade procedure applies only to .deb package-based installations. If you are using Docker or pip-based installations, please refer to the appropriate guide that you can find on the top of this page.
- Always test the Gateway after the upgrade to ensure connectors and extensions operate as expected.
Step 1. Download the
|
1 | wget https://github.com/thingsboard/thingsboard-gateway/releases/latest/download/python3-thingsboard-gateway.rpm |
Step 2. Install the new .rpm
file
Run the following command in the terminal to install the updated package:
1
sudo yum install -y ./python3-thingsboard-gateway.rpm
Step 3. Restart the Gateway
After the upgrade, restart the Gateway service to apply the changes:
1
sudo systemctl restart thingsboard-gateway
Step 4. Verify the Upgrade
To ensure the upgrade was successful, check the Gateway status and logs by running:
1
sudo systemctl status thingsboard-gateway
Configuration File Preservation
During the upgrade, all user configuration files will be preserved. This includes customizations made to:
- Connector configuration files.
- Custom user extensions.
tb_gateway.json
file.
The upgrade process also automatically creates a backup of your current configuration directory to ensure recoverability in case of any issues. The backups are stored under the following paths:
- For connector configurations:
1
/etc/thingsboard-gateway/configs_backup.tar.gz
- For user extensions:
1
/var/lib/thingsboard_gateway/extensions_backup.tar.gz
Notes
- This upgrade procedure applies only to .rpm package-based installations. If you are using Docker or pip-based installations, please refer to the appropriate guide that you can find on the top of this page.
- Always test the Gateway after the upgrade to ensure connectors and extensions operate as expected.
Step 1. Stop and Remove Existing ContainersFirst, stop the currently running Gateway containers:
This will gracefully shut down the gateway and remove the containers, without deleting any volumes or configuration data. Step 2. Pull the Latest Gateway ImageFetch the latest version of the ThingsBoard IoT Gateway Docker image:
Step 3. Start the Updated GatewayRecreate and start the containers with the updated image:
The Step 4. Verify the UpgradeTo ensure the upgrade was successful, check the Gateway logs by running:
This will display the logs in real-time, allowing you to confirm that the Gateway is running correctly with the new version. Notes
|
Step 1. Stop the GatewayIf the Gateway is running as a background service or a systemd service, stop it first:
Or if you are running it manually in a terminal, stop it using Step 2. Upgrade the ThingsBoard Gateway Package via pipRun the following command in your Python environment:
Step 3. Restart the GatewayOnce the upgrade completes, start the Gateway again:
Or, if you run it manually:
Notes
|