Upgrade GoodData.CN
As an administrator, before upgrading to a new version, review the version specific upgrades section to identify any intermediate versions between your current version and the target version that require additional upgrade steps. If such versions exist, follow the corresponding upgrade instructions in sequence before proceeding.
Once version-specific upgrades are complete, or if none are required, you can upgrade GoodData.CN to a new official release using the following command:
helm upgrade --namespace gooddata-cn --version <gooddata-cn-release> \
-f customized-values-gooddata-cn.yaml gooddata-cn gooddata/gooddata-cn
When upgrading, ensure you reapply your custom configurations from the customized-values-gooddata-cn.yaml
file, saved during the original installation. This prevents your settings from being overwritten by default values.
Version Specific Upgrades
Certain upgrades require additional steps to ensure a smooth transition. For instance, if you are on version 3.1 and wish to upgrade to 3.16, you must first upgrade to version 3.10 by following the 3.10 upgrade guide, before proceeding to 3.16.
Below are the version-specific upgrade instructions starting from version 3.0.0:
Version 3.10.0
You need to do this when upgrading from GoodData.CN version 3.9 to 3.10.
The 3.10.0 image has an updated PostgreSQL server, so you need to migrate your data to the new PostgreSQL server:
Start a container from image 3.9.0 with the data volume mounted as usual.
Run the backup script inside the running container (replace
gdcn-id
with your container name):$ docker exec -it gdcn-id /opt/scripts/dump_database.sh
You should see the message: “Backup successfully created.”
Stop and optionally delete the old container, but keep the volume.
Run the new container (version 3.10.0) with the original volume. The data will be upgraded automatically.
You will know the data restoration is successful if you see these messages at the start of the new container:
/data/backup/dump.sql.gz: OK
Found a dump to restore.
...
BACKUP RESTORED
Rollback
If the upgrade fails, you can still use the old image (3.9.0) and data volume.
If you accidentally start the new image with the old volume without running the backup script, the application will start but show no data. To recover, follow these steps:
Stop and delete the container you started from the new image.
Run a container from the old image (3.9.0) with the mounted volume and modified entry point to remove the incompatible Redis savepoint:
docker run -it --rm -v gd-data:/data --entrypoint /bin/rm gooddata/gooddata-cn-ce:3.9.0 -f /data/redis/dump.rdb
- Run the database backup as described above.
- Run a container from the new image, and your data will be available again.