Upgrade on Bare Metal
This guide will help you upgrade an OpenMetadata deployment using release binaries.Requirements
This guide assumes that you have an OpenMetadata deployment that you installed and configured following the Bare Metal deployment guide.Prerequisites
Everytime that you plan on upgrading OpenMetadata to a newer version, make sure to go over all these steps:Backup your Metadata
Before upgrading your OpenMetadata version we strongly recommend backing up the metadata. The source of truth is stored in the underlying database (MySQL and Postgres supported). During each version upgrade there is a database migration process that needs to run. It will directly attack your database and update the shape of the data to the newest OpenMetadata release. It is important that we backup the data because if we face any unexpected issues during the upgrade process, you will be able to get back to the previous version without any loss. Since version 1.4.0, OpenMetadata encourages using the builtin-tools for creating logical backups of the metadata: For PROD deployment we recommend users to rely on cloud services for their databases, be it AWS RDS, Azure SQL or GCP Cloud SQL. If you’re a user of these services, you can leverage their backup capabilities directly: You can refer to the following guide to get more details about the backup and restore:Understanding the “Running” State in OpenMetadata
In OpenMetadata, the “Running” state indicates that the OpenMetadata server has received a response from Airflow confirming that a workflow is in progress. However, if Airflow unexpectedly stops or crashes before it can send a failure status update through the Failure Callback, OpenMetadata remains unaware of the workflow’s actual state. As a result, the workflow may appear to be stuck in “Running” even though it is no longer executing. This situation can also occur during an OpenMetadata upgrade. If an ingestion pipeline was running at the time of the upgrade and the process caused Airflow to shut down, OpenMetadata would not receive any further updates from Airflow. Consequently, the pipeline status remains “Running” indefinitely.
Expected Steps to Resolve
To resolve this issue:- Ensure that Airflow is restarted properly after an unexpected shutdown.
- Manually update the pipeline status if necessary.
- Check Airflow logs to verify if the DAG execution was interrupted.
Update sort_buffer_size (MySQL) or work_mem (Postgres)
Before running the migrations, it is important to update these parameters to ensure there are no runtime errors.
A safe value would be setting them to 20MB.
If using MySQL
You can update it via SQL (note that it will reset after the server restarts):
my.ini or my.cnf files with sort_buffer_size = 20971520.
If using RDS, you will need to update your instance’s Parameter Group
to include the above change.
If using Postgres
You can update it via SQL (not that it will reset after the server restarts):
postgresql.conf file
with work_mem = 20MB.
If using RDS, you will need to update your instance’s Parameter Group
to include the above change.
Note that this value would depend on the size of your query_entity table. If you still see Out of Sort Memory Errors
during the migration after bumping this value, you can increase them further.
After the migration is finished, you can revert this changes.
Breaking Changes
- Ingestion Framework: All workflows have integrated the
workflow.print_status()inside theworkflow.execute()call. This change was needed to better handle logger lifecycles. If you’re using the Ingestion Framework directly to manage workflows via the usual process:
print_status() call. Note that the only side effect would be temporarily getting duplicated summary logs.
- Changed field from status to entityStatus for glossaryTerm and dataContract, as we introduce it for different data assets.
- For Data Contracts, the value also changed from Active to Approved.
MySQL Configuration Required for Airflow 3.x Migration
If you are using MySQL as your Airflow metadata database and upgrading to Airflow 3.x (the new default in OpenMetadata 1.11), you must configure MySQL to allow temporary stored function creation during the migration process.Root Cause
During the Airflow 3.x database migration on MySQL, Airflow needs to create a temporary stored function (uuid_generate_v7) to backfill UUIDs for the task_instance table. When MySQL runs with binary logging enabled (which is the default in most production setups), it blocks function creation unless log_bin_trust_function_creators is enabled or the user has SUPER privileges. Without this configuration, the migration fails with an error like:
Resolution
Option 1: Delete and Recreate the Airflow Database (Strongly Recommended) The simplest and most reliable solution is to delete the existing Airflow database and let OpenMetadata recreate it fresh during startup. The Airflow database only stores workflow execution history and metadata—it does not contain any of your OpenMetadata configurations, connections, or ingestion pipeline definitions.Option 2: Manual Migration Fix (If You Cannot Delete the Database) If you have specific requirements to preserve the Airflow execution history and cannot delete the database, follow the manual steps below. Step 1: Enable MySQL Configuration First, enable
log_bin_trust_function_creators in your MySQL instance to allow Airflow to create the necessary stored function:
For Docker deployments, add this to your docker-compose.yml file under the MySQL service:
task_instance table. This approach removes all task execution history but preserves your DAGs and connections.
task_instance table was partially modified), you need to reset the migration state before restarting. Save the following SQL script as fix_airflow_migration.sql:
Upgrade process
Step 1: Download the binaries for the release you want to install
OpenMetadata release binaries are maintained as GitHub releases. To download a specific release binary:- Visit github.com/open-metadata/OpenMetadata/releases. The latest release will be at the top of this page.
- Locate the Assets’ section for the release you want to upgrade to.
- Download the release binaries. The release binaries will be in a compressed tar file named using the following
convention,
openmetadata-x.y.z.tar.gzWherex,y,zare the major, minor, and patch release numbers, respectively.
Step 2: Extract the release binaries from the download file
Using the command-line tool or application of your choice, extract the release binaries. For example, to extract usingtar, run the following command.
.tar and .gz extensions.
Step 3: Navigate into the directory created by extracting the release binaries
Change into the new directory by issuing a command similar to the following.Step 4: Stop the OpenMetadata server
OpenMetadata ships with a few control scripts. One isopenmetadata.sh. This script enables you to start, stop, and
perform other deployment operations on the OpenMetadata server.
Most OpenMetadata releases will require you to migrate your data to updated schemas.
Before you migrate your data to the new release you are upgrading to, stop the OpenMetadata server from the
directory of your current installation by running the following command:
Step 5: Migrate the database schemas and ElasticSearch indexes
Thebootstrap/openmetadata-ops.sh script enables you to perform a number of operations on the OpenMetadata database (in
MySQL) and index (in Elasticsearch).
Step 6: Restart the OpenMetadata server
Once you’ve dropped and recreated your data in the new version, restart the OpenMetadata server using the new release binaries. You may restart the server by running the following command.Post-Upgrade Steps
Reindex
With UI
Go toSettings -> Applications -> Search Indexing

Run Now, ensure that the Recreate Indexes option is enabled to allow rebuilding the indexes as needed.
In the configuration section, you can select the entities you want to reindex.

All the entities.
(Optional) Update your OpenMetadata Ingestion Client
If you are running the ingestion workflows externally or using a custom Airflow installation, you need to make sure that the Python Client you use is aligned with the OpenMetadata server version. For example, if you are upgrading the server to the versionx.y.z, you will need to update your client with
With Kubernetes
Follow these steps to reindex using the CLI:- List the CronJobs Use the following command to check the available CronJobs:
- Create a Job from a CronJob Create a one-time job from an existing CronJob using the following command:
- Check the Job Status Verify the status of the created job with:
- view logs To view the logs use the below command.
plugin parameter is a list of the sources that we want to ingest. An example would look like this openmetadata-ingestion[mysql,snowflake,s3]==1.2.0.
You will find specific instructions for each connector in the Connectors section.
Moreover, if working with your own Airflow deployment - not the openmetadata-ingestion image - you will need to upgrade
as well the openmetadata-managed-apis version:
Re Deploy Ingestion Pipelines
With UI
Go toSettings -> {Services} -> {Databases} -> Pipelines

Re Deploy.
With Kubernetes
Follow these steps to deploy pipelines using the CLI:- List the CronJobs Use the following command to check the available CronJobs:
- Create a Job from a CronJob Create a one-time job from an existing CronJob using the following command:
- Check the Job Status Verify the status of the created job with:
- view logs To view the logs use the below command.
Openmetadata-ops Script
Overview
Theopenmetadata-ops script is designed to manage and migrate databases and search indexes, reindex existing data into Elastic Search or OpenSearch, and redeploy service pipelines.
Usage
Commands
- analyze-tables
- changelog
- check-connection
- deploy-pipelines
- drop-create
- info
- migrate
- migrate-secrets
- reindex
- repair
- validate