Loading the documentation…

Updating

A deployment has two updates, and they run in order: the DataMind Installer first, then DataMind OS. Updating one never updates the other. While a newer DataMind Installer is published and not yet applied, DataMind OS updates and pulls are refused, wherever they are started.

DataMind OSDataMind Installer
Starts fromStatus: the Check for updates icon beside Update, then Update. Also Admin > Update inside DataMind OSThe Installer update available pill in the top bar. Also Admin > Update inside DataMind OS
OrderSecond: refused while a newer DataMind Installer waitsFirst
What restartsThe services the update recreatesOnly the DataMind Installer. DataMind OS keeps running
Health checkYou check it on the host after the jobBuilt in: the new build must turn healthy, within about 300 seconds
RollbackFrom your backupOne automatic rollback of the image. Your database dump covers the schema

The DataMind Installer's own update flow has its own page: Update the DataMind Installer.

Back up before you update

Take both backups first, as in Backup and restore: the DataMind Installer backup and DataMind OS data. The DataMind OS backup stops the deployment, so plan a maintenance window. A DataMind Installer update can change its database schema, and the dump returns it to the state before the update.

Keep a copy of the deployment's environment file to compare afterwards. On the host, from the install directory:

bash
sudo cp deployment/.env /root/datamind-env-before-update

Check it worked. sudo ls -l /root/datamind-env-before-update shows today's file.

Update DataMind OS

Update the DataMind Installer first when its pill reads Installer update available; see Update the DataMind Installer. Until it is applied, Update is refused: the toast Update failed reads Update the Installer first. A newer Installer is available and it has to be applied before DataMind OS is updated.

For an admin, that refusal also opens the Update DataMind Installer? dialog, which reads A newer Installer is out. Update it before this action can run. When the last Installer update failed, the dialog also reads The last Installer update failed. and offers Continue anyway, whose note reads Continue anyway only if the Installer update keeps failing: DataMind OS may not start with files this Installer cannot read.

  1. Open Status and click the Check for updates icon beside Update. It compares the images on the host with the registry, checks that every service's container runs the image on the host, and compares the published deployment files with the copies applied on the host; nothing is pulled.
    • When a container runs an older image than the one on the host, or a service has no container, Update is available even when nothing newer is published. Its tooltip adds, for example, 2 services do not run the downloaded image. and Update recreates them.
    • The tooltip reads Check for updates; after a check, Check for updates · last checked <time>.
    • When nothing is newer, in the images or in the deployment files, and every service runs its downloaded image, Update stays greyed out with DataMind OS is already up to date. When only the deployment files changed, Update is enabled, and its tooltip reads Update DataMind OS to latest version. New stack files: docker-compose.yml, configuration template.
    • If the check fails, the tooltip reads Could not check for updates: <reason> and the screen shows Could not check for updates — click for details; each service it could not read carries Update check failed: <reason>, and a check that could not compare the deployment files carries the title Update check failed with Stack files: <reason>.
  2. Open Release Notes in the sidebar and read every release you are about to take (Release Notes).
  3. Click Update and confirm in Update DataMind OS?; the dialog names what will be pulled and recreated, and adds New stack files: docker-compose.yml, configuration template. when the published deployment files changed.

While DataMind OS is locked for an overdue invoice, Update and image pulls are refused with Updates are paused: DataMind OS is locked for an overdue invoice. Installer updates still work. Pay the invoice on the DataMind Platform, then update again. Start, Restart and the Installer's own update still work.

The job runs three phases:

PhaseWhat it does
DownloadingReplaces deployment/docker-compose.yml and the configuration template with the published ones, and rewrites deployment/.env. On a server that still runs on a company API key, it also exchanges the key for this server's License Key (Secrets and registry access)
PullingPulls every service image. If any image fails, every image goes back to the version that was on the host before the pull. When those images are all on the host and the stack files are the ones last applied, the job goes on and applies them, with the warning Newer builds could not be checked, so the images already on this host were applied. Check for updates again later. Otherwise it stops before recreating anything: Update stopped: … images could not be downloaded …. Nothing was changed, and the images already downloaded are kept for the next try
ComposingRecreates the services from the published file. After a fully successful run it clears the images kept from earlier attempts and prunes dangling ones

While images download, the chip Finalizing pull — waiting on <services> names what is still pending, and the log shows Pull complete, Already exists, Waiting and Pulling fs layer for each layer.

When Composing recreates a service, connections it was serving end: a live view that was following it, such as a job feed, a conversion or a live log tail, drops while the service restarts. A service closes whatever is still open about ten seconds into its shutdown; open the view again once the service is back.

When you leave the screen, the job keeps running; Status picks it up again when you return and reports how it ended. A finished update shows DataMind OS updated, a failure shows Update failed; a resumed deploy shows Deployment finished or Deployment failed, a pull shows Images pulled or Image pull failed, and a cancelled job shows Cancelled. Failed toasts link job logs; the description reads See the job logs for details.

What changes besides the images

ItemWhat happens
Services no longer in the published Compose file--remove-orphans deletes their containers. Their volumes stay
deployment/docker-compose.ymlReplaced. Put local changes in deployment/docker-compose.override.yml; the DataMind Installer always applies it and never writes it
Values you edited in ConfigurationKept
Values you never editedMove to the new template's default
Generated values, such as passwordsKept
Keys the new template no longer hasRemoved from Configuration and from deployment/.env, even if you edited them

Check it worked. In the deployment directory on the host:

bash
sudo docker compose ps -a

Every long-running service shows Up, with (healthy) where it has a health check. One-shot jobs show Exited (0). None shows Restarting.

Then compare deployment/.env with the saved copy, from the install directory:

bash
sudo diff /root/datamind-env-before-update deployment/.env

Ignore the memory-limits block, between the lines that start with # >>> and # <<<: the DataMind Installer recalculates it every time it writes the file. Every other changed or missing line is a value the update moved or removed. Set it again in Configuration, then use Apply changes.

If the update fails

What you seeWhat to do
The job failed during Downloading or PullingNothing was changed. Read the pull lines in Job Logs (Service status), fix the cause, and click Update again; it reuses the images already downloaded
This server needs its own License Key. Ask DataMind or create it under Instances.Your company no longer lets this server run on the company API key. Paste this server's License Key into System secrets, then update again
The banner A previous update was interruptedUpdate, Pull, Start and Apply are blocked until the image rollback of that update succeeds; see An interrupted update
Some services were recreated, others were notOnly the Composing phase can leave this. Click Start to finish, or Stop to remove the part it recreated. If Start is greyed out with N images missing — run Update first, click Update instead
A service keeps restarting after a successful jobRead its log from the service panel; see Troubleshooting
You need the previous version backSee Roll back a DataMind OS update

An interrupted update

If the DataMind Installer restarts in the middle of an update, before its image rollback has finished, Status shows a red banner: A previous update was interrupted, with Its image rollback has not completed: <reason>, and the notice Update, Pull, Start and Apply are blocked until this is resolved.

The DataMind Installer restores the previous images, newest first, and stops at the first failure. The reason line names what stopped it, usually an unreachable Docker daemon. The rollback does not retry on a timer: it runs again when the DataMind Installer starts and each time you start an Update, Pull, Start or Apply. Fix Docker, then start the action again, or restart the DataMind Installer. When the rollback succeeds, the interrupted update has changed nothing and the banner clears.

If the saved rollback note is invalid, the banner reads Its rollback note is invalid and cannot be applied. An invalid note is never acted on; only an admin can discard it.

Discard stops the rollback and leaves the image tags as they are. Use it only when the rollback can never succeed, for example when the old images were deleted. It asks to confirm: Discard interrupted update?, and the toast reads Interrupted update discarded or Couldn’t discard the interrupted update. When there is nothing pending, the answer is No interrupted update to discard. The button is available to admins only, and it is disabled while a job or an Installer update runs.

Warning

After Discard, services may switch to the newer image versions on the next Start or Apply. Discard only when the old images are gone.

Images that were downloaded but never applied stay on the host for the next attempt, under a reserved tag; a fully successful update clears them.

Roll back a DataMind OS update

An update rewrites the deployment's files, so a rollback restores both backups you took before the update.

  1. Restore the DataMind Installer backup, as in Restore.
  2. Restore DataMind OS data, as in Restore DataMind OS data.
  3. Get the images of the version you backed up. Do not pull by tag: a tag such as prod-latest now points at the release you are rolling back from. Ask DataMind for the previous build, then start and check the build, as in Start the deployment.
  4. Check the tags you got back: grep 'image:' docker-compose.yml in deployment/.
  5. Do not click Update until you want the newer release.

Update the DataMind Installer

When a newer build of the DataMind Installer is published, the pill in the top bar reads Installer update available. Apply it before you update DataMind OS: until you do, DataMind OS updates are refused. Take the DataMind Installer backup first, as in Back up, wait until no job is running, then click the pill and confirm with Update Installer. DataMind OS keeps running; only the DataMind Installer restarts. The restart window, the automatic rollback and every message it shows are on Update the DataMind Installer.

Update from DataMind OS

Both updates can also be started inside DataMind OS, on Admin > Update > Updates: the Installer card first, then the DataMind OS card with Update DataMind OS and Pull images only. Steps, messages and limits for that side are on Update from inside DataMind OS.

One maintenance operation runs at a time. While a DataMind OS job runs, Update Installer in DataMind OS waits for it to finish, and the DataMind Installer's own actions stay locked; while the DataMind Installer updates itself, service controls and DataMind OS updates are unavailable until it comes back, usually under five minutes. The rules are on Start, stop, restart and terminate DataMind OS.

Questions, answered

Do I have to update the DataMind Installer when a new DataMind OS release comes out?

Only when a newer DataMind Installer is published. Then it goes first: DataMind OS updates and pulls are refused until it is applied. When the Installer is already on its newest build, update DataMind OS directly. Updating one never updates the other.

Can I check for updates without installing one?

Yes. The Check for updates icon beside Update compares the images on the host with the registry, and the published deployment files with the copies applied on the host; nothing is pulled or recreated. When nothing is newer, Update stays greyed out with DataMind OS is already up to date; when only the deployment files changed, Update is enabled and its tooltip names them.

Does DataMind OS update itself automatically?

No. The check refreshes on its own every 30 minutes, but an update only starts when you click Update (or Update DataMind OS inside the product).

What does the Update stopped message mean?

One or more images could not be downloaded, so the job stopped before it recreated anything: Update stopped: … images could not be downloaded …. Nothing was changed, and the images already downloaded are kept for the next attempt. Read the pull lines in Job Logs, fix the cause, then click Update again.

When the images already on the host could have been applied instead, the message says why they were not: The images already on this host were not applied: …, followed by the reason, for example the stack files changed since the last update.

The registry could not be reached, but the update finished. What was installed?

The images already on the host. When a download fails, every image goes back to the version the host had before the pull, and the update applies those. The job finishes with the warning Newer builds could not be checked, so the images already on this host were applied. Check for updates again later. Click Check for updates once the registry answers; if a newer build is published, run Update again.

What happens to services that the new release removed?

--remove-orphans deletes their containers during the Composing phase, so they no longer appear in the deployment. Their volumes are kept.

Why did a setting disappear after an update?

The new configuration template no longer has that key, so the update removed it from Configuration and from deployment/.env, even if you had edited it. Compare with the copy of deployment/.env you saved before the update.

Where do I see why an update failed?

The Update failed toast links job logs (See the job logs for details.), and the full output stays in the Job Logs panel on Status. Troubleshooting lists the known messages with their fixes.

Can I roll back a DataMind OS update?

Yes, from your backup. See Roll back a DataMind OS update.

When should I use Discard on the interrupted-update banner?

Only when the rollback can never succeed, for example when the old images were deleted. Discard stops the rollback and leaves the image tags as they are, so services may switch to the newer image versions on the next Start or Apply. It is admin only and disabled while a job or an Installer update runs.

What if the update check fails?

The check failed, not the update. The screen shows Could not check for updates — click for details, and each service it could not read carries Update check failed: <reason>. Click for the reason, fix it, then check again.