Why upgrading Metabase from versions older than 40 needs a staged path
If your self-hosted Metabase is several major versions behind, the upgrade is not a single jump. The Metabase upgrading docs require you to upgrade release by release to the latest 40.x version first, and only then jump to the current version. Instances from before 40 often also run an old Java runtime and an old application database, so the staged path is as much about prerequisites as about version numbers. Before you touch the JAR or container, record the running version, the Java version, the application database type and version, and whether the instance is a single node or part of a cluster.
The current targets are the Metabase 64 LTS line and Metabase 65. Metabase 64 is an LTS release with end of life on 1 December 2027, and Metabase 65 was released on 12 October 2026, according to the Metabase version support page. Choosing between them is a separate decision covered elsewhere on this page, but the staged path ends at whichever target you pick. Confirm the current support dates on that page on the day you plan the upgrade, since the dates reflect the published schedule at the time of writing. Do not assume the number of intermediate releases from memory. Work from the release list and the upgrade notes for each step.
The sequence is the same whether Metabase runs as a metabase.jar on a server or as a container. Only the mechanics change: in a JAR deployment you swap the file and restart the process, while in Docker you change the image tag. Either way, each step needs an application database backup taken beforehand, a startup check of the logs, and a verified login before the next step. Plan the effort around that loop, not around the number of releases. A staged path is also a cost driver for a partner quote: the number of steps, the state of the application database and the Java changes all affect scope, so ask for the upgrade path to be listed step by step in the written scope.
What changed between old releases and current Metabase
This table lists the changes that most often break or block an upgrade from a version older than 40 to the current line. Read each row as a checkpoint: confirm the impact against your own environment before you start, and treat the release notes for every intermediate version as the authoritative record for feature changes.
| Change | Impact | Action needed |
|---|---|---|
| PostgreSQL NonValidatingFactory removed in 0.38 | Removed support for the NonValidatingFactory SSL setting, so older PostgreSQL SSL configurations can fail at startup or on connection | Review the application database SSL settings before the upgrade and confirm certificate validation works with your PostgreSQL server |
| Java 25 required for JAR deployments | Metabase recommends Java 25 (Temurin JRE, HotSpot) and states earlier Java versions are not supported | Install a supported JRE on each host or move to the Docker image before upgrading the JAR |
| Automatic application database migrations | Each upgrade runs migrations on the application database automatically, so a failed run can leave the database partly changed | Back up the application database first and confirm the restore procedure before starting |
| Release-by-release path from older than 40 | Upgrades from versions older than 40 must step through each release to the latest 40.x before jumping to current | Plan the intermediate versions and read each release's notes for changes that affect your content and settings |
| Feature and permission changes between releases | Behavior of permissions, embedding, sync and other features changed across intermediate releases | Read every intermediate release's notes and test saved questions, dashboards and permissions after each step |
| Current LTS support window | 64 LTS was published on 16 September 2026 and reaches end of life on 1 December 2027 according to Metabase's version support page | Confirm which line you will target and calendar its end-of-life date against your own change windows |
| Single-node rule for major upgrades | A migration lock means a clustered Metabase should be reduced to one node for a major upgrade | Scale to one node for each major step, then scale back out after the migration completes |
What to prepare before the first upgrade step
Six preparation items come before any version change on a Metabase older than 40. Together they establish a restore point, a clear picture of the database and runtime you are moving, and a test copy where the upgrade path can be rehearsed before production is touched.
Application database backup
Take a full backup of the application database before the first upgrade step, not the Metabase JAR or container. Metabase runs its database migrations automatically at startup, so the backup is the restore point if a migration fails or a later release behaves badly. Confirm you can restore it to a host you control and record the Metabase version that wrote it.
Upgrading Metabase docsApplication database inventory
Identify which application database this instance uses: embedded H2, PostgreSQL or MySQL, and the exact server version of each. For MySQL, confirm the character set is utf8mb4, and for PostgreSQL, check the SSL settings, since older Metabase releases used a non-validating SSL factory that newer releases removed. Record the database host, connection settings and any proxy in front of it.
Application database docsJava runtime audit
Confirm which Java runtime launches the Metabase JAR on each host or container. Metabase recommends Eclipse Temurin JRE with the HotSpot JVM on Java 25 and states that earlier Java versions are not supported. Note every server that runs the JAR, since a fleet often has mixed runtimes, and plan the Java upgrade alongside the Metabase upgrade rather than after it.
Running the JAR docsTest instance restored from backup
Restore the production application database backup into a separate test instance that matches the production Java runtime and database version. Run the first upgrade step there and check that logins, saved questions, dashboards and database connections still work. This rehearsal shows migration time and surfaces errors before any production data is at risk.
Customization, plugin and integration inventory
List every custom driver, plugin, reverse proxy rule, SSO setting, LDAP or Google sign-in configuration, embedding setup and email or SMTP setting. Compare each item against the target release, since authentication and embedding options have changed across versions. Confirm which of these depend on a paid plan, because a feature that worked on an older edition may need a different license tier after the upgrade.
H2 migration decision
If the instance still uses the embedded H2 database, decide whether to move it to PostgreSQL or MySQL before upgrading. Metabase documents a load-from-h2 command for this, and it must run with the same Metabase version that last updated the H2 file. Confirm that version from the existing install before you start, because running the command with a different release can fail or corrupt the target.
Migrating from H2 docsHow the upgrade sequence runs from version 40 to current
The sequence moves a very old Metabase through each release up to version 40, then jumps to current, with a named checkpoint and rollback point at every stage so that a failed step never leaves the team without a known-good state. It produces a running instance whose application database has been migrated in order and verified against logins, queries, dashboards and scheduled jobs.
Take and verify the application database backup
Before any binary changes, the platform owner takes a full backup of the Metabase application database, which holds users, permissions, saved questions, dashboards and settings. Migrations run automatically on startup and the Metabase upgrade documentation recommends this backup first, so it is the main rollback point for the whole project. Verify the backup by restoring it to a separate database and confirming that Metabase can start against the copy. Record the backup identifier, the Metabase version it was taken from, and the JAR or image tag in the change record. The step is complete when a restore test succeeds and the record is filed.
Reduce the cluster to one node
If the instance runs as a cluster, the platform owner scales it down to a single node before the first major migration. The Metabase upgrade documentation recommends this because a migration lock lets only one node run schema changes, and other nodes starting during a migration can cause failures. Disable any autoscaler or orchestrator policy that could restart the remaining node mid-migration. Keep the removed nodes' configuration so they can rejoin later. The checkpoint is a single running node with no other instance pointed at the same application database.
Prepare Java and the application database
The platform team confirms the runtime and database prerequisites before swapping any JAR. Metabase recommends running the JAR on Java 25 with an Eclipse Temurin JRE, and states that earlier Java versions are not supported, so older Java installations need replacing first. Check the application database version against the current support list, and if the instance uses PostgreSQL, confirm the SSL settings. Metabase 0.38 removed the PostgreSQL NonValidatingFactory, which can cause startup or connection failures on older PostgreSQL setups, so test the connection string on a staging node. The checkpoint is a successful connection test and a Java version check recorded in the change log.
Upgrade to the latest 40.x and verify startup
The engineer deploys the latest 40.x release, which the documentation requires as the first stop for any instance older than version 40, and starts it against the application database. Watch the startup log until the migration messages finish and the application reports that it is ready, then check that the log contains no failed migration or database errors. Confirm the admin can sign in and that one saved question runs against a connected database. The rollback point is the pre-upgrade backup, and the checkpoint is a clean migration log plus a passing sign-in and query test.
Step through each intermediate release in order
The engineer repeats the upgrade cycle for each intermediate release between 40 and the current line, one at a time, without skipping any. Each stop needs its own backup, a startup check, a read of the migration log, and a smoke test covering sign-in and one query. Record the release, the backup taken before it, and the result, so that a failure can be traced to a single version. Do not move on while a migration reports an error, because later migrations assume earlier ones completed. The rollback point at each stage is the backup taken immediately before that release, and the checkpoint is a recorded clean run for that version.
Jump to the current release and verify
Once the last intermediate stop is verified, the engineer deploys the current Metabase release, starts it, and reviews the migration log once more. Then the team runs a verification pass covering sign-in through the configured method, a sample of saved questions, key dashboards with filters, and the scheduled subscriptions and alerts that operations depends on. Compare results with the pre-upgrade inventory and note any content that renders differently. The checkpoint is a signed-off verification list, and the rollback point is still the original backup, which remains valid until the team closes the change.
Restore the cluster and close the change
After the single-node run is verified, the platform owner scales the cluster back out, starting nodes one at a time and confirming each joins the same application database and version. Restore any orchestrator policies that were disabled earlier. Keep the pre-upgrade backup for the retention period set by your change policy, and update the runbook with the final version and backup identifiers. The step closes when all nodes report the current version and the change record is filed.
How to test each step and roll back safely
Treat every release in the path as a change you have tested before it touches production. Build a test environment from a recent copy of your production content and application database, and run the same JAR or container version sequence you plan to use in production. Before you start, confirm the migration behavior for each release in your environment, because the upgrade docs describe automatic application database migrations and your own content, plugins and database versions decide what actually runs. Use the Metabase upgrading documentation as the reference for the sequence and the backup step, then record what you observed at each stop so the production run repeats it exactly.
After each release in the test sequence, run the same short checklist and record the result. Confirm that migrations completed without errors in the logs and that the instance starts cleanly. Sign in through your configured SSO provider and through a local admin account. Check that Metabase connects to each warehouse and application database it depends on, including any database that needs the stricter SSL behavior introduced in version 0.38. Open a sample of saved questions and dashboards across different collections and confirm they render with the expected data. Finally, check email delivery and that scheduled reports and alerts still fire. Failed checks at any stop mean you stop the sequence, fix the cause, and restart from the last good backup rather than moving forward.
Plan rollback before you start the production run. Restoring the pre-upgrade application database backup is the recommended route, but it returns the application database to its state at backup time, so any question, dashboard, user, permission or setting created after that backup is lost. Running migrate down with the newer JAR is the alternative, but it may not reverse every schema or data change, so do not treat it as a guaranteed return to the earlier state. For each release, confirm with the vendor documentation and your own test restore which of these behaviors applies, and write down who approves a rollback and how long users can be asked to hold off on changes during the window.
What makes a Metabase upgrade from version 40 or older take longer
This table lists the factors that lengthen an upgrade from a Metabase version older than 40 and the effect each one has on effort. Read each row as a question to answer about your own instance before you plan the work. The main takeaway is that the number of intermediate releases and the application database setup usually matter more than the size of the instance itself.
| Driver | Effect on effort | What to check |
|---|---|---|
| Intermediate releases to walk | Each release on the path to the last version 40 is a separate upgrade and restart cycle | Confirm the exact path from your current version to the latest 40 release, then to the current version |
| Application database engine | An embedded H2 file needs a load-from-h2 migration, which adds a step and a version constraint | Identify whether you run H2, PostgreSQL or MySQL and which Metabase version last wrote the H2 file |
| H2 to PostgreSQL or MySQL move | Requires running the load command with the same Metabase version that last updated the H2 file | Keep that version's JAR available and confirm a clean load in a test environment first |
| Application database size and backups | Larger databases take longer to back up, restore and validate after each migration | Measure the database and confirm restore time from a recent backup before starting |
| Cluster size | Major upgrades require a single node because of the migration lock, so clusters need scaling down and back out | Count nodes, load balancer targets and any orchestrator settings that could stop a running migration |
| Java and operating system changes | Current releases expect Java 25 with Temurin JRE, so older hosts may need a new JRE or OS | Check the installed Java version and whether the host OS still receives vendor support |
| PostgreSQL SSL settings | Metabase 0.38 removed the NonValidatingFactory option, which can break older SSL setups at startup | Review the JDBC SSL parameters for the application database and any warehouse connections |
| Custom embedding or SSO integrations | Embedding and identity settings may change across many releases and need retesting at each step | List every embed, SSO provider and token flow, then test each one after each stop on the path |
| Customizations and API scripts | Scripts that call older endpoints or depend on removed settings need updates | Inventory cron jobs, CLI and API scripts, and any configuration that sets environment variables |
| Data sources and users to test | More connected databases and user groups mean more queries, permissions and dashboards to verify | Count connected data sources, groups and critical dashboards, and agree a test set with owners |
Questions teams ask before upgrading Metabase from an old version
Can our team upgrade a very old Metabase without outside help?
Yes, many teams can, provided they have someone comfortable with the application database, the Java runtime and the Metabase upgrade sequence. The difficulty grows with the version gap, because the docs require stepping release by release to the latest Metabase 40 before jumping to the current version. Ask yourself whether you have time to run and check each intermediate step, whether someone can restore a backup in a test environment, and whether anyone owns the test plan for dashboards, permissions and SSO. If those answers are unclear, a fixed-scope engagement can cover the planning and execution with your staff in the loop.
What drives the cost and effort of an old Metabase upgrade?
The main drivers are the number of intermediate versions to step through, the size and state of the application database, the number of data sources, SSO and embedding configurations, and how much custom content must be verified afterward. Infrastructure changes such as a Java runtime move or a new PostgreSQL version add work, as does any H2 migration. Costs split into one-time work (assessment, backups, test upgrades, cutover, documentation) and any recurring support or retainer you choose later. A quote should list each stage, the environments used, the test scope, who performs each task, what you must provide, and how rollback is handled.
What does our staff need to provide during the upgrade?
Plan for four roles to be available. A database administrator needs to provide access to the application database, confirm backup and restore procedures, and check PostgreSQL or MySQL version compatibility. A Java administrator confirms the runtime on each server and the process manager that starts the JAR. An SSO owner confirms identity provider settings, group mappings and login tests, since those often break during upgrades. Finally, a business owner should supply realistic test data, saved questions and dashboards, and sign off on the results. Ask your partner to list these needs in the written scope so they are scheduled before work starts.
Is a fresh install with a rebuild better than upgrading an old Metabase?
A rebuild can be the better choice when the existing instance is poorly documented, carries heavy undocumented customization, or depends on configuration that no one can reproduce. Upgrading keeps saved questions, dashboards, permissions and history intact, which matters when those assets are widely used. A rebuild means recreating connections, groups, collections, SSO settings and content, then validating every item against the old system, which can be slower for large instances. Compare the two options by counting the content to preserve, the number of people who depend on it, and how much of the configuration you can export or document. Your partner should present both paths with trade-offs before you choose.
How should we handle data in an H2 application database?
Metabase ships with an embedded H2 application database that is suited to demos rather than production. If your old instance uses H2, plan a move to PostgreSQL or MySQL before or during the upgrade, using the documented load-from-h2 command. That command must be run with the same Metabase version that last updated the H2 file, so the version history of the instance matters. Confirm the file location, take a copy of it, and test the load in a separate environment first. Check afterward that users, groups, permissions, questions and dashboards match the source. Keep the original H2 file until the new database has been verified.
What happens if the upgrade fails partway through?
The safe response is to stop, keep the pre-upgrade backup intact, and restore it. Metabase documents restoring the pre-upgrade application database backup as the recommended rollback, while running the migrate down command with the newer JAR is the alternative. Content created after the upgrade can be lost when you restore a backup, so decide in advance how you will capture and reconcile new work. Common failure causes include unsupported Java versions, PostgreSQL SSL validation problems after the 0.38 change, and migrations interrupted in a cluster. Ask your team or partner to rehearse the rollback in a test environment before the production window.
When rebuilding Metabase is safer than upgrading
Rebuilding is often safer than upgrading when the existing instance cannot be brought forward in a controlled way. The clearest cases are an application database on a version or configuration that current Metabase no longer runs against, a Java runtime that cannot be replaced on the host, or an application database whose state nobody can explain. A PostgreSQL setup with older SSL validation is a good example to check early, because Metabase 0.38 removed the PostgreSQL NonValidatingFactory, which can cause startup or connection failures. Other triggers include heavy customization that nobody documented, such as hand-edited settings, custom wrappers or undocumented database changes, and content that can be exported and reimported without losing what matters. Confirm each trigger with a read-only inspection of the instance and its database before deciding anything.
A rebuild trades migration risk for configuration work. A fresh instance means recreating groups, data and collection permissions, SSO settings, email, sync and scan schedules, and then moving saved questions, dashboards and collections across. Those steps are manageable, but they are real effort, and any permission or SSO setting you do not capture will be missed until a user reports it. Stepping through releases keeps users, permissions and content in place but requires a backup, an upgrade path that passes through each required release, and a rollback plan. Note that the upgrade path from versions older than 40 is release by release, so the number of stops, and the Java and database work between them, drives the effort more than the final version does.
Compare both options against a written scope before choosing. The scope should list the current version, the application database type and version, the Java runtime, the identity and data source connections, the content inventory with owners, and the acceptance tests that prove the target matches the source. Ask the partner or internal team to estimate each path separately, including what is one-time work (migration, rebuild, testing) and what recurs (patching, backups, monitoring). Also agree on who signs off that the old instance can be retired, and how long it stays available for comparison after cutover.
The release-by-release path from an old Metabase to current
The path starts with a verified application database backup, then a single node if the instance runs as a cluster, and a check that the host runs Java 25 and the application database meets Metabase's requirements. If those prerequisites cannot be met, the instance is rebuilt instead of upgraded in place. Otherwise the upgrade moves to the latest 40 release, and each intermediate release is verified before the next one starts. A failed gate restores the pre-upgrade backup. The final hand-off jumps to the chosen current line, then checks users, data and embedded content.
Decision path from an old Metabase to current, with rebuild and rollback branches.
How DeployOpen scopes an upgrade from an old Metabase
DeployOpen starts every upgrade from an old Metabase with an inventory, not a version number. The inventory covers the running Metabase build and how it is started (JAR or container), the application database and its engine and version, the Java runtime on each server, any plugins or custom drivers, the SSO and group mapping in use, and every embedding method in production, including public links and any static embeds, which tend to break in ways that only show up after the jump. For the database, we confirm whether the application database is still the embedded H2 file, PostgreSQL or MySQL, because an H2 instance has to be moved with the load-from-h2 command using the same Metabase version that last wrote the file. We also check the PostgreSQL SSL settings, since the removal of the NonValidatingFactory in 0.38 can stop an older setup from connecting. Nothing is changed until this inventory is written down.
From that inventory, the written fixed-scope plan sets out the release path. For a version older than 40, the path runs release by release to the latest 40.x, then jumps to the current target, as the Metabase upgrading documentation describes. The plan names the Java runtime required for each step, the backup and restore test for the application database, the rollback point before each migration, and the test cases used to confirm dashboards, saved questions, permissions and SSO sign-in after each stop. It also states what the client provides, such as a staging copy of the database, access to the hosts and a named approver. DeployOpen performs the work inside your own cloud accounts, data centers or air-gapped network, so the data stays where your controls already apply. Ongoing support, upgrades and continuous testing after the migration are available as a retainer, which we quote separately from the upgrade scope.
How DeployOpen delivers and supports Metabase upgrades
DeployOpen plans and runs self-hosted Metabase upgrades inside your own infrastructure, starting with an inventory of your current version, application database and Java runtime. Each upgrade step is agreed in writing, tested against a copy of your data and documented so your team can repeat it later.
How we scope
- Record your current Metabase version, deployment type, node count and application database engine before any work starts.
- Agree the release-by-release path to the last version 40, then the jump to the current version, in the written scope.
- Confirm Java runtime, PostgreSQL or MySQL application database versions and whether any H2 data must be migrated first.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- Take and verify an application database backup before each step, and test restore in a non-production environment.
- Run each intermediate release in a staging copy, checking migrations, logs and login, SSO and embedding behavior.
- Reduce clusters to one node for major upgrades, then scale back out once the migration completes and is verified.
- Prepare a documented rollback path using the pre-upgrade backup, with the decision point for each step recorded.
How we hand over
- Deliver a step-by-step upgrade record listing each version, the commands used, migration results and any issues found.
- Document the Java runtime, JAR or container configuration and application database settings as they stand after the upgrade.
- Walk your platform and security teams through the runbook, including backup schedule, restore test and rollback steps.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial upgrade is complete.
- Retainers can cover tracking of Metabase version support dates so future upgrades start before an end-of-life date.
- Confirm the support boundary, response expectations and retainer terms in the written agreement before work starts.

