Troubleshooting failed OpenMetadata upgrades

A failed OpenMetadata upgrade usually stops at a migration, search or ingestion step, and most recoveries do not need a restore. This page explains how to find the failing stage, when a restore into a clean database is justified, and what to check before retrying.

On this page

What to do first when an OpenMetadata upgrade fails

When an OpenMetadata upgrade stops partway, the first job is to stop changing things. Do not rerun the upgrade command, restart services in a loop or start deleting containers or pods until you know which stage failed and what state the database and search index are in. Identify whether the failure happened during database schema migrations, during search index work, or during ingestion or pipeline redeployment, because each stage leaves different traces and calls for a different response. Record the exact error text, the version you started from and the target version before you touch anything else.

OpenMetadata publishes upgrade troubleshooting guides for Docker and Kubernetes, and those guides are the first place to match your error to a documented fix. Use the guide for your deployment method, and check that it matches the version pair you are moving between. The supported path runs from the version your environment is on, step by step, to the target release. If your starting version is not the one the upgrade documentation expects for that target, stop there, because an out-of-sequence jump is a more likely cause of a broken migration than any single error message. Confirm the path with the release notes for each intermediate version rather than assuming a direct jump is supported.

Before you retry, check three things: that the database and search services meet the prerequisites for the target release, that you have a verified backup taken before the failed attempt, and that the ingestion image or environment matches the server version. Confirm the current prerequisite versions in the OpenMetadata 2.0 release notes for your target, not from memory. Write down who owns the decision to retry or restore, because a restore is a separate and more consequential step that the next sections cover.

Which failure stage points to which recovery

This table maps the three failure families (migrations, search and ingestion) to the symptom you see, the first check to run and the likely recovery path. Find the stage where the upgrade stopped, then follow that row before you consider a restore. Match each symptom against the official troubleshooting guide for your deployment method before changing anything.

Failure stageSymptom you seeFirst checkLikely recovery path
Database migrationsServer fails to start or stops partway through schema changes, with the database at an intermediate stateConfirm which version the database reports and whether the migration log ends on a specific stepFix the cause (prerequisites, credentials, database version), then rerun the documented migration step on the same version
Search indexServer starts but search returns incomplete or no results, or the search service rejects index operationsCheck the search service version against the 2.0 prerequisites and confirm the cluster is healthyCorrect the search version or cluster state, then reindex from the server rather than restoring the database
IngestionPipelines fail after the upgrade, often with import or dependency errors in custom connectorsConfirm the ingestion package and custom images match the server version and Python versionRebuild or repin the ingestion environment to the server version, then rerun a single pipeline before the full schedule
Data integrity (suspected)Metadata is missing or wrong after a stage that reported success, and the cause is unclearCompare the current database against the pre-upgrade backup and the version it was migrated toRestore the backup into a clean database migrated to the same version as the backup, then repeat the upgrade in order
Prerequisites not metUpgrade fails at the start because a runtime, database or search version is outside the supported rangeCheck the Java, database and search versions against the 2.0 bare metal prerequisitesUpgrade the dependency first, confirm the platform starts, then retry the OpenMetadata upgrade

When a restore is the right move and when it is not

Restoring a backup is not part of a normal OpenMetadata upgrade. Under the documented process, a restore is only needed when the database can no longer be trusted, and the restore must go into a clean database migrated to the same version as the backup. Restoring into a database at a different schema version, or over the half-migrated database that the failed upgrade left behind, is not a supported recovery path. Before choosing, confirm which OpenMetadata version the backup was taken from, since that version sets the target you must migrate a clean database to.

The decision turns on one question: do you know the schema state? If the migration log shows which step failed and the database is at a known version, you can usually fix the cause (a missing prerequisite, a connection problem, a permission error) and rerun the stage in place. Check the database version table and the migration output, then compare them with the upgrade guide for your deployment method, such as the Kubernetes upgrade troubleshooting guide. If you cannot establish which statements ran, or the data was changed by a partial run, treat the state as unknown and move to restore.

Restoring over a partially migrated database is risky because the restore does not reset the state you are unsure about. Partial migrations can leave tables altered for the new version while others still match the old one, and a restore on top of that mix can produce a schema that matches neither version. For that reason, create the clean target database first, migrate it to the backup's version, then restore into it. Keep the failed database untouched until the restored instance has passed the checks in the sections below, so you can still investigate it if needed.

Checks to run before you retry the upgrade

A failed upgrade often leaves the database, search index and ingestion images in different states. Work through these checks together before you touch the migration again, so a retry does not stack a new failure on an unresolved one. Confirm each item against the official docs for your deployment method.

Confirm the backup exists and restores

Before any retry, verify that the database backup from before the upgrade is present, complete and readable. Check the file size and timestamp, and confirm the backup was taken from the version you are upgrading from. Restoring is never needed during a normal upgrade, but a readable backup is your fallback if the retry also damages the database. Confirm the restore procedure for your method in the upgrade and backup docs before you rely on it.

Upgrade internals

Match database and search versions

Check that your database and search service meet the prerequisites for the target release. For bare metal, the documented baseline is Java 21, MySQL 8.0.42 or later or PostgreSQL 15 or later, and Elasticsearch 9.x or OpenSearch 3.x. Versions that look close can still fail a migration, so record the exact versions reported by each service rather than assuming them.

Bare metal prerequisites

Confirm server sizing minimums

A migration that runs out of memory or disk can fail partway and look like a schema error. Compare the OpenMetadata server, database and search nodes against the documented minimums, including CPU, memory and storage. Check free disk space on the database and search volumes specifically, because index rebuilds and migration logs consume space during the retry.

Server RAM minimum
4 GB
Sizing requirements

Review the 2.0 breaking changes

If the target is 2.0, check your configuration for the breaking changes before retrying. Move embedding credentials into the llmConfiguration block, update Databricks connections to the new auth format, and rebuild custom ingestion images for Python 3.12. Migrate Great Expectations to 1.3 first. A retry with old configuration keys can fail again at the same step.

2.0 release notes

Confirm no other writer is active

Make sure nothing else writes to the OpenMetadata database during the retry. Stop scheduled ingestion pipelines, API scripts and any SDK jobs that push metadata, and confirm no earlier migration process is still running or holding a lock. Two processes migrating or writing at once can leave the schema half updated, so check the process list and database sessions on the host before you start.

How to recover a failed upgrade step by step

This sequence turns a failed OpenMetadata upgrade into a known state, with a documented decision between retrying in place and restoring a backup. Each step names its check and the rollback point that protects the data before the next change.

  1. Freeze all further changes

    The on-call engineer stops any retry, redeploy or manual SQL against the OpenMetadata database and search cluster, and pauses scheduled ingestion pipelines that write metadata. Announce the freeze to the data platform owners so no one restarts a half-finished migration. The step is done when the change record shows the upgrade paused, the time it stopped, and who holds the incident.

  2. Capture logs and the failing stage

    Collect the OpenMetadata server logs, the migration output and the container or pod events for the failed run, then note which stage failed: database migration, search index creation or reindexing, or an ingestion workflow. Keep the raw logs unedited in the incident folder. The step closes when the failing stage and the first error message are written in the incident record.

  3. Check the database and search state

    Confirm which schema version the database reports, whether the migration table shows a partial run, and whether the search cluster holds indexes that were created or left half-built during the attempt. Also confirm the versions of the database and search service against the prerequisites for the target release. The step is done when you can state the current database version, the search state and any version mismatch in writing.

  4. Decide between in-place retry and restore

    Retry in place only when the logs show a transient or configuration cause, such as a missing prerequisite or a connection timeout, and the database state is consistent with the stage that failed. Choose a restore when the migration stopped partway through schema changes, data was altered, or the cause is unclear. Record the decision and its reason. The step closes with a written decision that names the rollback point you will rely on.

  5. Restore into a clean database

    If you chose a restore, create a new empty database and restore the backup into it, never over the failed database. The clean database must be migrated to the same OpenMetadata version the backup was taken from, so confirm that version first. Keep the failed database untouched for investigation. The step is done when the restored instance starts on the backup version and the failed database is preserved under a new name.

  6. Run the post-check before retrying

    Before any new upgrade attempt, confirm the instance is healthy on its current version: the API responds, the login path works, sample entities and lineage load, and a test ingestion run completes. Check that search returns expected results for a known table. The step is done when the checklist is signed off and any gap is logged as a blocker for the retry.

  7. Retry the upgrade with a rollback point recorded

    Take a fresh backup of the verified database and record its identifier, the current version and the search state as the rollback point. Then retry the upgrade following the documented procedure for your deployment method, watching each stage against the failure log from earlier. The step closes when the upgrade completes and the rollback point, backup identifier and verification results are stored with the change record.

Recovering search reindexing and ingestion after a failed upgrade

When a failed upgrade leaves search results empty, stale or missing recent assets, the first suspect is usually the search index rather than the database. Search problems often need a reindex once the server is healthy, but reindexing into a search cluster that does not meet the version prerequisites for the target release will fail again. For OpenMetadata 2.0, the documented search options are Elasticsearch 9.x or OpenSearch 3.x, so confirm the running cluster version against the bare metal prerequisites and the release notes before triggering anything. Check the server logs for the search client error first, then confirm the cluster is green and reachable from the OpenMetadata server before you start a reindex job.

Ingestion failures after an upgrade usually come from one of three causes: an openmetadata-ingestion package that does not match the server version, custom ingestion images built for the wrong Python version, or a Great Expectations setup that was not migrated to 1.3 before the upgrade. OpenMetadata 2.0 moves ingestion images to Python 3.12 with Apache Airflow 3.3.0, so any custom image still built on an older interpreter needs to be rebuilt, not patched in place. Before you redeploy a pipeline, confirm the package version, the image tag and the Great Expectations version used by the failing pipeline, and run one test ingestion against a non-production source. Fixing the image or package is only half the job, because pipelines built against the old version may also need their configuration updated.

The procedures for each of these recovery paths are covered in the sibling topics: reindexing and the OpenSearch 3.0 to 3.3 search bug in the Elasticsearch or OpenSearch upgrade topic, and image rebuilds and pipeline redeployment in the ingestion-alignment topic. Ask your implementation partner or internal team to confirm which steps apply to your deployment model, whether Docker, Kubernetes or bare metal, and record the exact versions you tested. If a search or ingestion fix requires changing the database schema or restoring data, stop and return to the restore decision in this topic rather than improvising.

How recovery differs on Kubernetes, Docker and bare metal

On Kubernetes, the upgrade is split across two Helm releases, openmetadata-dependencies for the database and search services and openmetadata for the application. Start by checking which release failed and whether its pods reached a ready state. A failed release often leaves pods in a crash loop or a pending state, and the cause is usually visible in the pod events and logs before anything is restored. The official Kubernetes upgrade troubleshooting guide walks through these checks and should be your reference for the exact commands in your chart version.

  • Helm release status: Confirm which release is in a failed state and whether the revision matches the version you intended to deploy.
  • Pod logs and events: Read the logs of the migration or server pod first, since a failed migration job usually names the schema change that stopped.
  • Dependency health: Check that the database and search pods are healthy before rerunning the application release, because a search cluster that is not reachable will fail later steps.
  • Recovery difference: A failed Helm upgrade can often be fixed by correcting the values or the image and upgrading again, so a database restore is rarely the first step.
  • Persistent volumes: Confirm the database volume still holds your data before any cluster change, since a recreated volume with no data is a restore case.

Before retrying, confirm the chart and image versions match the target release and that you hold a verified backup of the database.

Decision path from failed upgrade to verified platform

The path starts when an upgrade fails, and the first step is to stop and capture state before changing anything. The reader then identifies which stage failed (migration, search or ingestion) and runs the checks for that stage. The key decision is whether to retry in place or restore the backup into a clean database migrated to the same version as the backup, which is the only restore path the documentation describes. After either route, the reader runs post-checks, retries with a rollback point in hand, and only then treats the platform as verified.

Decision path from a failed upgrade to a verified OpenMetadata platform.

What makes recovery take longer

This table lists the factors that most affect how long recovering a failed OpenMetadata upgrade takes, and the direction each one pushes the effort. Use it to judge which factors apply to your environment before you schedule a retry or a restore. Most of the drivers below are within your control before the upgrade starts, so the main takeaway is to check them first.

DriverWhy it changes effortWhat to check or keep down
Metadata database sizeA larger database takes longer to back up, restore into a clean instance and migrate again, so each attempt costs more time.Record database size and confirm backup and restore timing in a non-production copy before the upgrade window.
Search index sizeA large index must be rebuilt or reindexed after a failed search step, and reindexing often becomes the longest part of recovery.Check index document counts and plan reindexing capacity on the search cluster ahead of time.
Number of custom ingestion imagesEach custom image may need rebuilding for Python 3.12 in 2.0, and every failed build adds a cycle before pipelines run again.Inventory every custom image and its base version, and confirm which ones were rebuilt and tested.
Number of pipelinesMore scheduled pipelines mean more pipelines to pause, verify and redeploy after the server is healthy again.Keep a list of pipelines, owners and schedules so they can be paused and re-enabled in order.
Customizations and plugins using changed APIsCode that depends on changed APIs or the llmConfiguration block must be fixed before ingestion or the API can work again.Review custom scripts, SDK calls and integrations against the 2.0 breaking changes list before upgrading.
Backups taken and tested before upgradeAn untested or missing backup leaves no fast fallback, so recovery may depend on rebuilding state from sources.Confirm a recent backup exists, was taken from the version you are upgrading from, and was restored once in a clean database.
Number of affected environmentsEach environment such as development, staging and production may fail in different ways, so each needs its own checks and sign-off.Upgrade lower environments first and record the exact steps and errors so they can be reused in production.
Access to the data platform teamMigration errors often need someone who knows the database, search cluster and ingestion setup, and waiting for that person adds delay.Name an owner and a backup contact for the upgrade window and agree how they will be reached.

Questions teams ask before recovering a failed upgrade

Can we recover a failed OpenMetadata upgrade without restoring a backup?

Often yes. A restore is never needed during a normal upgrade, so the first step is to find out which stage failed and why. Failures on migrations, search reindexing or ingestion usually leave the database in a state you can diagnose and correct without rolling back. Start with the upgrade troubleshooting guide for your platform, read the logs of the failed step, and confirm the running server, database and search versions match the release you intended to install. Restoring is a later decision, made only when the data itself is in doubt.

When should we restore a backup into a clean database instead of repairing in place?

Restore into a clean database when the migration has partially changed data and you cannot confirm which changes are safe to keep. The restore must go into a clean database migrated to the same version as the backup, so the schema matches the data. Restoring into a database already at a different version, or on top of a half-migrated one, adds a second failure. Before you restore, record the current state, keep the failed database intact for analysis, and confirm the backup itself is readable.

What does outside help cost, and what drives that cost?

Outside help is priced from a written scope, and DeployOpen does not publish a price list. The main cost drivers are the number of failed stages, whether the environment is Docker, Kubernetes or bare metal, how much custom ingestion code and how many connectors must be checked, the size of the database and search index, and whether a clean restore is needed. Most engagements are fixed-scope, so ask for a quote that lists the diagnosis, the repair, the retest and any retainer for follow-up support. Ask who is paid for what, and whether the quote covers a second attempt if the first repair fails.

How long does recovery take, and what makes it longer?

Recovery time depends on where the failure happened and how much work the retry needs. A failed configuration step is usually quicker than a migration that has changed large tables, because reindexing and data validation take time that scales with data volume. Other drivers include the number of connectors that must be redeployed, whether custom ingestion images need rebuilding, and how long your change approval and maintenance windows take. Ask any partner for a timeline that separates diagnosis, repair, retest and the wait for your own approvals.

What does the recovery work need from our team?

Your team needs to provide access and decisions, not just time. Expect to supply the failed logs, the deployment manifests or Compose files, the database and search connection details, and a named owner who can approve a restore or a maintenance window. Your data owners should confirm which metadata edits made since the backup must be kept. Engineers who maintain ingestion pipelines should be available to confirm connector versions and custom images. Agree on who holds the production change and who signs off the retest before work starts.

Can our own team recover the upgrade using the official guides?

Yes, if your team has the skills and access to follow the guides carefully. OpenMetadata publishes upgrade troubleshooting guides for Docker and Kubernetes, and the upgrade internals page explains how migrations and backups work. Teams that already run the platform and keep current backups can usually handle a clear migration error themselves. Bring in outside help when the failure involves several stages at once, when a restore is in question, or when no one on the team has run an upgrade before. Check the guide for your exact release, since troubleshooting steps change between versions.

What should we ask a partner to include in a quote for recovery?

Ask for a written scope that names each deliverable and the exact systems covered. A useful quote lists the diagnosis of the failed stage, the repair steps, the decision criteria for a clean restore, the checks run before each retry, and a retest after recovery. It should state what is one-time and what recurs, such as a retainer for upgrades or testing. Ask how the partner handles data access, where the work runs inside your infrastructure, what you must provide, and what happens if the failure has a different cause than expected.

What DeployOpen needs from your team to start

Before we scope a recovery, we need to know how OpenMetadata was deployed, because the failure path differs for each method. Tell us whether the platform runs on Docker, on Kubernetes with the openmetadata-dependencies and openmetadata Helm releases, or on bare metal, and name the database (MySQL or PostgreSQL) and search service (Elasticsearch or OpenSearch) with their exact versions. Give us the version you were running before the attempt and the exact target version you were moving to. The upgrade troubleshooting guides for Kubernetes show which stage each failure belongs to, so the stage name matters as much as the version numbers.

Next, tell us the state of your backup and the logs from the failed stage. Confirm whether a database backup was taken before the upgrade started, when it was taken, and which OpenMetadata version was running when it was taken. A restore goes into a clean database migrated to the same version as the backup, so that version must be known before anyone touches the environment. Send the migration or reindexing logs from the failed step, the ingestion logs if pipelines failed, and any changes made to the environment during the attempt. Also list any custom ingestion images and the pipelines that depend on them, since the 2.0 move to Python 3.12 and the Great Expectations 1.3 requirement can cause failures that look like server errors.

Finally, describe how DeployOpen would reach the environment. Confirm which accounts, clusters, hosts or database and search endpoints we can access, whether access is through your bastion or a VPN, and who on your side approves production changes and database writes. We also need to know which logs and data may leave your network and how they will be handled. Timelines depend on the access model and the evidence available, so we will confirm an estimate only after reviewing these inputs and agreeing the scope in writing.

How DeployOpen scopes and delivers OpenMetadata upgrade recovery

DeployOpen starts by establishing which stage of the upgrade failed and what state the database, search index and ingestion pipelines are in. The recovery plan, checks and restore decision are then agreed in writing before any change is made to your OpenMetadata environment.

How we scope

  • Engagements are fixed-scope, with the failed stage, environment and target version agreed in writing before work starts.
  • The scope records which backups exist, where they are stored and whether they match the version they were taken from.
  • We confirm the deployment method (Docker, Kubernetes or bare metal) and which logs, access and change windows are available.

How we build

  • We check database, search and ingestion versions against the prerequisites for the target OpenMetadata release before retrying.
  • Where a restore is needed, we plan it into a clean database migrated to the same version as the backup, not into the failed one.
  • Each recovery step is written as a runbook with a rollback point, so the client team can follow and repeat it.

How we hand over

  • You receive a written record of the failure cause, the steps taken and the checks that passed before the upgrade was retried.
  • Documentation covers search reindexing, ingestion image or package versions, and any pipelines that must be redeployed.
  • Your team runs a walkthrough of the runbook so future upgrades can follow the same checks without outside help.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, agreed separately from the recovery scope.
  • Retainer scope covers retesting after a fix and review of the next maintenance release before it is applied.
  • Your team should confirm response expectations and access arrangements in the written agreement, since these vary by engagement.

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.