Trendz Analytics Docker 1.16.x Upgrade Instructions
Upgrading Trendz Analytics to 1.16.1.3 (latest 1.16.1 patch)
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.1.3. -
If you are upgrading from a version earlier than 1.16.1.1, harden the Python Executor in your
docker-compose.yml. The next steps apply the changes:- Publish the Python Executor and PostgreSQL ports on the local host only: change
"8181:8181"to"127.0.0.1:8181:8181"and"5432:5432"to"127.0.0.1:5432:5432". If nothing outside Docker uses a port, remove its entry. - Replace the default shared secret
placeholder: setPYTHON_EXECUTOR_SECRETon both thetrendzandtrendz-python-executorservices, as described in Replace the shared secret.
- Publish the Python Executor and PostgreSQL ports on the local host only: change
-
Stop Trendz:
Terminal window docker compose stop trendz -
Only if you are upgrading from a version earlier than 1.16.1.1: Trendz now runs as user
799instead of root, so give that user its files once:Terminal window docker compose run --rm --no-deps --user root --entrypoint chown trendz -R 799:799 /data /trendz-config-files -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1.3docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.1.3. -
If you are upgrading from a version earlier than 1.16.1.1, harden the Python Executor in your
docker-compose-trendz.yml. The next steps apply the changes:- Publish the Python Executor port on the local host only: change
"8181:8181"to"127.0.0.1:8181:8181". If nothing outside Docker uses the port, remove the entry. - Replace the default shared secret
placeholder: setPYTHON_EXECUTOR_SECRETon both thetrendzandtrendz-python-executorservices, as described in Replace the shared secret.
- Publish the Python Executor port on the local host only: change
-
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Only if you are upgrading from a version earlier than 1.16.1.1: Trendz now runs as user
799instead of root, so give that user its files once:Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm --no-deps --user root --entrypoint chown trendz -R 799:799 /data /trendz-config-files -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1.3docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Upgrading Trendz Analytics to 1.16.1.2 (latest 1.16.1 patch)
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.1.2. -
If you are upgrading from a version earlier than 1.16.1.1, harden the Python Executor in your
docker-compose.yml. The next steps apply the changes:- Publish the Python Executor and PostgreSQL ports on the local host only: change
"8181:8181"to"127.0.0.1:8181:8181"and"5432:5432"to"127.0.0.1:5432:5432". If nothing outside Docker uses a port, remove its entry. - Replace the default shared secret
placeholder: setPYTHON_EXECUTOR_SECRETon both thetrendzandtrendz-python-executorservices, as described in Replace the shared secret.
- Publish the Python Executor and PostgreSQL ports on the local host only: change
-
Stop Trendz:
Terminal window docker compose stop trendz -
Only if you are upgrading from a version earlier than 1.16.1.1: Trendz now runs as user
799instead of root, so give that user its files once:Terminal window docker compose run --rm --no-deps --user root --entrypoint chown trendz -R 799:799 /data /trendz-config-files -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1.2docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.1.2. -
If you are upgrading from a version earlier than 1.16.1.1, harden the Python Executor in your
docker-compose-trendz.yml. The next steps apply the changes:- Publish the Python Executor port on the local host only: change
"8181:8181"to"127.0.0.1:8181:8181". If nothing outside Docker uses the port, remove the entry. - Replace the default shared secret
placeholder: setPYTHON_EXECUTOR_SECRETon both thetrendzandtrendz-python-executorservices, as described in Replace the shared secret.
- Publish the Python Executor port on the local host only: change
-
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Only if you are upgrading from a version earlier than 1.16.1.1: Trendz now runs as user
799instead of root, so give that user its files once:Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm --no-deps --user root --entrypoint chown trendz -R 799:799 /data /trendz-config-files -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1.2docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Upgrading Trendz Analytics to 1.16.1.1 (latest 1.16.1 patch)
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.1.1. -
If you are upgrading from a version earlier than 1.16.1.1, harden the Python Executor in your
docker-compose.yml. The next steps apply the changes:- Publish the Python Executor and PostgreSQL ports on the local host only: change
"8181:8181"to"127.0.0.1:8181:8181"and"5432:5432"to"127.0.0.1:5432:5432". If nothing outside Docker uses a port, remove its entry. - Replace the default shared secret
placeholder: setPYTHON_EXECUTOR_SECRETon both thetrendzandtrendz-python-executorservices, as described in Replace the shared secret.
- Publish the Python Executor and PostgreSQL ports on the local host only: change
-
Stop Trendz:
Terminal window docker compose stop trendz -
Only if you are upgrading from a version earlier than 1.16.1.1: Trendz now runs as user
799instead of root, so give that user its files once:Terminal window docker compose run --rm --no-deps --user root --entrypoint chown trendz -R 799:799 /data /trendz-config-files -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1.1docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.1.1. -
If you are upgrading from a version earlier than 1.16.1.1, harden the Python Executor in your
docker-compose-trendz.yml. The next steps apply the changes:- Publish the Python Executor port on the local host only: change
"8181:8181"to"127.0.0.1:8181:8181". If nothing outside Docker uses the port, remove the entry. - Replace the default shared secret
placeholder: setPYTHON_EXECUTOR_SECRETon both thetrendzandtrendz-python-executorservices, as described in Replace the shared secret.
- Publish the Python Executor port on the local host only: change
-
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Only if you are upgrading from a version earlier than 1.16.1.1: Trendz now runs as user
799instead of root, so give that user its files once:Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm --no-deps --user root --entrypoint chown trendz -R 799:799 /data /trendz-config-files -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1.1docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Upgrading Trendz Analytics to 1.16.1
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.1. -
Stop Trendz:
Terminal window docker compose stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.1. -
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.1docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Upgrading Trendz Analytics to 1.16.0.2 (latest 1.16.0 patch)
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.0.2. -
Stop Trendz:
Terminal window docker compose stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.0.2docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.0.2. -
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.0.2docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Upgrading Trendz Analytics to 1.16.0.1 (latest 1.16.0 patch)
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.0.1. -
Stop Trendz:
Terminal window docker compose stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.0.1docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.0.1. -
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.0.1docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Upgrading Trendz Analytics to 1.16.0
Trendz Analytics service upgrade
Pick the tab that matches how you installed Trendz.
If the Trendz service in your docker-compose.yml is still named mytrendz, or mounts host folders such as ~/.mytrendz-data:/data, move to named volumes first.
-
Create a database backup:
Terminal window docker compose exec trendz-postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose.ymlto 1.16.0. -
Stop Trendz:
Terminal window docker compose stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.0docker compose run --rm -e UPGRADE_TRENDZ=true trendzdocker compose up -d
-
Create a database backup:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump" -
Update the version of
thingsboard/trendzandthingsboard/trendz-python-executorin yourdocker-compose-trendz.ymlto 1.16.0. -
Stop Trendz:
Terminal window docker compose -f docker-compose.yml -f docker-compose-trendz.yml stop trendz -
Pull the image, run the upgrade, and restart:
Terminal window docker pull thingsboard/trendz:1.16.0docker compose -f docker-compose.yml -f docker-compose-trendz.yml run --rm -e UPGRADE_TRENDZ=true trendzdocker compose -f docker-compose.yml -f docker-compose-trendz.yml up -d
Sync Trendz with ThingsBoard
After the upgrade, sync Trendz with ThingsBoard to update widgets and JS modules automatically. See the sync instructions for details.
Was this helpful?