Rolling back a Metabase upgrade

When a Metabase upgrade goes wrong, you can restore the pre-upgrade application database backup or run migrate down with the newer JAR. The two paths differ in what content created after the upgrade survives.

On this page

When a Metabase rollback is the right call and how the two paths differ

If an upgrade has failed or is behaving badly, your goal is to get users back onto a working version quickly and without losing content. Metabase gives you two supported routes: restoring the pre-upgrade application database backup, which is the recommended rollback, or running the migrate down command with the newer JAR. After a major upgrade, the older version may refuse to start unless you take one of these steps, so a rollback is not simply swapping the JAR back. Before you act, confirm which version you are on, which version you are returning to, and whether the upgrade crossed a major release, since the behavior differs with the size of the change. The Metabase upgrading documentation describes both routes, and the Metabase version support page helps you judge whether the target version is still receiving fixes.

Restoring the backup returns the application database to the state it had before the upgrade ran. That means any saved questions, dashboards, collections, users, permissions and settings created or changed after the upgrade are discarded, along with anything else written to the application database in that window. Migrate down, by contrast, runs the migrations in reverse using the newer JAR and can keep changes made since the upgrade, but it depends on the newer version still starting and completing cleanly. Decide which content you can afford to lose, check who has edited content since the upgrade, and confirm with your team whether a backup taken immediately before the upgrade exists and has been tested for restore.

What each rollback path does to the instance

This table compares restoring the pre-upgrade application database backup with running migrate down using the newer JAR, row by row across the content and settings created after the upgrade. Read each row as a question: if your team needs to keep this item, which path keeps it. The main takeaway is that migrate down can keep changes made since the upgrade, while a restore returns the database to its backup point and discards later work.

Item changed after the upgradeRestore the pre-upgrade backupRun migrate down with the newer JAR
Overall effect on the databaseReturns the application database to the state captured at backup timeReverts the schema to the older version and can keep changes made since the upgrade
Saved questions and dashboardsQuestions and dashboards created after the backup are gone; confirm with a test restorePost-upgrade content can be kept, but confirm it still works on the older version
CollectionsCollections created or moved after the backup revert to their backup stateChanges made since the upgrade can be kept; check nested collection placement after startup
Permissions and data accessGroup and permission edits made after the backup are lostPermission changes made since the upgrade can be kept; re-verify access for key groups
Users and groupsAccounts and memberships added after the backup are removedAccounts and memberships added since the upgrade can be kept; confirm sign-in still works
Settings and configuration in the admin panelSettings changed after the backup revert to their backup valuesSettings changed since the upgrade can be kept; review them on the older version
Required actionStop the newer instance, restore the backup, then start the older JAR or imageStop the newer instance, run migrate down with the newer JAR, then start the older version
When Metabase refuses to startRestore is the supported route once the database has been migrated forwardUse it when a restore is not an option, and confirm the procedure with the upgrade docs first

Why Metabase may refuse to start on an older version

Metabase refuses to start on an older version after a major upgrade because the upgrade runs application database migrations automatically, and those migrations move the application database schema forward. The older JAR expects the schema it was built for, so starting it against the upgraded database can fail. That is why a downgrade is not simply a matter of pointing the service back at the previous JAR or container image. After a major upgrade, you have two ways back: restore the application database from the backup you took before the upgrade, or run the migrate down command manually.

The migrate down route has a specific requirement. The command must be run with the JAR of the higher version, the one that performed the upgrade, not the older one. Once the reverse migrations finish, you start Metabase with the older version. Because the schema is being changed in place, this path is more involved than a restore, and it is easier to get wrong under pressure. Treat it as an operation that needs its own runbook, a tested procedure on a copy of the database, and a confirmed database backup in hand before you begin.

The exact commands, flags and the supported paths for your version are in the official upgrade documentation, so confirm them there before you rely on either method. Ask your team to answer three questions in advance: which version you would roll back to, whether that version's JAR or image is still available, and who is authorized to run the procedure. Those answers decide whether a restore or a migrate down is practical in your environment.

Choosing between restore and migrate down

Restoring the pre-upgrade application database backup is the rollback path Metabase documents as the recommended option. You stop Metabase, restore the application database from the backup taken before the upgrade, and start the older JAR or image. The database returns to the state it had at backup time, so the instance is consistent with the older version and no migration logic runs in reverse.

  • Data at risk: every change made after the backup is lost, including saved questions, dashboards, collections, users, groups and settings created or edited since the upgrade.
  • Simplicity: the restore does not depend on the newer JAR's migration code, which makes it the safer option when the upgrade failed partway through.
  • Recency: the value of the backup depends on its age. A backup taken days before the upgrade may hide weeks of work that users will need to recreate.
  • Application database only: the restore covers the application database, not the warehouses Metabase queries, so check that those sources are unaffected by the upgrade.
  • Verification: confirm the backup file is complete and restorable on a test host before you rely on it.

Before choosing this path, confirm the backup timestamp, the count of content objects created since then, and whether those objects can be recreated or are expendable.

What to prepare before upgrading so rollback stays possible

Rollback is only as good as what you set aside before the upgrade begins. The five items below form one preparation set: a verified backup, the prior binary, a record of configuration, a rehearsed restore, and a snapshot of what was live. Confirm each one before you touch the running instance.

Verified application database backup

Take a backup of the application database before the upgrade runs, because Metabase applies its migrations automatically at startup. The backup is the recommended rollback path, so it must be a complete copy of the database Metabase uses, not a export of dashboards. Confirm the backup file is readable, has a recorded timestamp, and was taken while the instance was stopped or quiesced. Store it outside the host being upgraded.

Upgrading docs

Exact prior JAR or image

Keep the exact JAR or container image of the version you are leaving, pinned by its full version tag or checksum. Without it, you cannot start the older release against a restored database or run the older binary during a rollback. Store the file or image in a registry or artifact store you control, and confirm it still starts in a test environment. Do not rely on rebuilding it later from a moving tag.

Inventory of configuration and environment

List every environment variable, configuration file, reverse proxy rule, JVM option and secret reference the running instance uses, including the encryption key settings that protect stored database credentials. Metabase reads these at startup, so a restored database paired with a changed key or database connection string can fail to start or fail to decrypt connections. Record where each value is kept and who can change it.

Rehearsed restore in a test environment

Restore the pre-upgrade backup into an isolated environment, start the prior version against it, and confirm login, a sample of saved questions and dashboards, and a warehouse query all work. Time the restore and note every manual step, so the production rollback follows a known sequence. Repeat the rehearsal after any change to the database engine or hosting. A restore you have never run is an assumption, not a rollback plan.

Record of content and users at upgrade time

Export or document the set of users, groups, collections, saved questions, dashboards and data permissions active when the upgrade starts. Content created after this point is the part a restore will remove, so this record tells you what to re-create or communicate to users. Note the active sessions and scheduled subscriptions as well. Confirm the record is stored with the backup, so both can be compared after a rollback.

Rollback sequence: stop, decide, restore or migrate, verify

This sequence takes an upgraded Metabase back to a known good state with a clear record of which path was chosen and why. It ends with an older version running against verified data, logins, queries, dashboards and scheduled tasks.

  1. Stop the upgraded Metabase instance

    Stop every running Metabase process that points at the application database, including each node if you run more than one. Confirm that no instance is still serving traffic or writing to the application database, because a process still running during restore or migrate down can leave the database in a mixed state. Record which JAR or image version was running, which version you were moving to, and who authorized the rollback. Checkpoint: no Metabase process is running, and the load balancer or reverse proxy shows no healthy backend for the instance.

  2. Confirm the failure and last good backup

    Write down the symptom that triggered the rollback, such as a failed startup, a failed migration in the logs or a broken feature, and capture the relevant log lines. Identify the timestamp of the last application database backup taken before the upgrade, and confirm that the backup file is readable and complete. Note the time of the last backup, because any content created or changed after that point will be lost if you restore. Checkpoint: you have a written failure summary, a backup timestamp, and a list of changes made in Metabase since the upgrade, such as new questions, dashboards, users or permission edits.

  3. Choose restore or migrate down

    Decide between restoring the pre-upgrade application database backup, which the Metabase upgrade documentation recommends, and running the migrate down command with the newer JAR. Restoring returns the application database to its pre-upgrade state, so content created after the upgrade is removed. Migrate down can keep changes made since the upgrade, but it depends on the newer JAR still being available and on the migration state being healthy. Involve the data owner and the security or compliance lead when content created after the upgrade matters for audit. Checkpoint: a written decision that names the path, the reason, and the content that will be lost or kept.

  4. Perform the restore or migrate down

    If you restore, put the pre-upgrade backup back into the application database location using the procedure for your database type, and keep the restored copy untouched until verification is complete. If you migrate down, run the command with the JAR of the higher version that you upgraded to, and let it finish before doing anything else. Keep the console output, exit status and any warnings. Checkpoint: the restore finished without errors, or migrate down completed and reported success, and you have the logs saved.

  5. Start the older Metabase version

    Start Metabase using the JAR or container image for the older version that matches the restored or migrated-down application database. Running a mismatched version is the most likely cause of a failed start, because Metabase may refuse to start after a major upgrade unless the database is restored or migrated down. Watch the startup log until the application reports that it is ready, and confirm the version shown in the admin console. Checkpoint: one instance of the older version is running, reports healthy, and no migration errors appear in the log.

  6. Verify logins, queries, dashboards and scheduled tasks

    Sign in with an administrator account and with a standard user account, and confirm that group membership and permissions match what you expect. Run a representative set of saved questions and open several dashboards against each connected database, checking results against known values. Confirm that scheduled dashboard subscriptions and alerts are present and that the next run is set to the expected time. Check that database sync and connection tests succeed. Checkpoint: each of these checks has a recorded result, and any failure is logged before users are told the rollback is complete.

  7. Take a second backup before retrying the upgrade

    Once the older version is verified, take a fresh application database backup before you change anything else, so you have a clean record of the rolled-back state. Do not retry the upgrade until the cause of the failure is understood and fixed in a test environment, and until a new pre-upgrade backup has been taken immediately before the next attempt. Tell users which content created after the upgrade was lost if you restored, and ask them to recreate it. Checkpoint: a new backup exists with a recorded timestamp, the failure cause is documented, and a retry plan names the backup point to restore to if needed.

How the rollback decision path flows

The path starts at a failed upgrade, where the first check is whether the older JAR still starts against the upgraded application database. If it does not, the team must decide whether content created after the upgrade has to be kept. A verified backup gives the restore route, which is the recommended option. Without a verified backup, migrate down with the newer JAR is the remaining route, and if neither path is clean, escalate to the vendor documentation and support before changing anything else.

Decision path for choosing between restore, migrate down and escalation after a failed upgrade.

What happens to content created after the upgrade

A restore discards everything written to the application database after the backup was taken. That covers saved questions, dashboards, collections, permission changes and newly created users, because Metabase stores all of them in the application database. If the team restores the pre-upgrade backup, the instance returns to the state it had at that moment, and any work done during the upgrade window is gone unless someone re-creates it by hand or from an export. Before choosing this path, count how long the instance ran on the new version and who changed what during that period.

Running migrate down with the newer JAR works differently. The Metabase upgrading documentation says this command can keep changes made since the upgrade, after which Metabase is started with the older version. That makes it the path to consider when the business wants to preserve new dashboards or permission edits. The trade-off is that the outcome depends on how the older schema handles those rows, so the team should not assume every change survives intact. Confirm in the official upgrading documentation exactly how each object type is treated before relying on this route.

Start by listing recent changes by type: new or edited saved questions, dashboards, collections, permission group membership and data permissions, sync settings, and new user accounts. Ask the content owners and administrators which of these they cannot afford to lose, then compare that list with the official guidance for each type. The decision is then a business one: accept the loss of post-upgrade changes through a restore, or accept the migrate down outcome for the changes that remain. Record the decision and the list in the change record before the rollback starts.

What makes a rollback take longer

This table lists the factors that change how long a Metabase rollback takes and how much checking it needs. Read each row as a question to answer about your own instance before you pick between restoring the backup and running migrate down. The main takeaway is that a rollback is slowest when the backup is large, the cluster is large, or content was created after the upgrade and must be kept.

DriverEffect on rollback effortWhat to check before you start
Database size and backup durationA larger application database takes longer to dump, copy and restore, and the restore window lengthens with it.Measure a test restore on a copy of the backup and confirm how long the restore takes in a staging environment.
Number of instances or cluster nodesEach node must stop on the new version and start on the old one, and a multi-node cluster adds coordination steps.Confirm how many nodes run the application, and plan to reduce to a single node before any migration step.
Custom plugins or configurationPlugins, drivers or environment settings built for the newer version may not run on the older JAR or image.Check that the prior JAR or image still starts with your plugins, drivers and configuration files.
Volume of content created since the upgradeDashboards, saved questions and users created after the upgrade may be lost on restore or need careful handling on migrate down.Count content created since the upgrade and decide whether it must be exported, re-created or kept.
Database engine: PostgreSQL, MySQL or H2Backup and restore tooling differs by engine, and an H2 file needs a copy of the file rather than a database dump.Confirm the engine in use and the matching backup and restore procedure for that engine.
Availability of the prior JAR or imageIf the older JAR or image is missing, rollback requires sourcing it first, and an unavailable version can force a rebuild.Keep the exact prior JAR or image tag on hand and test that it starts against a copy of the database.

Questions teams ask before a Metabase rollback

Can you roll back a Metabase upgrade without a backup?

Yes, but only through the migrate down path, and it is the harder option. Metabase's upgrade documentation lists two rollback methods: restoring the pre-upgrade application database backup, which it recommends, or running the migrate down command with the newer JAR. After a major upgrade, Metabase may refuse to start on the older version unless you restore a backup or migrate down manually. Without a backup, migrate down is the only route left, so the team must run it carefully and check the result against the content created after the upgrade before users return.

What decides how much a Metabase rollback costs?

The main drivers are the rollback method, the number of nodes, how much content changed after the upgrade, and how much verification the business requires. Restoring a backup is usually simpler to plan because it returns the application database to a known state. Migrate down can keep changes made since the upgrade, so it needs more reasoning about which changes survive. Costs fall into two groups: internal staff time for planning, the change window and testing, and any external engineering time if a partner runs the work. Ask any partner for a written scope that names the method, the environments covered and the verification steps.

How long does a Metabase rollback take?

Metabase's documentation does not give a duration for a rollback, so the time depends on your environment. The biggest factors are the size of the application database, the time needed to restore it, whether the instance runs as a cluster that must be scaled to one node, and how long testing takes. Teams should time a restore in a non-production copy before planning a production window. Confirm the expected duration with your own engineers or your partner rather than relying on a general estimate.

What must our team provide before a rollback starts?

You need access, a clear owner and a tested backup plan. Provide the pre-upgrade application database backup, the older Metabase JAR or container image, the newer version you are leaving, and the configuration files and environment variables used by both. Name who approves the change, who can reach the database host, and who decides when to stop. You also need a list of content created after the upgrade, such as new questions, dashboards and permission changes, so the team knows what could be affected by a migrate down. Confirm that the database platform and its restore tools are available in the same environment.

Can our own team run a Metabase rollback?

Yes, if you have people who can operate the application database, manage the Metabase process or container, and verify the restored instance. Restoring a backup follows the documented upgrade procedure, while migrate down needs careful handling because it depends on the exact versions involved. Teams without database administration experience, or with a multi-node cluster, often choose outside help. DeployOpen implements, hardens, backs up, upgrades and documents self-hosted platforms inside the client's own infrastructure, and it works from a written scope agreed before work starts.

How do we avoid needing a Metabase rollback?

Prepare before each upgrade rather than planning for a rollback afterward. Back up the application database first, which Metabase recommends, and keep the pre-upgrade backup until the new version has run for long enough to confirm it works. Metabase's documentation advises reducing a cluster to a single node for major upgrades because of a migration lock, and upgrading release by release from versions older than 40. Test the upgrade in a copy of production, read the release notes for the target version, and check the version support page so you know which line you should be on.

How DeployOpen approaches rollback planning and recovery

DeployOpen treats rollback as a planned part of every Metabase upgrade scope, not as an emergency step improvised during a failed cutover. Before work starts, the rollback points and the decision criteria are agreed in writing with your team. The agreement names the application database backup that serves as the primary rollback point, the check that confirms it is complete and restorable, the conditions under which the team stops and reverts (for example, a failed migration, Metabase refusing to start, or broken sign-in), and who has authority to make that call. Whether migrate down with the newer JAR is ever an acceptable fallback is decided at this stage too, because it changes what happens to saved questions, dashboards and users created after the upgrade. DeployOpen works inside your own cloud accounts, data centers or air-gapped networks, and the scope, deliverables and timelines are confirmed in writing before any change is made to your environment.

Before the production window, DeployOpen rehearses the restore in a test environment built from a copy of your production application database and the same Metabase version pair. The rehearsal confirms that the backup restores cleanly into the application database engine you run (PostgreSQL or MySQL in most production setups), that the older JAR or container image starts against it, and that sign-in, saved content and data connections behave as expected. It also times the steps so your change window is based on measured work rather than an estimate. Where the team plans to test migrate down, the rehearsal records what it keeps and what it discards, so the decision uses evidence. Your team should confirm that the test environment matches production in database version, Metabase configuration and network access to data sources before relying on the result.

After the rehearsal and again after any real rollback, DeployOpen documents the outcome in a runbook and a short decision record. The runbook lists each step, the commands or container tags used, the verification queries and log messages to check, and the owner of each step. The decision record states which rollback point was used, what content created after the upgrade was lost or preserved, and what remains to be reconciled with users. For regulated teams, this record becomes part of the change evidence their auditors and internal reviewers will ask for. Ask any provider for the same artifacts in writing, and confirm with your own change management process how long backups are retained and who may approve a restore.

How DeployOpen scopes, delivers and supports the upgrade

DeployOpen approaches a rollback as a planned recovery path, not an emergency fix. We agree in writing which rollback method fits your instance, then build, test and document it inside your own infrastructure before the upgrade starts.

How we scope

  • Inventory the current Metabase version, deployment type, and application database engine before choosing a rollback method.
  • Define whether restoring the pre-upgrade application database backup or running migrate down is the intended path.
  • List content created after the upgrade and agree how it will be handled during a rollback.

How we build

  • Set up and verify the application database backup procedure, including a restore test on a separate environment.
  • Document the migrate down steps and test them against a copy of your instance using the newer JAR.
  • Write checkpoints and go or no-go criteria so the team knows when to roll back and which method to use.

How we hand over

  • Deliver a written rollback runbook covering each method, its prerequisites, commands and expected results.
  • Record which content and settings change under each rollback path, so content owners can plan around them.
  • Walk your operations team through a rehearsal so they can run the rollback without relying on DeployOpen.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer if you want DeployOpen to stay involved.
  • Ask us to confirm the rollback runbook still matches your Metabase version and deployment after each future upgrade.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.