This page describes the procedure every Monosync upgrade follows, whichever version you upgrade to. Each release adds its own steps in its Upgrade guide.
Always read the Upgrade guide of the version you upgrade to before you start: Monosync release notes (opens in a new tab) > choose the version > Upgrade > Review upgrade guide. When you skip versions, choose your current version as the starting point: the guide then lists the steps of every version in between.
Overview
- Read the release notes and the Upgrade guide.
- Check the prerequisites.
- Record the current version and back up the database.
- Deploy the new image: one node first, then the others.
- Verify: health check, version, logs, and the release's own checks.
- 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
The Upgrade guide of a version starts with Read first: what can stop the upgrade or change what users see. Then it gives the checklist in the order you carry it out (Before you start, Deploy, Configuration, Permissions, Verify), the breaking changes, the security fixes, the known issues and whether a rollback is safe. Use Copy checklist or Export PDF to take it with you.
2. Check the prerequisites
- Database: SQL Server or PostgreSQL. Monosync applies its database migrations itself when it starts, so the account it connects with must be allowed to create and change tables and indexes. Some releases need more (for example
ALTER DATABASEon SQL Server); the Upgrade guide says so. - Monosign: the version the Upgrade guide names. Upgrade Monosign first when it is older.
- Environment variables: the guide lists every variable a release adds, renames or removes. Prepare the new values before you deploy.
3. Record the version and back up the database
- Version: the bottom of the left menu shows the build date and the version (on v2026.11 it starts with
v2026.11). The Instances page shows the version of every service node.GET /ping?versionanswers it too. - Database backup: take a full backup of the Monosync database (SQL Server: a full backup; PostgreSQL:
pg_dump). It is the only way back when a release's migrations cannot be undone. - Settings export: Settings > Settings Import / Export > Export. From v2026.11 the export asks for a passphrase; keep it apart from the file.
- Environment: keep a copy of the environment file (
monosync.env) or of the compose or Kubernetes values.
4. Deploy
Every Monosync node runs the same image, cr.monofor.com/monosync/app:v<version> (for example cr.monofor.com/monosync/app:v2026.11). A node runs as a UI node, a service node or both, set by MONOSYNC_DISABLE_UI and MONOSYNC_DISABLE_SERVICE; nothing about that changes in an upgrade.
- Change the image tag to the new version for every node, UI and service nodes alike.
- Start one node first. Every node applies the pending migrations when it starts; starting one first lets it finish them alone. Its log shows
Migration is starting...andMigrations use a command timeout of 5 minutes. - When that node answers
GET /ping/hcwith HTTP 200, start the other nodes.
On a large database a migration can take longer than the default 5 minutes. Set MONOSYNC_DB_MIGRATION_TIMEOUT_MINUTES (whole minutes) before you start the first node when the Upgrade guide warns of a long-running migration:
MONOSYNC_DB_MIGRATION_TIMEOUT_MINUTES=30
Several data centres
All Monosync nodes share one database. Upgrade the nodes of every data centre in the same window, so that no node of the older version runs against the newer database.
Installed by Monofor
If Monofor deployed Monosync for you, ask Monofor support which file holds the image tag on your servers, or ask them to carry out the upgrade with you.
5. Verify
GET /ping/hcanswers HTTP 200 with{"isHealthy":true,"instanceCount":<n>}.instanceCountis the number of running service nodes; 0 means no service node is running.GET /ping/hc?detail=1showsDatabaseandCacheasOK.- The bottom of the left menu shows the new version.
- The log of the first node has no
Database check:error. - Run an integration once (Run Once) and check its log.
- Carry out the Verify steps of the Upgrade guide.
6. Roll back
Monosync never undoes migrations. The previous image can run on the upgraded database only when the Rollback section of the Upgrade guide says so; it also names the fixes a rollback re-opens. Otherwise restore the database backup from step 3 and deploy the previous image again.
Troubleshooting
| Message | What to do |
|---|---|
Database check: unique index UX_IntObject_ObjectTypeId_PrimaryKey on IntObject (ObjectTypeId, PrimaryKey) cannot be created because active objects share the same primary key within an object type, so MonoSync does not start. | The message lists up to 50 groups of objects that share a key. Keep one active object per key in each group (remove or rename the others), then start Monosync again: the index is created then. |
Database check: READ_COMMITTED_SNAPSHOT is OFF. | SQL Server only. Ask a DBA to run the ALTER DATABASE command the message prints. |
| The first node stops while it applies migrations on a large database | Raise MONOSYNC_DB_MIGRATION_TIMEOUT_MINUTES and start it again. |
<NAME> is encrypted but MONOSYNC_INSTALLATION_ID is not set, so it cannot be decrypted. | Set MONOSYNC_INSTALLATION_ID. See Encrypted Environment Values. |
GET /ping/hc answers HTTP 400 with Error - Redis Unavailable or Error - Cache Unavailable | The node cannot reach the cache. Check the cache server and the cache settings in the environment. |