How to plan a routine Langfuse minor version upgrade
A platform team running self-hosted Langfuse needs to stay current within its major version without re-architecting the deployment. Langfuse states that updates within a major version are non-disruptive and that database migrations apply automatically at startup, so a minor upgrade is mainly a planning exercise about timing, rollback and verification rather than a redesign. Major upgrades (v1 to v2, v2 to v3, v3 to v4) are different: each follows its own dedicated migration guide, and those jumps change infrastructure and data models. Keep the two categories separate on the change calendar so a routine update is never scheduled with major-upgrade assumptions, or the reverse.
Start by confirming the target release on the Langfuse releases page before scheduling anything. At the time of writing, the latest listed release is v4.63.0, published October 16, 2026, but the number will change, so record the exact tag you intend to deploy and read its release notes for anything that touches your installed SDK versions or your data stores. Confirm that your current ClickHouse, PostgreSQL and Redis or Valkey versions still meet the requirements for that release line, since the v4 guide lists minimums such as ClickHouse 25.12 or later and PostgreSQL 15 or later. Also note whether your deployment is on Docker Compose or Helm, because the upgrade window and the rollback options differ between them.
Before the window opens, take a fresh backup of PostgreSQL and ClickHouse and confirm that blob storage is current, because automatic migrations run at startup and a failed ClickHouse migration leaves the database in a state that needs operator intervention. Record the current image tags so you can roll back the application containers, and confirm that you can restore the data stores to their pre-upgrade state if a migration fails. Check ClickHouse disk headroom and the health of the worker queue, and plan for a short verification step after the new Web and Worker containers start: confirm that traces are ingested, prompts load and evaluations run. Ask your vendor or a partner to confirm the exact rollback procedure for your release, because whether a migration can be reversed depends on what it changed.
What changes in a minor release and what you must do
This table compares the change types that arrive with a minor Langfuse release, the impact each one has on a self-hosted instance and the action to take. Read it as a pre-upgrade checklist: confirm each row against the release notes for your target version, because breaking changes and deprecations are listed there, not assumed from this page.
| Change type | Impact | Action |
|---|---|---|
| Startup database migrations | Within a major version, PostgreSQL migrations run automatically when the web container starts | Confirm the target version in the release notes, back up PostgreSQL first and watch startup logs |
| ClickHouse schema migrations | Also applied at startup; a failed migration marks the ClickHouse database dirty and blocks further migrations | Back up ClickHouse, keep the failing migration output, and resolve the state before retrying |
| Container image tags | Web and Worker images must move to the same release so the two containers share one schema | Pin an explicit version tag rather than a floating tag, and update both containers together |
| Configuration keys | New, renamed or removed environment variables can change behavior or block startup | Diff your environment file or Helm values against the target release notes before rollout |
| SDK compatibility | Some SDK releases require a minimum server version, so an SDK upgrade can outpace a server upgrade | Check the minimum server version for each SDK in use and sequence the upgrades |
| Release notes and deprecations | The GitHub releases page is the authoritative source for each version's changes, including breaking changes | Read every release between your current and target version, not only the latest one |
| Deployment method | Docker Compose and Helm installs follow the same migration behavior but differ in how images and values are changed | Schedule a window for the chosen method and document the exact commands used |
Which upgrade path is supported within v4
A minor upgrade stays inside the major version you already run. Langfuse says updates within a major version are non-disruptive and apply database migrations automatically at startup, so moving between releases on v4 does not require the v3 to v4 migration guide. Before you start, confirm which major version your deployment runs, because that decides the path. If your stack is on v1, v2 or v3, you must first follow the dedicated major upgrade guide for your current version, and only then take routine minor releases. Check the running image tag for both langfuse-web and langfuse-worker, since both containers need to sit on the same release before you treat the instance as current.
Two prerequisites apply to Helm installs and to SDK rollouts, and they are easy to miss on a routine change. If your Helm chart uses bundled data stores, the chart must move from v1 to v2 before you upgrade Langfuse to v4, so confirm your chart version against the Helm chart upgrade guide before you plan a minor release on that line. On the SDK side, Python SDK v5 and JS/TS SDK v6 require Langfuse v4.59.0 or later. If any service in your estate still uses those SDK majors, do not move the server below v4.59.0. Confirm the exact minimum with the release notes for the version you plan to run, using the Langfuse releases page as the reference.
Backups and checks to complete before the upgrade
Minor upgrades apply database migrations automatically at startup, so the work that protects you happens before the first container restarts. The items below cover data you can restore, a record you can roll back to, and a rehearsal you have already run. Confirm each one in your own environment before the upgrade window opens.
Back up PostgreSQL, ClickHouse and blob storage
Take a backup of each data store before the upgrade, not just one of them. PostgreSQL holds projects, users and prompt configuration, ClickHouse holds traces and observations, and S3-compatible blob storage holds uploaded media and exports. A migration that fails partway can leave one store changed and another untouched, so the backups need to be taken from the same window. Confirm that you can restore each one, and that the restore has been tested in your environment rather than assumed from the backup job's success status.
Upgrade guideRecord current image tags and Helm values
Write down the exact Langfuse Web and Langfuse Worker image tags currently running, along with the Redis or Valkey and ClickHouse image versions. For Kubernetes installs, export the active Helm values and the chart version. For Docker Compose, keep a copy of the compose file and its environment file. Tags such as latest make rollback unreliable, so pin the tag you are moving to and keep the previous one written down with its digest where your registry provides it.
Build a staging environment from the same versions
Stand up a copy of your deployment with the same Langfuse version, data store versions and configuration, then restore a recent production backup into it. Run the target minor version there first and watch the startup logs for migration output. Staging shows whether the migration runs cleanly on your data volume and how long startup takes, which production windows depend on. Staging only helps if its data and configuration match production closely enough to reproduce the same migration path.
Check data store versions against v4 requirements
If your deployment is on the v3 line and you expect to move to v4 later, check your current versions now. The v4 guide requires ClickHouse 25.12 or later (26.4 recommended), PostgreSQL 15 or later and Redis 7.0 or later. A routine minor upgrade does not require these versions, but a minor release that depends on them would fail mid-migration if the stores are behind. Read the release notes for the version you are targeting, and treat a version gap as a separate upgrade to plan first.
Read the v4 guideConfirm the rollback path before you start
Decide in advance what you will do if the upgraded containers fail health checks or the logs show a migration error. For application containers, rollback means redeploying the recorded previous tags. For the database, rollback usually means restoring the backup taken before the upgrade, because a schema change may not be reversible by redeploying old images. Confirm who can authorize a restore, how long a restore takes in your environment, and what happens to traces ingested during the window.
Plan the ClickHouse failure response
A failed ClickHouse migration marks the database dirty and blocks further migrations until an operator determines the actual state and forces the correct version. Before the window, identify who on your team can inspect the migration table, who can run the forced-version step, and who makes the call to restore from backup instead. Keep the Langfuse FAQ on failed migrations with the runbook, and confirm that these people have access to the cluster and backups during the window.
Failed migrations FAQUpgrade sequence for Docker Compose and Helm installs
This sequence moves a self-hosted Langfuse minor release into production with a verified rollback point, a controlled window, and written evidence that web, worker, storage and ingestion behave as before.
Freeze ingestion or schedule the window
Agree an upgrade window with the teams that send traces, prompts and evaluations to the instance, and pause or queue non-essential ingestion for its duration. The platform owner records the target release, the current running version and the named people who can approve a rollback. Done when the change ticket lists the window, the current and target versions, and the approvers, and the senders have confirmed they can tolerate the pause.
Take and verify backups
Back up PostgreSQL, ClickHouse and the S3-compatible blob storage bucket, and capture the Docker Compose or Helm values and image tags in version control. A backup only counts when someone restores it into a scratch environment and checks that the project list, a recent trace and a prompt version are readable. Done when the restore test passes and the backup identifiers are written into the change record.
Rehearse the upgrade in staging
Deploy the same target release to a staging copy built from a recent production backup, using the same Compose file or Helm values with only the environment-specific settings changed. Watch the startup logs for migration output from the web container and confirm the instance reaches a healthy state. Done when staging runs the target version, migrations complete without errors, and the team has noted any log warnings to resolve before production.
Set the rollback point before migrations run
Immediately before the production change, confirm the backups from the earlier step are complete and still restorable, and record the exact image tags or chart version to return to. Because Langfuse applies database migrations automatically at startup, the rollback point is the last moment when reverting the image alone is a clean option. Done when the rollback procedure is written, the previous image tags are retained, and the approver has signed off on proceeding.
Upgrade and let startup migrations run
Change the image tag in the Compose file or the chart version in Helm, then start the new containers. Langfuse Web and Langfuse Worker apply PostgreSQL and ClickHouse migrations at startup, so do not restart containers in a loop while migrations are running. Done when both application containers report running and the migration output in the logs shows completion without errors.
Verify web and worker health
Check the web health endpoint and confirm the worker has connected to Redis or Valkey, PostgreSQL and ClickHouse, using container status and logs rather than assumptions. Review resource use on the worker, since a fresh process can briefly show different load while it drains queued events. Done when both services report healthy, no restart loops appear, and the connection checks pass for every data store.
Check ingestion and the user interface
Send a test trace through the SDK or the OpenTelemetry endpoint, confirm it appears in the UI within the expected processing time, and open a prompt, an evaluation score and a dataset item. Sign in through the configured SSO path to confirm authentication still works. Done when the test trace is visible, the UI pages load, and the senders confirm their ingestion has resumed without errors.
Monitor and record the outcome
Watch ingestion errors, worker backlog, ClickHouse disk and memory, and web error rates through the next business cycle, and close the change record with the final version and any issues found. If a ClickHouse migration fails, the migration tool marks the database dirty and refuses further migrations until an operator determines the actual schema state and forces the correct version, so a simple redeploy will not fix it. Treat that case as an incident that needs the operator and the Langfuse FAQ on failed ClickHouse migrations, not a repeat of the deployment. Done when monitoring shows stable operation and the change record is complete.
What to do when a ClickHouse migration fails
If a ClickHouse migration fails during a minor version upgrade, the migration tool marks the database dirty and refuses further migrations until someone determines the real state of the schema and forces the correct version. Treat a failed startup migration as an incident, not a retry. Do not restart the Langfuse Web and Worker containers in a loop, and do not drop or recreate tables to get past the error, because each restart either fails again or applies more changes on top of an unknown schema. Freeze further upgrade attempts and record the exact version, the error text from the container logs and the time of the failure before anyone touches the database.
Start diagnosis by comparing three things: the migration version the tool reports as dirty, the tables and columns that actually exist in ClickHouse, and the Langfuse version the containers were running. Confirm which migration file was in progress and whether its statements partly applied. Check disk space and memory on the ClickHouse nodes, since a migration that runs out of resources is one of the more common reasons a step stops halfway. Also confirm that your ClickHouse version meets the minimum in the Langfuse release you are moving to. If the schema state cannot be established with confidence within the window you have, that uncertainty is itself the answer.
Restoring from a backup taken before the upgrade is often the safer path than manually forcing a version, because forcing a version tells the tool a migration is complete whether or not its statements finished. This is why a tested ClickHouse backup taken immediately before every upgrade matters more than any single command. Before acting on either path, read the Langfuse FAQ on failed ClickHouse migrations and follow the procedure it describes for your deployment. Confirm the exact commands and the version-forcing steps against that page, and have your database owner review the plan before anything is changed.
How the upgrade phases and rollback points fit together
The path starts with a verified backup of PostgreSQL, ClickHouse and blob storage, then moves the same change through staging before production. At production startup the application applies database migrations automatically, so that step is the main hand-off point. Check the health of the web and worker containers after startup. If a ClickHouse migration fails, the database is marked dirty and the upgrade stops, so the path leads to a investigation step, not a simple retry. Restore from backup if the real state cannot be determined.
Upgrade phases, the startup migration decision and the rollback path.
What makes a minor upgrade take longer
This table compares the factors that lengthen a routine Langfuse minor upgrade, from deployment type to integrations and rehearsal. Read each row as a question to answer about your own installation, then ask a provider to estimate effort against those answers rather than against a generic figure. The main takeaway is that the number of moving parts, not the version jump itself, usually sets the schedule.
| Driver | Why it changes effort | What to confirm or ask a provider |
|---|---|---|
| Deployment type | Docker Compose on a single VM has fewer components to stop, back up and check than a Helm install with bundled or external stores. | Which install method you run, and whether the provider will estimate Compose and Helm paths separately. |
| Bundled or external data stores | Bundled PostgreSQL, ClickHouse or Redis or Valkey add lifecycle work that an external managed service handles for you. | Who owns each store, its version, and which upgrade steps your team performs on each one. |
| Data volume | Larger ClickHouse and PostgreSQL datasets lengthen backups, restore tests and the time migrations hold the database. | Current on-disk size of each store, backup method, and how long a full restore took in your last test. |
| Number of environments | Each environment needs its own upgrade, verification and rollback, so effort multiplies with development, staging and production. | How many environments are in scope and whether the provider will upgrade them in sequence or in parallel. |
| SSO and access configuration | Identity provider callback URLs, enforced domains and session settings must still work after the new version starts. | Which SSO provider you use and which sign-in paths need testing after the upgrade. |
| OpenTelemetry and SDK senders | Applications sending traces over OTLP or older SDKs must be checked against the server version they are paired with. | Count of services sending traces, their SDK versions, and who owns each sender. |
| Custom integrations and automation | Scripts, dashboards, webhooks or exports that read Langfuse data can break if an API or data shape changes. | A list of integrations and scripts that call the Langfuse API, with owners for each. |
| Staging rehearsal | A rehearsal on a copy of production data exposes migration problems before they reach users, and it adds time to the plan. | Whether staging holds a recent production-sized copy, and how the provider will record rehearsal results. |
| Failed migration recovery | A failed ClickHouse migration leaves the database marked dirty, so recovery needs a working restore point and expert time. | Backup point before the upgrade, who can make the recovery decision, and the recovery steps in writing. |
Questions teams ask before a minor Langfuse upgrade
Can our own team do a minor Langfuse upgrade in-house?
Yes, in most cases a team that already runs the deployment can do a minor upgrade itself. Langfuse states that updates within a major version are non-disruptive and apply database migrations automatically at startup, so the core task is changing the image tag or chart version and watching the containers come up. What decides whether your team can handle it alone is whether it already has a tested backup of PostgreSQL and ClickHouse, a staging copy of the deployment, and someone who can read migration logs and roll back. Confirm the exact steps for your install method in the Langfuse upgrade guide before you schedule the change.
What drives the cost of outside help for a minor upgrade?
Outside help is paid for the planning, the staging rehearsal, the change window and the verification, and it is usually quoted from a written scope. The main cost drivers are the number of environments, whether you run Docker Compose on one VM or Kubernetes with Helm, how much custom configuration sits in your values or compose files, how many services send traces into Langfuse, and whether you need a rollback plan documented for auditors. One-time work covers the first upgrade and runbook. Recurring work appears only if you move to a retainer for ongoing upgrades and monitoring. Ask any provider for a quote that lists each of these items separately.
What does the upgrade need from our team?
The work needs named people who own the target environment, approve the change window and confirm that traces still arrive after the upgrade. Expect to provide access to the deployment, current configuration files, the database backup routine, and the SDK versions your applications use. A minor upgrade should also be rehearsed in a copy that resembles production, so someone must supply a staging environment or agree to build one. Finally, a reviewer should check that log retention, monitoring and alerts still work after the restart. Write these responsibilities into the scope before work begins so that no step waits on an unnamed owner.
How long should the upgrade window be?
The window should cover the full sequence of backup, upgrade, startup migrations, health checks and a rollback decision, plus time for users to confirm that traces and prompts still load. The length depends on how large your ClickHouse and PostgreSQL datasets are, how many replicas run behind the web and worker containers, how long your backups take, and whether your deployment is a single VM or a multi-node Kubernetes cluster. Because startup migrations run automatically, the database step is the least predictable part. Ask your team to time a rehearsal in staging, then size the production window from that measurement rather than from a generic estimate.
Does an Enterprise license change the minor upgrade steps?
The upgrade sequence is the same, but the license affects what you must confirm after the upgrade. Langfuse documents that features such as project-level RBAC roles, protected prompt labels, data retention policies, audit logs, server-side data masking, and SCIM provisioning need an Enterprise license key. Confirm that the key is still valid for the target version, that the settings that depend on those features persist after restart, and that any enterprise-only code paths you rely on still behave as expected. The Langfuse license key documentation describes how keys are configured, and the enterprise source directories fall under a separate license, which you should review with your legal team.
What happens if a ClickHouse migration fails during an upgrade?
A failed ClickHouse migration leaves the migration tool in a dirty state, and it refuses further migrations until an operator determines the real state of the database and forces the correct version. Do not restart the containers in a loop or drop tables while the database is dirty. Before the upgrade, record the current migration version, take a verified ClickHouse backup, and keep the previous image tag ready. Then read the worker and web logs, compare the schema against the expected version, and follow the steps in the Langfuse FAQ on failed migrations. If your team lacks ClickHouse operations experience, this is the point where an outside engineer is most useful.
How do we know the upgrade succeeded?
A successful upgrade shows healthy web and worker containers, completed database migrations in the logs, a working UI and API login, and new traces appearing from a test application. Check that the SDKs your services use still send events without errors, that prompt and evaluation pages load, and that scheduled jobs and integrations such as SSO resume. Confirm these checks in a written acceptance list agreed before the window opens. Retain the logs and the version record as evidence for change management, since an auditor may ask how the change was controlled.
How DeployOpen scopes and delivers a Langfuse upgrade
DeployOpen plans, implements and documents minor version upgrades of self-hosted Langfuse inside your own infrastructure, from the current release to the target release. The work starts with a written scope that names your installation method, data stores and upgrade window, so your team knows what will change and what will be checked before anything runs.
How we scope
- We inventory your current Langfuse version, install method (Docker Compose or Helm) and the PostgreSQL, ClickHouse, Redis or Valkey and blob storage versions in use.
- We agree in writing the target minor version, the upgrade window, rollback responsibilities and who approves production changes before work begins.
- Engagements are fixed-scope, and ongoing upgrade support for later releases is available as a retainer.
How we build
- We rehearse the upgrade on a staging copy of your deployment, including the startup migrations that Langfuse applies automatically within a major version.
- We take and verify backups of PostgreSQL, ClickHouse and blob storage before the production change, and record how to restore each one.
- We check SDK, API and integration behavior against the target release and document any configuration changes the upgrade requires.
How we hand over
- You receive a runbook covering the upgrade steps, health checks, migration status checks and the decision points for stopping or rolling back.
- We document the procedure for a failed ClickHouse migration, including how to confirm the real database state before any forced version change.
- A short review with your operators walks through the change record, the verification results and the recurring steps for the next minor release.
How we support
- Retainers can cover reviewing new Langfuse releases, planning upgrade windows and running minor upgrades in your environment on an agreed cadence.
- We can test each upgrade against your security baseline and access controls so your compliance reviewers receive current evidence.
- Ask any provider to confirm the support hours, response targets and escalation path in writing, since these vary by agreement.

