Upgrading from Community Edition
Ubuntu
Section titled “Ubuntu”ThingsBoard PE package download
Section titled “ThingsBoard PE package download”wget https://dist.thingsboard.io/thingsboard-4.3.1.1PE.debThingsBoard PE service upgrade
Section titled “ThingsBoard PE service upgrade”Stop ThingsBoard service if it is running:
sudo service thingsboard stopInstall ThingsBoard Web Report component as described in the Ubuntu installation guide.
sudo dpkg -i thingsboard-4.3.1.1PE.debConfigure the Professional Edition license key as described in the Ubuntu installation guide.
Execute the upgrade script:
sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=CEStart the service
Section titled “Start the service”sudo service thingsboard startCentOS/RHEL
Section titled “CentOS/RHEL”ThingsBoard PE package download
Section titled “ThingsBoard PE package download”wget https://dist.thingsboard.io/thingsboard-4.3.1.1PE.rpmThingsBoard PE service upgrade
Section titled “ThingsBoard PE service upgrade”Stop ThingsBoard service if it is running:
sudo service thingsboard stopInstall ThingsBoard Web Report component as described in the Ubuntu installation guide.
sudo rpm -Uvh thingsboard-4.3.1.1PE.rpmConfigure the Professional Edition license key as described in the Ubuntu installation guide.
Execute the upgrade script:
sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=CEStart the service
Section titled “Start the service”sudo service thingsboard startWindows
Section titled “Windows”ThingsBoard PE package download
Section titled “ThingsBoard PE package download”Download ThingsBoard PE installation package for Windows: thingsboard-windows-setup-4.3.1.1PE.exe.
ThingsBoard PE service upgrade
Section titled “ThingsBoard PE service upgrade”Stop ThingsBoard service if it is running:
net stop thingsboard- Make a backup of previous ThingsBoard CE configuration located in
<ThingsBoard install dir>\conf(e.g.C:\thingsboard\conf). - Run the installer executable.
- Compare and merge your old ThingsBoard configuration files (from the backup) with the new ones.
- Configure the Professional Edition license key as described in the Windows installation guide.
Execute the upgrade script:
C:\thingsboard>upgrade.bat --fromVersion=CEStart the service
Section titled “Start the service”net start thingsboardDocker
Section titled “Docker”ThingsBoard PE image download
Section titled “ThingsBoard PE image download”docker pull thingsboard/tb-pe-node:4.3.1.1PEdocker pull thingsboard/tb-pe-web-report:4.3.1.1PEThingsBoard PE service upgrade
Section titled “ThingsBoard PE service upgrade”Stop and remove the ThingsBoard CE service:
docker compose stop thingsboard-cedocker compose rm -f thingsboard-ceUpdate your docker-compose.yml according to the Docker PE installation guide. Make sure to change the image to the PE version, define the required license variables and volumes, and add the Web Report service.
Run the upgrade and start the services:
docker compose run --rm -e UPGRADE_TB=true -e FROM_VERSION="CE" thingsboard-pedocker compose up -dDocker Compose
Section titled “Docker Compose”ThingsBoard PE image download
Section titled “ThingsBoard PE image download”docker pull thingsboard/tb-pe-node:4.3.1.1PEdocker pull thingsboard/tb-pe-web-report:4.3.1.1PEThingsBoard PE service upgrade
Section titled “ThingsBoard PE service upgrade”Stop the CE services:
./docker-stop-services.shManually merge your current ThingsBoard CE cluster configuration with the default Docker Compose cluster deployment files. Ensure that you transfer all custom environment variables, volume mappings, and external service configurations to the new files.
Configure the license key environment variables as described in the PE Docker Compose Cluster Setup Guide.
Run the upgrade and start the services:
./docker-upgrade-tb.sh --fromVersion=CE./docker-start-services.sh