Planning a Synapse platform upgrade before you touch production
If your Synapse homeserver is several releases behind, upgrade in supported steps, read every set of upgrade notes between your current version and your target, and treat the rollback floor as the hard limit on how far back you can recover. Synapse publishes a table of the earliest version each release range can roll back to. For example, Synapse v1.105.1 through v1.163.0 can be rolled back safely only as far as v1.100.0. Before choosing between an in-place upgrade and a partner-led one, confirm which release ranges your upgrade path crosses and where each range's rollback floor sits. The primary source for all of this is the Synapse upgrade notes, which you should read in full rather than skimming the newest entry.
Synapse will not start until its database migrations complete, so each schema change in the path becomes a step you cannot skip. The docs advise stepping through each incompatible schema version instead of jumping straight to the newest release, because that keeps a rollback option open at each stage. The supported path therefore matters more than the newest version: a target that is current but reached by an unsupported jump leaves you with no safe place to return to. Also confirm the platform floors each release imposes. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and 1.142.0 and later require Python 3.10 or newer, so your database and runtime may need changes before the Synapse change itself. Ask who owns each of those changes and when they will be tested.
Which recent Synapse changes break upgrades
This table compares the recent Synapse changes that can stop or complicate an upgrade, with the impact of each and the action to take before upgrading. Read each row against your current version and your database, Python, and authentication setup. The main takeaway is that the platform floors and the 1.157.0 and 1.163.0 changes need checks before the upgrade starts, not after the service fails to start.
| Change | Impact | Action before upgrading |
|---|---|---|
| PostgreSQL 14 floor from 1.143.0 | Synapse 1.143.0 and later require PostgreSQL 14 or newer. An older database server blocks the upgrade. | Confirm the PostgreSQL major version in use. If it is older than 14, plan a database upgrade first and check locale settings on the new cluster. |
| Python 3.10 floor from 1.142.0 | Synapse 1.142.0 and later require Python 3.10 or newer. Hosts or images on older Python cannot run the release. | Check the Python version in the Synapse runtime or container image. Rebuild or replace the runtime before changing the Synapse version. |
| MSC3861 auth delegation removed in 1.157.0 | The experimental MSC3861 auth delegation is no longer supported. Deployments still relying on it cannot carry over unchanged. | Identify any MSC3861 configuration. Migrate authentication to the stable Matrix Authentication Service integration before moving to 1.157.0 or later. |
| Profile request startup check in 1.163.0 | Synapse 1.163.0 refuses to start if limit_profile_requests_to_users_who_share_rooms is set without require_auth_for_profile_requests. | Search the configuration for limit_profile_requests_to_users_who_share_rooms. Set require_auth_for_profile_requests in the same change so the server starts. |
| Rollback range for v1.105.1 through v1.163.0 | Illustrative reading of the published table: a server in this range can safely roll back only as far as v1.100.0 because of schema changes. | Record the current version and the rollback target before starting. Take a verified database backup, since rolling back past the table limit is not supported. |
| Schema changes across incompatible versions | Stepping straight across many versions removes rollback options and can leave migrations incomplete. | Read every upgrade note between your version and the target. Step through each incompatible schema version and wait for background updates to finish. |
What to prepare before the first upgrade step
Synapse upgrades are hard to reverse once the database schema has moved, so most of the preparation happens before anyone runs an install. The six items below give you a restore path, a record of what the server depends on, and a place to rehearse, so that a failed step is an inconvenience rather than an outage.
Verified PostgreSQL backup
Take a full PostgreSQL backup while the homeserver is stopped, or confirm that the backup is consistent with a clean shutdown. A backup is only useful if you have restored it at least once to a scratch server and confirmed that Synapse starts against it. Restore it before you rely on it. Record the backup time and the Synapse release running at that moment, because that pairing tells you what a restore will return you to.
Upgrade notesInventory of homeserver.yaml
List every setting in homeserver.yaml that you changed from the defaults, including server_name, federation_domain_whitelist, oidc_providers, and any registration or rate limit values. Upgrade notes often rename or remove keys, and some releases refuse to start when two settings conflict. Keep a dated copy of the file so you can compare it with the file the new release expects.
Worker, Redis and proxy customizations
Write down every worker process, its type, its Redis connection, and the reverse proxy routes that send traffic to each one. Replication between the main process and workers depends on Redis, and older worker layouts can change in later releases. Keep the reverse proxy configuration under version control so you can see exactly which paths were routed where before the upgrade.
Python and PostgreSQL versions in place
Record the Python and PostgreSQL versions your homeserver runs today and compare them with the floors stated in the upgrade notes. A Synapse release can require a newer PostgreSQL or Python than your host provides, which forces a dependency upgrade before the Synapse step can run. Confirm whether the database server, not only the application host, needs work, and plan that change as a separate step.
Staging copy of the database
Restore the production backup into a staging environment with the same Synapse release, PostgreSQL version and configuration. Run each planned upgrade step there first and watch the schema migrations and background updates finish. Staging shows you how long the real database takes and whether any migration fails on your data, which a fresh test instance will not reveal.
Current release and rollback floor
Write down the exact Synapse version you run now and the earliest version the upgrade notes say you can roll back to from your target release. Synapse publishes this table, so you can check it against the release you plan to reach. If your current release is below the floor for the target, that tells you a rollback will not be possible and you need a plan for restoring the database instead.
Rollback tableWhy you step through incompatible schema versions
When a Synapse installation is well behind the current release, the upgrade notes ask you to read every intervening note but not to install every version. Instead, step through each release that carries an incompatible database schema change, so that a known rollback target remains available at every stage. The point is to keep a version you can return to if a later step fails, rather than jumping straight to the newest release and discovering afterwards that no earlier build can run against the migrated database.
Rollback is hard once schema changes have run. The upgrade notes warn that moving back to an older release can be difficult because of database schema changes between versions, and Synapse will not start until its migrations complete. The rollback table in the upgrade documentation sets the earliest safe target for each release range. For example, the table shows that Synapse v1.105.1 through v1.163.0 can be rolled back safely only as far as v1.100.0. Before you start, export that table's entries for your current and target versions, and write down the earliest version you could return to at each stage of the path.
Plan the stepping sequence before you touch production. Confirm with the upgrade notes which intermediate releases change the schema, and record the rollback floor for each one. Take a verified database backup before each step, and treat the backup as the real rollback path, since the software may not be able to undo a migration on its own. Ask your partner or internal team to show how the sequence was tested against a copy of your database, including how long each migration took on your data volume.
How to sequence each Synapse upgrade step
Each Synapse upgrade follows the same ordered sequence, so every schema change is applied, verified and given a known rollback point before the next one starts. The output is a homeserver running the confirmed release, with background updates finished and health and federation checks passed.
Take and verify the backup
The operator who owns the database takes a full PostgreSQL backup and a copy of the media store before anything changes, then restores the backup to a separate host to confirm it is usable. Record the Synapse release currently running, since that version is where the rollback table starts for this change. Done when the test restore completes and the current release is written in the change record. The backup is the rollback point for this step, and the recorded release is the earliest version you can return to by reinstalling it.
Read the notes for the target range
Read the upgrade notes for every release between your current version and the target, because the Synapse docs advise reading all notes in between. Mark each release that changes the database schema and each note about removed settings or startup checks. Then find the target in the rollback table. As an illustrative reading of one row, the table lists v1.105.1 through v1.163.0 as safe to roll back only as far as v1.100.0. Done when you have a written list of schema steps and configuration changes. Nothing has changed yet, so the release recorded in the first step remains the rollback point.
Check the Python and PostgreSQL floors
Compare the target release with the Python and PostgreSQL versions on each host. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and 1.142.0 and later require Python 3.10 or newer. If a host falls short, upgrade that platform component as a separate change with its own backup and its own verification. Done when both versions are confirmed against the upgrade notes for the target. Record the platform versions before any change so the starting state is known if the platform change needs to be reversed.
Stop the homeserver on every node
Stop the Synapse service on every node, including any worker processes, so no writes happen while migrations run. Confirm that no Synapse process still holds database connections or is serving traffic from a load balancer. Done when every host reports the service as stopped and the database shows no active Synapse sessions. Because no migration has run, starting the release recorded in the first step still returns the homeserver to its pre-upgrade state.
Install the target release and start
Install the single target release for this schema step and start it with the existing configuration. Synapse will not start until database migrations complete, so follow the logs until the process reports that it is running. Done when the process is up and migrations have finished without errors. Once migrations run, rollback is limited. Return to the earliest safe release in the rollback table for this target, which for the illustrative v1.105.1 through v1.163.0 range is v1.100.0, and restore from the step one backup if that release cannot start against the new schema.
Wait for background updates to finish
Check background update status through the Admin API and repeat the check until no updates remain running. Background updates continue after the process restarts and are throttled, so large databases can take longer to finish. Confirm the endpoint and response fields in the upgrade documentation for your release before you script the check. Done when repeated checks show no outstanding updates. The next upgrade does not begin until this condition is met, and the rollback limit from the previous step still applies while updates run.
Run health and federation checks
Test client login, sending and receiving messages, media upload and admin access with dedicated test accounts. Then confirm federation by checking delegation and reaching the federation listener, which uses port 8448 by default unless delegation points elsewhere, and exchanging events with a known remote server. Compare results with the baseline taken before the upgrade. Done when all test accounts pass and the federation check succeeds. If checks fail after migrations, the rollback table still limits you to its earliest safe release, so decide between fixing forward and restoring the step one backup.
Repeat for the next schema step
Return to the notes step with the next schema version on your list and repeat the full sequence without skipping any check. Record the release, the migration result and the background update outcome for each pass in the change log. Done when the final target has started, background updates have finished and checks have passed. Each completed pass sets a new rollback point, read from the table for that release, so keep the step one backup until the final target has passed its checks.
How the upgrade phases and rollback points connect
The path starts with recording the current Synapse version and reading every set of upgrade notes between it and the target. Before any install, check the platform floors for PostgreSQL and Python, and take a verified backup so a restore is possible. After the install step, Synapse runs its migrations, and the operator waits for background updates to finish through the Admin API before deciding whether to move on. A failed migration or unfinished background update stops the path, and the recorded rollback floor from the upgrade table is the only safe point to return to.
Upgrade phases, the backup gate, and the decision points where rollback applies.
How the upgrade differs by deployment style
On a single host installed from distribution packages or built from source, Synapse, its Python environment and its configuration all live on one machine, so the upgrade is a change made directly on that host. The team usually owns every layer: the operating system, the Python runtime, the homeserver.yaml file and any included configuration files, and the PostgreSQL cluster, whether it runs on the same host or on a separate server. Rollback on this model means restoring the previous code and a database backup taken before the upgrade began, because schema changes between releases can stop an old version from starting.
- Configuration:
homeserver.yamland its included files sit on the host, so you can diff them against the previous release and keep them under version control. Confirm the paths your package uses. - Database ownership: the team owns backups and restores. Take a PostgreSQL backup before the first step, because the rollback limits cover code, not data.
- Runtime floors: the Python and PostgreSQL versions must meet the floors in the Synapse upgrade notes before you install the release that requires them, which often means OS-level changes in the same window.
- Startup migrations: Synapse does not start until database migrations finish, so plan the maintenance window around that and watch background updates before the next step.
- Source installs: pin the release tag you build from and keep the previous virtualenv available, subject to the schema limits above.
Check the Python and PostgreSQL versions on the host, confirm where your installation keeps configuration, and test a database restore on a separate host before any production change.
In a container deployment, the Synapse image is the unit you upgrade, and the image tag decides which code runs. Configuration and the data directory are normally mounted into the container from the host or a volume, so they survive when the container is replaced. The database usually runs as a separate service or managed instance, which splits ownership between the platform team that runs the container host and the Matrix team that owns the Synapse configuration, media and data. An image upgrade is therefore a tag change plus a schema migration on first start. Rollback means returning to the previous tag and restoring the database, since the new schema is already applied once Synapse has started.
- Image pinning: pin an explicit version tag and avoid floating tags such as
latest, so a restart cannot pull a release you have not reviewed. - Config mounts: confirm that
homeserver.yamland the data directory mount at the same paths after the image changes. - Database placement: the database sits outside the container and outlives image changes. Restoring it is a separate step owned by whoever runs PostgreSQL.
- Orchestrator behavior: a scheduler or automatic update policy may replace the container before anyone has read the upgrade notes. Disable automatic image updates until the change is approved.
- Worker containers: if you run workers, every container must run the same Synapse version, so upgrade them in one change window.
Check the image tag and digest your orchestrator actually runs, confirm the volume mounts, and rehearse a database restore before the upgrade.
With ESS Community, the Helm chart and your values files define the deployed configuration. The chart version determines the Synapse release and the related components around it, so you upgrade the chart as one set of components. Your values files become the working source of configuration, and Helm records each release revision. ESS Community is free for non-professional deployments and evaluations, so a professional or government team should confirm its licensing position before planning the upgrade cadence. Database placement depends on your values, and that choice decides who restores it. The full procedure, including the manual event resigning job for the move from 25.12.1 to 26.4.1, belongs to the sibling topic on upgrading ESS Community with Helm.
- Values files: keep them in version control and compare the new chart defaults with your values before running Helm.
- Chart version: read the changelog for the target chart version before changing any values, because it sets the Synapse version.
- Database placement: confirm whether PostgreSQL is bundled with the chart or connected externally, since that determines your backup and restore ownership.
- Release history: Helm keeps a revision history for audit, but rolling back a revision does not reverse database migrations already applied.
- Licensing: confirm that your use falls under ESS Community, or plan for ESS Pro if it does not.
Confirm the target chart version and the Synapse release it carries, check where the database runs, and follow the sibling ESS Community upgrade topic for the steps.
What makes a Synapse upgrade take longer
This table lists the factors that stretch a Synapse upgrade and what each one adds to the work. Measure each driver in your own environment before asking for a quote, because the same version jump can take very different effort on a small server and on a large, busy one.
| Driver | Why it adds effort | How to measure it before quoting |
|---|---|---|
| Number of releases skipped | Each incompatible schema version may need its own step, and each step needs its own notes read and its own background updates to finish. | List every release between your current version and the target, and mark which ones the upgrade notes flag as breaking or schema-changing. |
| Database size and background updates | Large tables take longer to migrate, and background updates can keep running for a long time after restart, so each step waits for them. | Check table sizes and the background update status through the Admin API on a copy of production, and time a test upgrade on that copy. |
| Custom modules and spam checkers | Third-party modules may depend on internal APIs that change between releases, so each one must be tested against every intermediate version. | Inventory every module and spam checker in homeserver.yaml, note its source and maintainer, and confirm whether a release exists for the target version. |
| Worker layouts that need replacing | Legacy worker app types such as federation_sender or synchrotron must be moved to generic workers, which changes process layout, routing and Redis setup. | Review the worker configuration and list every worker type in use, then compare it with the workers documentation for the target version. |
| MSC3861 or legacy auth configuration | Experimental MSC3861 delegation was removed in v1.157.0, so deployments using it must move to the stable MAS integration, which means a separate service, identity provider setup and user migration. | Search configuration for experimental auth delegation settings and identify every login path, SSO provider and admin account that depends on them. |
| PostgreSQL and Python floors | Synapse 1.143.0 and later require PostgreSQL 14 or newer, and 1.142.0 and later require Python 3.10 or newer, so an older database or runtime must be upgraded first, often under a live server. | Record the current PostgreSQL and Python versions and compare them with the floors in the upgrade notes for each release you will cross. |
| Test environment availability | Without a staging copy that matches production data, every step must be verified on the live server, which raises the risk and the time for rollback planning. | Ask whether a restored copy of the production database and configuration can be built, and how long a restore takes in your environment. |
| Reverse proxy and federation configuration | Changes to federation listeners, delegation, port 8448 handling or the federation domain whitelist must be tested from outside the network, and proxy rules may need updates for new endpoints. | Test federation and client endpoints from an external host after each step, and review proxy and firewall rules against the federation settings in use. |
Questions teams ask before upgrading Synapse
What does a Synapse upgrade cost and what drives the quote?
The quote follows from a written scope, so no single figure applies. The main cost components are the time to read the upgrade notes for every version between your current release and the target, the work to check your configuration and worker layout, the staging rehearsal, the production change, and the monitoring that confirms background updates have finished. Costs rise with the number of versions crossed, the size of the database, the number of workers, custom modules, and any move from the experimental MSC3861 integration to MAS. Most of this is one-time work, while the upgrade cadence and any retainer for ongoing support recur. Ask for the versions in scope, the staging steps included, and what happens if a migration stalls.
How long does a Synapse upgrade take on a large database?
Duration depends mainly on how many background updates the release queues and how large your database is. Synapse will not start until its database migrations complete, but many changes are applied in the background after the server is running. The upgrade notes advise waiting for those background updates from each upgrade to finish before starting the next one, and you can monitor their progress through the Admin API. On a large homeserver, that wait can set the pace of the whole project, so plan it into your change calendar rather than assuming the restart is the end of the work. Confirm the current background update status on a copy of your own database before committing to a window.
Can our own team upgrade Synapse without outside help?
Yes, many teams do, provided they have someone who can read the upgrade notes critically, run PostgreSQL and Python safely, and test client behavior after each step. The harder parts are usually the multi-version path, custom reverse proxy or worker layouts, and any dependence on features removed in recent releases. Your team needs time for reading every intermediate note and rehearsing the sequence, not just the final release. DeployOpen can plan, rehearse and carry out the upgrade within a written, fixed scope, or support your team during the change. Ask a partner which versions and worker types the scope covers, and whether the work includes the staging rehearsal.
What access, backups and staging copy do we need to provide?
Before any production change, you need a recent, tested backup of the PostgreSQL database and media store, and a staging copy that matches production closely enough to rehearse each step. Provide administrative access to the host, reverse proxy, database and the Synapse configuration, along with the list of workers, bridges, appservices and identity integrations. You also need a change window agreed with the business, a rollback owner, and a contact who can confirm user-facing behavior during and after the cutover. Confirm with your own security team how staging credentials, secrets and admin tokens will be handled, since staging copies often contain production data.
Can we roll back Synapse after a failed migration?
Only within limits, so plan for the rollback before the upgrade. Synapse publishes a table of the earliest version each release range can safely roll back to. For example, v1.105.1 through v1.163.0 can be rolled back safely only as far as v1.100.0. The upgrade notes also warn that database schema changes between releases can make rollback difficult. For that reason, when upgrading from a very old version, step through each incompatible database schema version rather than jumping straight to the target, so that a recovery point stays available. Take a database backup at each step and confirm the rollback table entry for your exact versions with the Synapse documentation before starting.
What should we do about MSC3861 or the 1.163.0 startup check?
First, find out whether your homeserver uses the experimental MSC3861 auth delegation. Synapse v1.157.0 removed support for it, so that setup must move to the stable Matrix Authentication Service integration before you go past that release. Second, check your configuration for limit_profile_requests_to_users_who_share_rooms. Synapse v1.163.0 refuses to start if that setting is present without require_auth_for_profile_requests, so set both deliberately during your staging rehearsal. Treat these as configuration changes with their own tests, including login, profile lookup and room membership for a sample of users. Confirm your current settings against the upgrade notes before scheduling the production window.
Does our Synapse upgrade also require a PostgreSQL or Python change?
It can. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and 1.142.0 and later require Python 3.10 or newer. Synapse also drops support for Python and PostgreSQL versions once they reach upstream end of life, so an older database server can block an otherwise routine upgrade. Check your PostgreSQL and Python versions against the target release early, because upgrading PostgreSQL under a live homeserver is a separate piece of work with its own backup and locale checks. Ask your partner to include that dependency check in the written scope.
How DeployOpen scopes a Synapse upgrade
DeployOpen agrees the scope of a Synapse upgrade in writing before any work starts. The written scope names the Synapse versions in the path, the homeserver layout being changed (single process or workers, PostgreSQL or SQLite, any Matrix Authentication Service deployment), the environments covered, and the deliverables and timelines. Most engagements are fixed-scope, and DeployOpen does not publish a price list, so a quote follows from that written scope. When you request a quote, ask the provider to state which upgrade notes were read, which intermediate versions are included, how background updates are verified, and what happens if a rehearsal finds a blocker. A quote that does not name these items is hard to compare with another one.
The deliverables usually fall into four groups. The first is an inventory of the current deployment: Synapse version, database engine and version, configuration keys in use, enabled features, federation settings, and any experimental settings that later releases may have removed. The second is a version path that lists each release to be installed, with the rollback point recorded for each step, using the rollback table in Synapse's upgrade notes. The third is a rehearsal on a copy of production data, covering schema migrations, background update completion as seen through the Admin API, and the restart behavior of each process. The fourth is verification evidence: test logins, federation checks, and a record of settings changed. Ongoing upgrades for a server that keeps moving can be covered by a retainer, which replaces repeated scoping with a standing plan. Confirm with the provider how retainer hours are counted before you sign.
How DeployOpen works on this
DeployOpen plans, implements and supports self-hosted Synapse upgrades inside your own infrastructure, from the first version inventory through to documented handover. Each engagement is scoped in writing so the upgrade path, rollback position and monitoring of background updates are agreed before any change is made.
How we scope
- Inventory your current Synapse version, database engine, Python and PostgreSQL versions, and every configuration key in use.
- Map every upgrade note between your version and the target release, and flag each incompatible schema step.
- Agree in writing the rollback ceiling, the stepping sequence, and the background update checks that gate each release.
How we build
- Take a verified database backup and rehearse each step on a staging copy of your homeserver before production.
- Upgrade one version at a time, waiting for background updates to finish through the Admin API before continuing.
- Test login, federation, media, calls and admin functions after each step, and record the results against the plan.
How we hand over
- Deliver a runbook with exact commands, configuration changes, checkpoints and the rollback procedure for each step.
- Document the monitoring queries and thresholds your operators use to confirm background updates have completed.
- Walk your platform team through the runbook and the open items, such as the MSC3861 removal and any MAS migration work.
How we support
- Fixed-scope engagements cover the agreed upgrade path; further releases can be scoped separately as new work.
- Ongoing upgrades, testing and operational support are available as a retainer, scoped from your written requirements.
- Ask any provider to confirm which Synapse releases their runbooks cover and how rollback is tested before go-live.

