Upgrading Connectware to 2.0.1 (Docker)
How to upgrade Connectware to version 2.0.1 on Docker.
Connectware 2.0.1 introduces enhancements to the Data Explorer. If you are running services that are configured with CYBUS_MQTT_ROOT
, this upgrade requires you to run a migration script to populate missing database entries.
Disclaimer
Hardware Requirements
Connectware 2.0.1 adds a new microservice for MQTT topic exploration. As a result, Connectware requires the following additional resources:
200m CPU (0.2 CPU)
750 MiB of memory
Upgrading Procedure
To stop Connectware, go to the Connectware installation directory (default:
/opt/connectware
) and run the following command:
docker compose down
Download and install Connectware 2.0.1. For more information, see Upgrading Connectware (Docker).
Start Connectware with the following command:
docker compose up -d
Ensure, that only a single instance of Connectware is running in this Docker installation. If you run multiple installations on the same machine, identify the postgresql container belonging to this installation manually using
docker ps
and use its name asCW_POSTGRESQL_CONTAINER
in the next step.Run the migration script with the following command:
CW_POSTGRESQL_CONTAINER=$(docker container ls -q -f "label=io.cybus.connectware=core" -f "label=com.docker.compose.service=postgresql")
docker exec $CW_POSTGRESQL_CONTAINER ash -c '/app/scripts/migrate_to_2.0.1.sh'
Result: The script completes the database migration by filling in missing values for new columns. Reinstalling services is not necessary.
Last updated
Was this helpful?