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 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.

If you are not using CYBUS_MQTT_ROOT, you can upgrade as usual — just note the additional hardware requirements.

Disclaimer

When upgrading your Connectware instance, follow the upgrade path based on your current version:

  • If you are on version 1.4.1 or below

    • Upgrade sequentially: 1.5.0 → 1.7.0 → 2.0.0 → 2.0.1

  • If you are between version 1.5.0 and 1.6.2

    • Upgrade sequentially: 1.7.0 → 2.0.0 → 2.0.1

  • If you are on version 1.7.0 or newer (but below 2.0.0)

    • Upgrade sequentially: 2.0.0 → 2.0.1

  • If you are on version 2.0.0

    • Upgrade directly to 2.0.1

Detailed instructions on each upgrade step

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

As with any deployment, we recommend monitoring system performance and adjusting resources as needed.

Upgrading Procedure

If your installation is older than 2.0.0, first complete the upgrade to 2.0.0 before upgrading to 2.0.1.

1

Upgrading Connectware to 2.0.1

  1. To stop Connectware, go to the Connectware installation directory (default: /opt/connectware) and run the following command:

docker compose down
  1. Download and install Connectware 2.0.1. For more information, see Upgrading Connectware (Docker).

  2. Start Connectware with the following command:

docker compose up -d

Result: Connectware is upgraded to 2.0.1.

If you are using services configured with CYBUS_MQTT_ROOT, continue with step 2.

If you are not using CYBUS_MQTT_ROOT, your Connectware upgrade to 2.0.1 is complete. Just note the additional hardware requirements.

2

Migrating Services with CYBUS_MQTT_ROOT Configuration

If 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.

  1. 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 ps and use its name as CW_SCS_CONTAINER in the next step.

  2. 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'
  1. Verify that the script ran without errors.

  2. 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-explorer container that belongs to this installation manually using docker ps and use its name as CW_TE_CONTAINER in the next step.

  3. Restart the topic-explorer container:

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_CONTAINER

Result: The migration script updates the database with new column values. You do not need to reinstall your services.

Last updated

Was this helpful?