n8n major version upgrade: what changes

Moving self-hosted n8n to a newer major version means database migrations run at startup. Here is the documented upgrade path, what rollback can and cannot undo, and when outside help makes sense.

On this page

What an n8n major version upgrade involves on self-hosted instances

For a team running self-hosted n8n that must move to a newer major version, the current stable line is 2.x (n8n 2.43.7, dated October 16, 2026), and each major move runs database migrations at startup, so rollback depends on a backup taken before the upgrade. Confirm the current release and the status of the 1.x line on n8n's releases page before you set a plan or a date, because 1.x still receives releases and release status changes as new versions ship. Treat the database as the part of the upgrade that matters most. The container image is only the delivery mechanism. Once a process has started on the new version and applied its schema changes, the database no longer matches the older binary, and every later step in your plan has to account for that.

Migrations are the step you cannot reverse by changing a tag. Each n8n process runs any pending database migrations when it starts, and on PostgreSQL, from n8n 2.33.0, an advisory lock lets one process run them in a single transaction. Changing the image tag back to the old version does not undo those migrations. Your rollback options are to run n8n db:revert one migration at a time or to restore the database backup you took before the upgrade. Before the change window, decide which path your team will use, rehearse the restore on a copy of the database, and time the rehearsal in your own environment. The update documentation describes the same migration behavior and is the source to check against the version you install.

Queue mode raises the stakes because every process must move together. The main instance, the workers and the webhook processes should all run the same pinned image tag, so avoid latest, which can pull different builds on different hosts. Take a full backup that includes the encryption key, and confirm with your own configuration which stored secrets depend on it before you rely on that backup. Queue mode also depends on Redis and a database that can carry the load, and running queue mode on SQLite is not recommended, so check your database and Redis availability through the cutover. Finally, plan the upgrade cadence. The update guidance says to update often, ideally at least monthly, so you avoid jumping several versions at once, and you should read the 2.x release notes for breaking changes before you change any image tag. The queue mode guidance is the next read for the process layout.

Which n8n lines are maintained and what the dates say

This table lists the n8n release lines and version boundaries that bear on an upgrade plan, with the date or status attached to each. Read the status column first, then the planning column to see what it means for your timeline. The main takeaway is that the newest version changes often, so confirm it on the release page before you pick a target.

Line or featureStatusWhat it means for the plan
n8n 2.xCurrent stable line. n8n 2.43.7 is dated October 16, 2026.Target this line unless you have a reason to stay on 1.x. Pin one exact image tag on every main, worker and webhook process.
n8n 1.xStill receives releases. Confirm its end-of-life date with n8n before setting a deadline.Staying is workable only while the releases you need keep arriving. Build any deadline from the date n8n confirms in writing.
PostgreSQL advisory lockApplies from n8n 2.33.0. One process runs pending migrations in a single transaction.Treat 2.33.0 as the boundary for how migrations run on PostgreSQL. Test startup on a copy when several processes start together.
Newest versionMoves with each release. Updates are advised often, ideally at least monthly.Check the n8n releases page on the day you set the target, and read the release notes for breaking changes.

The documented n8n major version upgrade path, step by step

This sequence moves an n8n installation from its current version to a newer major version while protecting workflows, credentials and execution history. Each step produces a record or check that the next step depends on, so the operator knows what changed and where to stop. Verification steps are labeled as recommended practice.

  1. Confirm the current version and mode

    The operator records the exact n8n version now running, whether the instance runs in regular mode or queue mode, the database in use, and the image tag each process pulls. Someone with access to the host or container platform reads this from the running instances. Done means a written record exists that another engineer could use to reproduce the environment. If the record shows the instance is several releases behind, expect more release notes to read in the next step.

  2. Read release notes for every intermediate version

    The operator reads the n8n release notes for every version between the current release and the target, in order, and lists each breaking change that touches nodes, credentials, environment variables or the database. The n8n update documentation advises updating often, ideally at least monthly, to avoid jumping several versions, so a long gap here means more reading. The operator confirms with the release notes whether any intermediate release is required before the target can be reached. Done means each breaking change has an owner and a decision: a fix, a workflow change or an accepted risk.

  3. Take a full backup with the encryption key

    The operator takes a full backup of the n8n database, the encryption key used to protect stored credentials, and any file or binary data storage the installation uses. The key must be backed up with the database, because stored credentials depend on it after a restore, and it should be kept in a location separate from the database backup. As a recommended check, the operator restores the backup into a separate environment before the upgrade proceeds. Done means the backup sits somewhere the upgrade does not touch and the test restore produces a working login.

  4. Rehearse the upgrade on a pinned tag

    The operator restores the production backup into a staging environment that matches production's deployment mode, then upgrades staging to the target version using a specific image tag, never latest. The same pinned tag goes into the change plan so production runs exactly what staging tested. Done means staging starts on the target tag, the startup logs show no errors, and the operator can log in and open a sample of workflows. Any problem found here becomes a fix in the plan before production is touched.

  5. Let migrations run at startup

    On startup, each n8n process checks for pending database migrations and runs any that are outstanding. On PostgreSQL from version 2.33.0, one process runs them under an advisory lock in a single transaction, and the other processes wait for it to finish. The operator watches the startup logs for migration messages and confirms they complete without error. If the target release is before 2.33.0 or the database is not PostgreSQL, confirm how migrations run in the update documentation first. Done means the logs show migrations completed and the editor loads.

  6. Update all queue mode processes together

    In queue mode, the operator moves the main instance, every worker and every webhook processor to the same pinned image tag, so no process runs a different version against the shared database and Redis. The main instance handles triggers and webhooks and passes executions through Redis to workers, so a mixed fleet can produce failures that look like workflow bugs. Done means every process reports the target version in its logs and workers pick up executions from the queue. Regular mode installations skip this step.

  7. Verify workflows, credentials and executions

    Recommended practice: the operator runs a checklist against staging and again against production after cutover. The checklist covers active workflows loading without errors, credentials opening with the restored encryption key, a manual test run of key workflows, scheduled and webhook triggers firing, and recent execution history showing correct status. Confirm each node and integration the business depends on individually, since release notes may change them. Done means every item has a named owner and a recorded result, and the checklist is signed off before cutover.

  8. Cut over production with rollback ready

    The operator moves production to the verified pinned tag only after the checklist passes, and records the rollback path before the change starts. Changing the image tag back does not undo database migrations, so rollback means running n8n db:revert one migration at a time or restoring the backup from the third step. Confirm the revert steps for the specific versions in the release notes before the window opens. Done means production runs the target tag, the first executions are checked, and the rollback decision has an agreed owner and trigger.

Rollback depends on whether migrations have already run

The diagram follows one path from the current version: read the release notes, take a full backup that includes the encryption key, rehearse the upgrade on staging with a pinned image tag, let migrations run at startup, verify workflows and credentials, then cut over production. Two rollback points sit on the failure branch. If the upgrade fails before migrations run, restoring the pre-upgrade backup is the rollback. If it fails after migrations run, changing the image tag back does not undo them, so the team must run n8n db:revert one migration at a time or restore a backup. Confirm both rollback paths on staging before you schedule the production cutover.

Upgrade path from backup to cutover, with two rollback points on failure.

Which changes to check before moving to a newer n8n major

Six checks cover most of the risk in an n8n major upgrade, and they connect: the release notes show what might break, migrations and queue mode decide how the change rolls out, and the backup and license decide whether you can recover and keep paid features running. Work through them before the first process starts on the new tag.

Read the 2.x release notes

n8n's update guidance says to read the release notes for breaking changes, so start there for every version you pass through, from your current install to the target. If you jump several versions at once, you read several sets of notes, and the breaking changes in each one stack up. Write down which changes touch the nodes, expressions, credentials or settings your workflows use, then test those items on a copy of your instance before the production cutover.

n8n update guidance

Migrations run at startup

Each n8n process runs pending database migrations when it starts, so the schema changes on the first boot of the new tag, not in a separate step you control. On PostgreSQL, release 2.33.0 and later use an advisory lock so one process runs the migrations in a single transaction. Changing the image tag back does not undo migrations. Rollback means running n8n db:revert one migration at a time or restoring a backup taken before the upgrade, so confirm that backup exists before the first start.

Same pinned tag everywhere

In queue mode, the main instance handles triggers and webhooks while worker processes run executions, so every main, worker and webhook process must run the same pinned image tag. Mixed versions can leave processes out of step on the database they share. Avoid latest, because a pull on one host can pick up a different release than the others. Set the tag in one deployment variable, redeploy all processes together, and check each one's version after restart.

n8n queue mode docs

Encryption key in every backup

n8n's queue mode guidance says to take a full backup that includes the encryption key, so the key has to travel with the database backup. Keep it in your secrets store with a documented location and owner. Then restore the backup to a test environment on the target version and confirm that existing credentials still work. A backup you have never restored is untested, so schedule that restore before the upgrade window.

`.ee` features need a license

Files with .ee in their name are not covered by n8n's Sustainable Use License and require a valid n8n Enterprise License. Coverage is not something a version change checks for you, so confirm it after the move. Check that your license key still validates on the target version, then test each .ee feature you depend on against the features your key covers. Ask n8n in writing if the scope of your key is unclear.

n8n LICENSE.md

Test paid features on target

n8n's pricing page lists SSO and LDAP, environments with Git and log streaming as included only in the Business and Enterprise plans. If your instance uses any of them, run each one on the target version before cutover, because a setup that worked on the old version does not prove it works on the new one. Test login and directory sync, a Git push and pull, and log delivery to your monitoring tools, then confirm your plan still covers each feature.

n8n pricing page

Why changing the image tag back does not undo n8n migrations

Changing the image tag back does not return the database to its earlier state. Each n8n process runs pending database migrations on startup, so the first process to start on the new major version applies the schema changes before workflows run. If you then pin the older image, nothing in the restart reverses the migrations already applied, and the older release may not be able to run cleanly against the migrated schema. In queue mode this matters more, because the main instance, the workers and the webhook processes all share one database. Treat the image tag as a deployment setting only. Once the database has moved, your rollback plan has to account for that before the upgrade starts.

n8n's update documentation names two rollback options. The first is running n8n db:revert to undo migrations one at a time, so the schema steps back in order and you run it once for each migration the upgrade applied. The second is restoring a backup taken before the upgrade. On PostgreSQL, n8n from 2.33.0 uses an advisory lock so that one process runs pending migrations inside a single transaction, which should prevent a partly applied set of migrations after a failed run. Confirm that behavior in your own environment before you rely on it, and remember that the lock does not replace a backup.

Given those two options, the practical rollback point is the backup you take before the upgrade, and that backup must include the encryption key. n8n uses the encryption key to protect stored credentials, so a database restore without the matching key leaves workflows that cannot read their credentials. The documentation covers only these two options, so any further reversal steps are yours to design and test. Plan and rehearse the restore in a separate environment on the previous pinned tag, confirm that workflows and credentials work, record how long the restore takes, and check that every main, worker and webhook process uses the same tag. Ask n8n or your implementation partner to confirm any version-specific limits on db:revert before you depend on it.

How to prepare by deployment: single process, queue mode or n8n Cloud

A single-process install runs the editor, triggers and executions in one n8n process, so the upgrade is one image change, but that change also runs database migrations. Changing the image tag back does not undo those migrations, so your preparation is about returning to a known state. Prepare these steps before the upgrade window:

  • Full backup: Back up the database together with the encryption key, since n8n uses that key to protect stored credentials.
  • Staging copy: Restore the backup into a staging environment with the same data and run your workflows there first, so migration errors surface before production.
  • Pinned tag: Set the target image tag explicitly, never latest, and record the current tag so you know where to return.
  • Custom nodes and credentials: Check each custom node against the target version and confirm every credential still connects in staging.
  • Rehearsed restore: Practice restoring the backup on a separate host. n8n's documentation names two rollback paths, running n8n db:revert one migration at a time or restoring a backup, and only a rehearsed restore proves the second one works for your data.

Before you accept the plan, confirm that the rehearsed restore gives you a working instance with the same workflows and credentials.

What to test in staging before the production cutover

Start with the paths that carry production traffic: triggers, webhooks and queue mode. Before the cutover, run a staging copy of production with the same pinned image tag on every main, worker and webhook process, because n8n's queue mode guidance expects them to match. Confirm that scheduled triggers fire once, that each production webhook URL answers from the new version, and that a burst of queued executions drains through the workers and writes results to the database. Check the Redis queue during the test, since jobs waiting at the time of the upgrade need a defined outcome. Then restore a recent backup into staging and confirm that credentials decrypt. The backup must include the encryption key, so a restore without it leaves every stored credential unreadable. Open a sample of workflows that use each credential type in production and run them against a sandbox target.

Next, test what depends on the edition and license. List every custom node package and community node in use, install them on the staging image, and confirm they load and run. An older node may fail after an upgrade, so staging is where to find out. Files with .ee in their name are outside the Sustainable Use License and need a valid n8n Enterprise License, so confirm that the license key works on the new version before testing those features. If the organization uses SSO, LDAP or Git environments, check that login, group mapping and source control push and pull still work. n8n's pricing page places SSO, LDAP and environments with Git in the Business and Enterprise plans, so confirm your plan covers them. For SAML, follow n8n's SAML user management guide and retest attribute mapping with a test identity.

This checklist is recommended practice. n8n does not require it, but the update documentation's advice to read release notes for breaking changes still applies to every item. Write each test case with the owner of the workflow it covers, since only that owner can say what a correct output looks like and which downstream systems depend on it. Record the expected result, the test account, the credentials used and who signed off. Include a rollback rehearsal. n8n's documentation says changing the image tag back does not undo migrations, so practice either running n8n db:revert one migration at a time or restoring a backup, and record how long the restore takes in your environment. Keep the signed test cases with the cutover runbook so the rollback decision during the window rests on evidence.

What an n8n major version upgrade costs and needs from your team

What drives the cost of an n8n major version upgrade?

The biggest cost drivers are how much you run and how much must be checked. Count the main instance and each worker and webhook process, the number of workflows and credentials to test, and whether you have custom nodes. Add the number of staging environments and the number of versions you must pass through, since skipping releases adds migration steps. Testing depth matters too, as does any SSO, Git or Enterprise setup, which adds identity, environment and license checks. Cost falls when the inventory is clean, staging matches production and workflow owners are ready to test.

Who pays for what during an n8n upgrade engagement?

Your organization pays its own staff for their time, and any partner is paid for the scope it agrees to deliver. Internal staff time covers administrators who run the upgrade, engineers who review breaking changes, and workflow owners who test their automations. A partner fee covers the planning, implementation, testing, backup and documentation work defined in the statement of work. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from the written scope. Ask each bidder to itemize who does which task, and which costs are one-time and which recur, such as retainer support or continuous testing.

How long does an n8n major version upgrade take?

The duration depends on the scope, and no single timeline fits every upgrade. The main variables are the number of instances, the number of workflows to test, the versions you pass through, and how many change windows your process requires. Fixed-scope timelines are agreed in writing before work starts, so ask for a written plan with milestones for inventory, staging upgrade, rehearsed rollback, production change and sign-off. Ask also how many hours your own staff must reserve for testing and approvals, since those hours often set the pace. Confirm the schedule against your release calendar and freeze windows before you commit.

What does an n8n upgrade need from our team before work starts?

Plan to provide access, backup and key custody, a staging environment, named workflow owners, a change window and a sign-off contact before work starts. Access means administrative access to the hosts, the database, the container platform and the n8n instance itself. The n8n update documentation advises updating often and reading release notes for breaking changes, so your team needs time to review them. Backups must include the encryption key, because n8n's queue mode guidance calls for a full backup that covers it. Keep the key in custody you control, and test that you can restore it. Workflow owners then confirm that their automations still behave correctly on staging.

Can our own engineers upgrade n8n without outside help?

Yes, if your engineers can run the documented steps and rehearse a restore before the production change. n8n runs pending database migrations on startup, so switching the image tag back does not undo them. n8n's documentation says to roll back by running n8n db:revert one migration at a time or by restoring a backup. The two main risks are a failed migration that leaves the database in a state you have not tested, and a lost encryption key that leaves stored credentials unreadable. Practice both recovery paths on a copy of production first, and record the output of each run so the production change follows a tested sequence.

When should we bring in outside help for an n8n upgrade?

Bring in outside help when the upgrade carries more risk than your team can absorb on its own schedule. Common triggers are queue mode with several workers, a large number of workflows and credentials to test, no rehearsed rollback, or a regulated system that needs change control evidence. DeployOpen plans, implements, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, and it prepares systems and evidence for compliance assessments. It does not issue audit reports or certifications, since independent auditors and certification bodies do that work. Most engagements are fixed-scope, so you receive written deliverables before work starts. Ask any partner how it handles change approval, evidence and rollback.

Does upgrading n8n change our licensing or entitlements?

Whether an upgrade changes your entitlements is a question for n8n, so confirm it in writing before you upgrade. Under the Sustainable Use License, use and modification are allowed for internal business, non-commercial or personal purposes. Files with .ee in their name require a valid n8n Enterprise License, so check whether your instance loads any of them. Plan tiers also matter: n8n's pricing page places SSO, LDAP, environments with Git and log streaming in its Business and Enterprise plans. Review the license terms and your plan with n8n, and recheck them after the upgrade if your feature use changes.

How DeployOpen plans and runs n8n upgrades

DeployOpen plans an n8n major version upgrade as a fixed-scope piece of work inside your own infrastructure, starting from your current version, your database and your queue mode setup. The aim is a documented path with a tested rollback plan before anything reaches production. Ongoing upgrades and testing can follow under a retainer.

How we scope

  • The written scope names your current n8n version, target version, deployment mode and the database in use.
  • Engagements are fixed-scope, so the upgrade inventory, test plan and deliverables are agreed in writing before work starts.
  • Scope can cover a review of breaking changes across every version between your current release and the target.

How we build

  • Staging gets a copy of your instance, with one pinned image tag on every main, worker and webhook process.
  • Each process runs pending database migrations on startup, so we test that sequence on a copy before production.
  • Rollback is planned up front because a changed image tag does not undo migrations; we document db:revert or backup restore.

How we hand over

  • Handover includes the written upgrade runbook, the test results, the rollback steps and the backup and encryption key record.
  • Backups must include the encryption key, so the runbook records where that key is stored and who can restore it.
  • Your team keeps the documentation inside your own infrastructure, so security and compliance staff can review it.

How we support

  • After go-live, ongoing support, upgrades and continuous testing are available as retainers, if you want them.
  • Whether retesting after fixes is included depends on the written scope, so confirm it before signing.
  • Watch the n8n update guidance, which advises updating often, ideally at least monthly, to avoid jumping several versions.

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.