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.
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
Upgrading Connectware to 2.0.1
To stop Connectware, go to the Connectware installation directory (default:
/opt/connectware) and run the following command:
docker compose downDownload and install Connectware 2.0.1. For more information, see Upgrading Connectware (Docker).
Start Connectware with the following command:
docker compose up -dResult: Connectware is upgraded to 2.0.1.
Migrating Services with CYBUS_MQTT_ROOT Configuration
CYBUS_MQTT_ROOT ConfigurationIf you are using services configured with CYBUS_MQTT_ROOT, you must run a migration script after installing Connectware 2.0.1 to ensure full Data Explorer compatibility.
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 system-control-server container belonging to this installation manually using
docker psand use its name asCW_SCS_CONTAINERin the next step.Run the migration script. This is required if you have services using
CYBUS_MQTT_ROOT.
CW_SCS_CONTAINER=$(docker container ls -q -f "label=io.cybus.connectware=core" -f "label=com.docker.compose.service=system-control-server")
docker run --rm -it \
-v $(docker inspect ${CW_SCS_CONTAINER} | jq -r '.[].Mounts[] | select(.Destination == "/connectware_certs") | .Name'):/connectware_certs \
--network=container:${CW_SCS_CONTAINER} \
--pid=container:${CW_SCS_CONTAINER} \
registry.cybus.io/cybus/connectware-toolkit:1.3.0 -c 'cw-db-migrate-2_0_1'Verify that the script ran without errors.
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
topic-explorercontainer that belongs to this installation manually usingdocker psand use its name asCW_TE_CONTAINERin the next step.Restart the
topic-explorercontainer:
CW_TE_CONTAINER=$(docker container ls -q -f "label=io.cybus.connectware=core" -f "label=com.docker.compose.service=topic-explorer")
docker restart $CW_TE_CONTAINERResult: The migration script updates the database with new column values. You do not need to reinstall your services.
Last updated
Was this helpful?

