- Task
- Version ยท 6.0.3
- Manage
Upgrade Liquibase Secure server
Last updated: November 17, 2026
liquibase-platform update upgrades a running Liquibase Secure server deployment in place. It pulls the new images, runs the new version's database migrations, and recreates the services. Your data and secrets are kept. The server never upgrades itself and cannot schedule an upgrade, so a version changes only when you run this command.
Note: Do not use liquibase-platform install to upgrade, with or without --force. While the deployment's .env file, containers or data volumes exist, install stops with LB-SEC-INS-0011, because it cannot replace a deployment or its data.
Procedure
Note the version you are running
The server and the liquibase-platform CLI have separate version numbers. ./liquibase-platform --version reports the version of the CLI, and status reports the version the server runs. From the folder that holds the CLI you installed with, run the following, replacing your_deployment_directory with the directory you installed into:
./liquibase-platform status --dir your_deployment_directoryVersion reports the image tag the deployment is running now. Write it down. It is the version you would return to if you have to restore from a backup.
Back up both databases and the encryption key
Liquibase Secure server keeps its data in two PostgreSQL databases, the primary database and the secrets database. The upgrade runs migrations against both, so back up both before you start. For the commands, see Back up Liquibase Secure server.
Back up the deployment's secrets/ directory and its .env file as well, and store them somewhere secure. secrets/encryption_key holds LIQUIBASE_PLATFORM_ENCRYPTION_KEY, and a deployment installed with an earlier release keeps that key in .env until update moves it into secrets/. Without that key, everything held in the secrets database is unrecoverable.
Note: No command reverses an upgrade. An upgrade to PostgreSQL 17 keeps the old database volumes, but this backup is still the way back from a problem you find after the upgrade.
Download the CLI for the new version
Each release has its own liquibase-platform CLI, and a CLI refuses to upgrade a deployment to a release newer than itself. To upgrade to 6.0.2 from an earlier release, download and verify the 6.0.2 CLI archive for your machine, and extract it into a new folder.
The archive holds only the CLI. Downloading it changes nothing in your deployment, and the server keeps running its current version until you run update in step 4. Leave the deployment directory where it is and do not install again. The new CLI works on the existing deployment through --dir.
Run the upgrade
From the folder of the new CLI, run update against your deployment directory. Be sure to:
Replace
your_license_filewith your license file, or the directory that holds your license files. The license is used only to download the release. After you renew your license, import the new file and pass it here.Replace
your_versionwith the version you are upgrading to. For example,6.0.2Replace
your_deployment_directorywith the directory you installed into. For example,/opt/liquibase-platform
./liquibase-platform update --license your_license_file --tag your_version --dir your_deployment_directoryIf you pull the images from a different registry, add --registry to pull from a registry other than the one recorded in .env. That flag also updates IMAGE_REGISTRY in .env. Be sure to replace your_registry_url with the registry to pull from. For example, oci.liquibase.com, or your own registry such as registry.example.com/liquibase-platform
./liquibase-platform update --license your_license_file --tag your_version --dir your_deployment_directory --registry your_registry_urlThe command keeps your data volumes, the database passwords, the auth secret and LIQUIBASE_PLATFORM_ENCRYPTION_KEY. In the deployment directory, it changes only these files:
.env:updatesetsIMAGE_TAGto the new version and changes other settings only where the release has to move the deployment forward. Every other value stays as you set it, and the previous file is kept as.env.bak.updatedoes not add the new release's optional settings, so to use one, copy its line from.env.sample, whichupdatereplaces with the new release's copy.docker-compose.ymlanddefault.conf.template: A file you have not edited is backed up with a timestamp, such asdocker-compose.yml.bak-1793896071, and replaced. A file you edited is kept, and the new release's file is written beside it asdocker-compose.yml.newordefault.conf.template.new, for you to merge your changes into.
Note: Never replace .env or the secrets/ directory with fresh copies or with files from another deployment. They hold the database passwords and LIQUIBASE_PLATFORM_ENCRYPTION_KEY that this deployment's databases were created with, and new values lock the server out of its data.
Upgrade notices: After it pulls the images, the command lists any upgrade notices this deployment has not applied yet, and asks you to confirm them before it changes anything. 6.0.2 has up to two. One is about who can see Governance content after the upgrade, which User access after you upgrade explains. The other appears only when this deployment has received operations sent with a user's API key. Those keys become personal access tokens, which cannot send operations, so a pipeline still using one stops reporting to Change Intelligence until you move it to a service token. How access tokens work in Liquibase Secure explains the conversion. The Governance notice looks like this:
Any answer other than yes prints Aborted. and stops, with the previous version still running and nothing changed.
PostgreSQL 17: 6.0.2 moves the bundled databases from PostgreSQL 14 to PostgreSQL 17 by copying their data into new volumes. Plan a maintenance window, because the server, including the API and the web app, is down until the update finishes. The filesystem that holds the Docker volumes needs free space of at least 1.2 times the size of the databases, or the command stops with LB-SEC-INS-0028 before it changes anything. The command prints its plan and asks you to type upgrade:
Any answer other than upgrade prints Aborted. and changes nothing. If the copy, or anything after it, fails before the new version is healthy, the command removes the new volumes, restores .env and docker-compose.yml, and puts the previous version back on its old volumes, running if it was running before. With an external primary database, this ends when the migration of the primary database starts.
In a pipeline or a script, add --non-interactive, which answers both prompts for you. Without a terminal and without the flag, the command stops before it changes anything. With a 6.0.2 upgrade notice still to confirm, it stops with LB-SEC-INS-0020 and the message update has upgrade notices to confirm and no terminal to ask on. When there is no notice to confirm, it stops at the PostgreSQL plan with LB-SEC-INS-0027.
The command then starts the databases and waits for them to report healthy, migrates the primary database and then the secrets database, recreates the services, and waits for the api, nginx and web containers to report healthy. Each stage is reported as it runs.
Note: If you run docker compose yourself rather than through the CLI, the bundled database now starts only under the bundled-db Compose profile. When your .env file has no COMPOSE_PROFILES line, run liquibase-platform update first, or add COMPOSE_PROFILES=bundled-db to .env.
When the upgrade finishes, the command lists the old database volumes and the command that removes them:
Keep the old volumes until you are sure you will not go back to the previous version. liquibase-platform uninstall removes both the old volumes and the new ones.
Verify the upgrade
The upgrade runs its own health check and exits with a non-zero status if the API does not come back. Confirm the result yourself as well:
./liquibase-platform status --dir your_deployment_directoryVersion should show the tag you passed, every service should be running, and API Health should report OK. Then sign in to the web app and confirm your projects, connections, and operation history are all still there.
Troubleshooting
The upgrade stops during migration
The command stops and names the database that failed. Your data and volumes are intact, and the databases are left running so you can inspect them. Read the logs, fix the cause, then run the same liquibase-platform update command again.
./liquibase-platform logs --service dbUse --service secrets-db for the secrets database.
When the upgrade was copying the databases to PostgreSQL 17, a failure before the new version is healthy works differently. The command removes the new volumes and puts the previous version back on its old volumes, running if it was running before. With an external primary database, this ends when the migration of the primary database starts, because your server holds the only copy of that data. Fix the cause the error names, then run the same command again.
The API does not come back
The command reports that the update applied but the API is unreachable, and exits with a non-zero status. Your data is intact. Check the API and proxy logs, then the overall status.
./liquibase-platform logs --service api
./liquibase-platform logs --service nginx
./liquibase-platform statusThe upgrade stops before it changes anything
These checks run before the command stops the server. When one fails, the command stops with the code shown, and nothing in the deployment has changed:
LB-SEC-INS-0020withupdate has upgrade notices to confirm and no terminal to ask on, orLB-SEC-INS-0027: There is no terminal to ask for confirmation on. Run the command in a terminal, or add--non-interactive.LB-SEC-INS-0028: The filesystem that holds the Docker volumes has less free space than 1.2 times the size of the databases. Free space there, then run the same command again.LB-SEC-INS-0029:POSTGRES_IMAGEin.envnames an image that is not PostgreSQL 17. Set it to a PostgreSQL 17 build, then run the same command again.LB-SEC-INS-0030: Yourdocker-compose.ymlfile has local changes. The command writes the new release's file beside it asdocker-compose.yml.new. Merge your changes into that file, replacedocker-compose.ymlwith it, then run the same command again.LB-SEC-INS-0031: The external primary database runs a PostgreSQL version other than 17. Upgrade it to PostgreSQL 17 through your provider first.LB-SEC-INS-0039: The command could not read the PostgreSQL version of the external primary database. Check that the database is running and reachable from Docker, then run the same command again.LB-SEC-INS-0038: The version you passed to--tagis newer than the CLI. Run the upgrade with the CLI of that version, as in step 3.
LB-SEC-INS-0018 No installation found
update uses the directory you pass with --dir. Without --dir, it uses the directory in the LIQUIBASE_PLATFORM_DIR environment variable, then the current directory when it holds docker-compose.yml, then the directory install recorded. The error names the directory it checked and the reason, such as no docker-compose.yml. When the recorded directory no longer holds docker-compose.yml, the reason names that directory too. Pass --dir with your deployment directory, set LIQUIBASE_PLATFORM_DIR to it, or run the command from that directory. If nothing is installed yet, run liquibase-platform install instead.
Returning to an earlier version
After an upgrade to PostgreSQL 17, the old volumes still hold your data as it was before the upgrade. To go back, run the previous release's CLI with its deployment files. Its docker-compose.yml file mounts the old volumes, and anything written after the upgrade is lost. The 6.0.2 CLI does not do this for you. update with a --tag that predates PostgreSQL 17 stops with LB-SEC-INS-0036, because that release would start on the volumes from before the upgrade.
To upgrade again after you go back, the leftover PostgreSQL 17 volumes have to go first, or update stops with LB-SEC-INS-0035 and names the volume. Back it up, then remove it with docker volume rm. Remove the old volumes only once you no longer need to go back.
Otherwise, no command reverses an upgrade, so returning to an earlier version means restoring the backup you took in step 2.