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.2pe.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.2pe.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.2pe.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.2pe.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-4.3.1.2pe.zip.
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.2PEdocker pull thingsboard/tb-pe-web-report:4.3.1.2PEThingsBoard 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.2PEdocker pull thingsboard/tb-pe-web-report:4.3.1.2PEThingsBoard 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.shMinikube
Section titled “Minikube”For AWS EKS, Azure AKS, or GCP GKE refer to the corresponding PE installation guides.
Stop ThingsBoard CE resources
Section titled “Stop ThingsBoard CE resources”./k8s-delete-resources.shSwitch to PE Kubernetes scripts
Section titled “Switch to PE Kubernetes scripts”PE uses a separate repository with additional components. Clone the PE scripts into a separate directory:
git clone -b release-4.3.1.2 https://github.com/thingsboard/thingsboard-pe-k8s.git --depth 1cd thingsboard-pe-k8s/minikubeCopy your custom settings from the CE configuration (database type, hosts, environment variables, volumes) into the corresponding PE files.
In tb-node.yml, find - name: TB_LICENSE_SECRET and set its value: to your license secret:
- name: TB_LICENSE_SECRET value: "YOUR_LICENSE_SECRET"See How to get a pay-as-you-go subscription or How to get a perpetual license for more details.
Run the database upgrade
Section titled “Run the database upgrade”./k8s-upgrade-tb.sh --fromVersion=CEDeploy ThingsBoard PE resources
Section titled “Deploy ThingsBoard PE resources”./k8s-deploy-resources.shVerify the upgrade
Section titled “Verify the upgrade”Wait until all pods are running:
kubectl get pods -n thingsboardWas this helpful?