Help

Installation Guide

Upgrading Monosign

Updated 25 Nov 2026 9 min read

This page describes the procedure that every Monosign upgrade follows, whichever version you upgrade to. Each release adds its own steps in its Upgrade guide; this page is the frame around them: prepare, back up, deploy in the right order, verify, and roll back if you must.

Always read the Upgrade guide of the version you upgrade to before you start: Monosign release notes > Upgrade guide (opens in a new tab). When you skip versions, read the Upgrade guide of every version in between too.

Overview

  1. Read the release notes and the Upgrade guide.

  2. Check the prerequisites.

  3. Record the current version and back up the database.

  4. Deploy: seed first, then api, then account and management, then service, then gateways and agents.

  5. Verify: health endpoints, sign-in, logs, and the release's own checks.

  6. Roll back only when the Upgrade guide says it is safe; otherwise restore the database backup.

1. Read the release notes and the Upgrade guide

Open the Upgrade guide (opens in a new tab) of the target version and read these parts with your installation in mind:

Part of the Upgrade guide

What to take from it

Upgrade from and Pass through

The oldest version you can upgrade from directly, and the versions you must install on the way. Upgrade through each of them in turn.

Read first

Changes that need a maintenance window or a conversation with your users before the upgrade.

Compatibility & prerequisites and Components

Runtime, CPU, database and infrastructure requirements, and the version of every component (including gateways and agents) that belongs to the release.

Upgrade an existing installation (checklist)

The release's own steps, in order: Before you start, Deploy, Configuration, Seeded content that overwrites customer data, Permissions to assign, Verify. Do every item marked Required, and every Conditional item whose condition fits your installation.

Breaking & behavior changes, Removed & deprecated

What your users and integrations will notice, and how to keep the old behaviour where that is possible.

Rollback

Per component, whether going back is safe, and which database changes cannot be undone.

2. Check the prerequisites

  • Servers: check the Server Requirements - Latest. From v2026.11 every x86-64 server needs a CPU with the x86-64-v2 instruction set; on a CPU without it the services do not start.

  • Disk: room for the new images on every server (the installer asks for at least 10 GB free on an installed server, 20 GB recommended) and room in the database for the migrations (data and log space).

  • Database: the login the seed uses must be allowed to change the database schema, because the seed applies the migrations.

  • Infrastructure: database, cache and message queue versions as listed under Compatibility & prerequisites.

  • Permissions: application keys that need new API permissions are listed under Permissions to assign. Some must be granted before the new account application starts, or sign-in fails.

  • Customised texts: when Seeded content that overwrites customer data lists e-mail templates or translations you have changed, export your text first. The seed replaces it with the shipped text and the change cannot be undone.

  • Maintenance window: plan one window that covers every component in every data centre. Monosign's services are stopped while the seed updates the database, usually a few minutes; some releases name migrations that take longer on large tables.

3. Record the version and back up the database

  1. Record the current version of every component: Management > System > Version History shows the Current Version of account, api, management, service and seed. Also note the image tags you run (for example with docker service ls) and the versions of the gateways and agents.

  2. Take a full backup of the Monosign database right before the upgrade, and make sure it can be restored. The seed's migrations are not undone by deploying older images: this backup is your only way back.

  3. Keep the previous images (or the previous installer build) available until the upgrade is verified.

4. Deploy

Installations made with the Monofor installer

  1. On the first server of the installation, run sudo monofor update. It shows the Update plan and asks Apply this update now? [y/N].

  2. Confirm. The installer downloads the images on every server before it changes anything, stops Monosign's services, runs the seed to update the database, and then starts the services on the new version. You can follow the run with sudo tail -f /var/log/monofor/install.log; the run goes on when the SSH session drops.

  3. When it ends, run sudo monofor status on the first server: it must end with Everything is healthy. On every added server it must end with This server can serve as a node of the installation.

Never upgrade by editing the image tags under /opt/monofor by hand: the database is then not updated and the services restart in a loop. An installation made with the older script installer is first taken over with sudo monofor migrate (check) and sudo monofor migrate --apply.

Installations you deploy yourself (Docker Swarm stacks, Kubernetes)

Update the components in this order and wait for each step to finish before you start the next one:

Step

Component

Notes

1

seed

Applies the database migrations and the new settings, permissions, texts and contents. Run it once, and in one data centre only. Wait until its log shows Seed lock '…' released. before you go on.

2

api

Every API instance.

3

account and management

After the API, because they call it.

4

service

Every service instance and mode (Critical, Standard, Batch).

5

Gateways and agents

RADIUS server, LDAP gateway, Access Gateway and External Services; then agents such as the Windows Source Agent. Always after the API. Update them in the same window: they are part of the release, not optional extras.

  • Redeploy every component listed in the release's Components table. A component left on the old version keeps the old behaviour and can disagree with the others.

  • Never run an old and a new seed against the same database at the same time. When several seed instances exist, run exactly one during the upgrade. A second seed waits up to 600 seconds for the first one and then stops.

  • Use the same version on every instance of a component.

Several data centres

  • Run the seed in one data centre only. The other data centres share the same database, so their applications start against a database that is already updated. Do not deploy or run the seed there.

  • Upgrade every component in every data centre in the same maintenance window. While old and new versions run side by side, background work can run twice and settings saved on one version may not reach the other.

  • In each data centre keep the order api, then account and management, then service, then gateways and agents.

  • Keep the service mode and sharding configuration the same on every service node in every data centre.

  • Windows Source Agents connect to the API address of one data centre (not the global address). Update them after the API of that data centre.

5. Verify

  1. Versions: Management > System > Version History shows the new version as Current Version for account, api, management, service and seed.

  2. Health endpoints: GET https://<API address>/ping/hc?detail=1 answers HTTP 200 with "IsHealthy": true and the checks Database, Mq, Cache and License healthy (HTTP 400 lists the failing checks). Management answers the same on /ping/hc. Every application answers /probes/ready (or /health/ready) as ready. Management > System > Status shows every component up.

  3. Sign-in: sign in to the account portal as a test user, open an application with single sign-on, and sign in to Management.

  4. Logs: the seed log ends without errors after Seed lock '…' released.; no service restarts in a loop (docker service ls shows every replica running, docker service ps <service> --no-trunc shows no repeated failures); the api and account logs show no new errors.

  5. Release checks: do every item under Verify in the release's Upgrade guide.

6. Roll back

  • Read first: the Rollback part of the Upgrade guide says, per change, whether going back is safe. Some fixes come back as defects after a rollback.

  • When it is safe (no migration or seeded change in the way): redeploy the previous images of every component in every data centre together. A mixed fleet has the same problems as a half-done upgrade.

  • When it is not safe, or the database was already updated: the seed does not undo migrations, and the installer does not take a database back. Stop every component in every data centre, restore the database backup taken before the upgrade, deploy the previous version on every component, and verify as in step 5. Everything written after the backup (sign-ins, audits, users, settings) is lost with the restore.

  • Texts and templates the seed replaced come back only from your own export.

  • On an installation made with the Monofor installer, contact Monofor support before you roll back.

Troubleshooting

Symptom or message

Cause

What to do

After a version change every service restarts in a loop with an error such as column … does not exist.

The images were changed but the database was not updated (image tag edited by hand, or the seed did not run).

Run the seed of the new version (installer: sudo monofor update).

The seed stops with MIGRATION FAILED - MANUAL STEPS and exits with code 1.

A migration failed, for example duplicate rows under a new unique index, a missing database right, a statement timeout or no disk or log space.

Do step 1 of the block on the database and start the seed again: it goes on from that migration.

The seed logs Migration Lock Process started and then nothing.

Another seed holds the database lock.

Make sure only one seed runs; it waits up to 600 seconds for the other one.

The installer waits on Waiting for Monosign to prepare the database and stops after 8 minutes.

The seed cannot reach or update the database.

Read the Diagnosis part of the output and docker service logs monosign_seed.

Every container stops at start with The current CPU is missing one or more of the baseline instruction sets.

The server's CPU lacks the x86-64-v2 instructions (v2026.11 and later).

See Server Requirements - Latest.

sudo monofor update on an added server answers this server joined the installation of <manager> — run 'sudo monofor update' on that server.

Updates run on the first server only.

Run sudo monofor update on the first server.

After the upgrade a customised e-mail template or translation shows the default text.

The release ships a new version of that text and the seed replaced it.

Apply your exported text again; later seeds keep it until the next version of that text.

Related pages

Permanent link