n8n 1.x to 2.0 upgrade

Moving a self-hosted n8n instance from 1.x to 2.0 changes defaults that can stop workflows, so the plan needs a test environment, verified backups and a rollback point before cutover. This page covers what changes, the upgrade sequence and what drives effort.

On this page

Why plan the n8n 1.x to 2.0 upgrade before touching production

Plan the move from n8n 1.x to 2.0 as a project with its own test cycle, rollback point and cutover window, not as a routine patch. A team running self-hosted n8n 1.x usually needs 2.0 for a feature or support reason, and the upgrade must leave every workflow, credential and database record working afterward. The starting point is your exact 1.x version, which you should confirm in your running instance before anything else. Confirm the supported upgrade path and the 2.0 target tag in the n8n release notes, since the path determines whether you can step directly to 2.0 or must pass through intermediate releases.

A major version differs from a minor release because it can change database structure, default security behavior and how some nodes and sub-workflows behave. Database migrations run forward only, so a successful start on 2.0 is hard to undo without a restore. That makes a verified backup of the database and the .n8n folder, taken while the instance is stopped or quiesced, the first control to put in place. Your encryption key must be backed up separately and kept with the same instance, because credentials cannot be read without it.

Decide before cutover who owns each risk: the platform team for the database and hosting, the workflow owners for their own automations, and the security team for changes to defaults such as code execution and task runners. Ask your implementation partner or internal team for a written inventory of workflows that use the Code node, disabled or removed nodes and sub-workflow outputs, because these are where 2.0 most often changes behavior. Then run that inventory against a staging copy of production before setting any production date.

What changes in 2.0 and what each change asks of your team

This table lists the four change areas for moving from n8n 1.x to 2.x: database, Code node and task runner security, disabled nodes, and sub-workflow outputs. Read each row as a question to answer before cutover, not as a confirmed list of defaults. The main takeaway is that the exact behavior change for each area must be checked against the 2.0 release notes and tested on your own workflows in staging.

Change areaImpact on existing workflows or infrastructureAction needed before cutover
Database changesStartup runs schema migrations on the existing database, and rolling back later means restoring from backup because migrations run forward only.Read the 2.0 release notes for migration steps, take a tested database backup, and rehearse the upgrade on a copy of production data.
Code node and task runner security defaultsCode node scripts and the task runner setup may behave differently under stricter defaults, so scripts that depended on earlier behavior can fail.Check the 2.0 release notes for current defaults, inventory every Code node in use, and run those workflows in staging with the runner configuration you plan to ship.
Disabled nodesSome nodes may be disabled or changed in 2.x, so workflows that use them can stop running or show errors on activation.Search all workflows for nodes listed as changed in the release notes, and confirm replacements or plans for each with the workflow owners.
Sub-workflow output changesCalling workflows may receive output in a different shape, so downstream nodes that read specific fields can break silently.Test each parent and sub-workflow pair in staging, compare outputs against 1.x results, and update field references where the shape differs.
Credentials and encryption keyUpgrades can touch how credentials are stored or read, and queue mode workers must hold the same encryption key as the main instance.Confirm the key is identical on main, worker and webhook processes, back up the key with the database, and verify credentials resolve in staging.
Workflow testing before cutoverWithout a baseline, regressions in scheduled, webhook and AI workflows are hard to detect after go-live.Record expected outputs from 1.x runs, replay representative executions on 2.x in staging, and agree a go or no-go list with the business owners.

Which 2.0 changes are most likely to break existing workflows

The 2.0 changes that matter most do not fail in the same way, so the review should sort them by how they break. Security defaults for the Code node and task runners tend to stop a run outright: a script that depends on a permission or module the new defaults no longer allow will error at execution time. Disabled nodes fail in a similarly visible way when a workflow references a node that no longer runs. Changed sub-workflow outputs are harder to catch. The run completes, but a downstream node reads a field that moved or changed shape and writes wrong values to a CRM or ledger without raising an error. The most dangerous cases appear only on a schedule or in a rarely used error branch, which a manual test of the happy path will never reach.

Build the inventory before you choose the test scope. Export every workflow, including inactive ones, and search the exported JSON for Code nodes, Execute Workflow nodes that call sub-workflows, and any node type the n8n release notes list as disabled or changed for 2.0. For each match, record the workflow owner, the trigger type (manual, webhook or scheduled), the nodes downstream of the change, and whether the workflow writes to a system of record. Confirm the list of disabled nodes against the notes for the exact version you target, because that list is an input you cannot easily reconstruct after cutover. Workflows that match none of these criteria can usually be covered by a smaller sample test.

Custom Code node modules and external packages need their own review, because a workflow that passes its tests may still depend on them. Check which modules Code nodes load, where each one comes from, and whether the 2.0 sandbox and task runner configuration still allows it to load. Confirm setting names and any allowlist format in the 2.0 documentation for your exact version, and do not copy settings from a 1.x configuration file. Give each module its own line in the inventory with its version and owner, and treat any workflow that depends on it as high risk. The inventory then sets the test scope: high-risk workflows get a run for each trigger type and each error branch against a copy of production data, while low-risk workflows get a smoke test.

What to prepare before the upgrade window opens

The work before an n8n 1.x to 2.0 cutover is mostly about being able to undo it and prove it works. Each item below produces an artifact that the team can point to when the upgrade is scheduled, tested and signed off.

Full database backup, restore-tested

Take a full backup of the database that holds n8n's workflows, executions and credentials, then restore it into a separate instance to confirm it is usable. The 2.0 upgrade runs database migrations that only move forward, so this backup is the only clean way back. Usually owned by the database administrator, with the platform engineer confirming the restore. Check that the restore was tested, not just that the backup job succeeded.

Backup of the .n8n folder

Copy the .n8n folder, which holds the configuration and the encryption key that decrypts stored credentials. A database backup without the matching key cannot recover credentials, so the two must be kept together and tied to the same point in time. Usually owned by the platform engineer. Confirm where the key is stored, who can read it and that the backup copy is protected like any other secret.

Inventory of workflows and settings

List every workflow, credential, custom node and environment setting the instance uses, including which workflows are active and which trigger on webhooks or schedules. Record the environment variables and any external hooks or custom nodes that 2.0 may affect. Usually owned by the automation lead with input from the teams that own each workflow. The inventory becomes the test plan for the staging run.

Staging instance from production data

Build a staging instance from a copy of production data, using the same database engine and a comparable configuration. Testing on an empty instance or a different database engine hides the migration and data issues that matter for the cutover. Usually owned by the platform engineer. Confirm that staging is isolated from production systems so that test workflows cannot send real messages, write to live systems or call live APIs.

Named owner for sign-off

Assign one person who accepts the upgrade result, with authority to approve go-live or call a rollback. Testing produces findings, but someone has to decide which broken workflows block the cutover and which can be fixed after it. Usually owned by the service owner or IT manager. Agree the acceptance criteria before testing starts so the decision rests on the inventory, not on who is available that day.

Freeze on workflow edits during testing

Stop changes to production workflows and credentials from the point the staging copy is taken until cutover is complete and signed off. Otherwise the test results describe a system that no longer exists, and fixes made in production are lost or overwritten. Usually owned by the automation lead, communicated to every workflow owner. Keep an exception path for urgent security fixes, with each change recorded and retested.

How the upgrade moves from staging to production with rollback points

The path starts with an inventory of workflows, credentials and custom nodes, then a backup of the production database and .n8n folder. The upgrade is rehearsed on a staging copy of production data, followed by a workflow test pass. A go or no-go decision gates the production cutover, and a fresh backup is taken immediately before the production upgrade. If post-upgrade checks fail, the team restores from that backup rather than trying to reverse the migrations in place.

Phases from inventory to production cutover, with the restore branch for failed checks.

The upgrade sequence from backup to signed-off production

This sequence takes an n8n 1.x instance to a signed-off 2.x production instance in eight steps, each with a check and a rollback point. Because database migrations run forward only, the backup taken before the production upgrade is the rollback path, and it must include the .n8n folder.

  1. Freeze changes and record the current state

    The operations owner stops workflow edits, credential changes and node installs on the 1.x instance until sign-off. The owner records the exact n8n version, the database type, and the list of active workflows, triggers, webhooks, credentials and scheduled workflows. Note any community nodes installed and any sub-workflows that pass data between workflows. The step closes with a written inventory signed by the workflow owners, which gives the post-upgrade checks a baseline to compare against. Rollback point: none yet, because nothing has changed.

  2. Back up the database and .n8n folder

    The platform engineer backs up the database and the .n8n folder while the instance is quiet, and stores the copies outside the host being upgraded. The .n8n folder holds the configuration that contains the encryption key, so the key must be captured with it, not only the database. Database migrations in 2.x run forward only, so this backup is the only way back once the new version starts against the database. The step closes when the backup files exist, their checksums are recorded, and a second person has confirmed they can be read.

  3. Confirm the restore procedure on a separate host

    The platform engineer restores the backup onto a separate host or container running the 1.x version, then starts n8n and opens a sample of workflows and credentials. This proves the backup is complete and that the encryption key in the restored .n8n folder decrypts stored credentials. Restore commands depend on your database and deployment method, so confirm each step against your own runbook. The check is a credential that connects and a workflow that executes from the restored copy. If either fails, fix the backup before going further.

  4. Upgrade staging to 2.x

    The platform engineer loads the restored backup into staging, using de-identified or masked data where production data is sensitive, and upgrades the staging instance to the target 2.x release. Read the n8n release notes for the target version before choosing it. Watch startup errors, migration output and warnings about Code node security defaults, task runners, disabled nodes and sub-workflow output. Record each warning, because each one points to a workflow that may need a change. The step closes when staging starts cleanly and every warning has a named owner. Rollback point: the restored 1.x copy, which stays untouched.

  5. Run the workflow test pass

    Workflow owners run each in-scope workflow on staging with representative inputs and compare the results with the baseline from the inventory. Give particular attention to Code nodes, which are affected by the 2.0 security defaults, to nodes that are disabled in 2.0, and to sub-workflows whose output changed. Record pass or fail for each workflow, with the reason for every failure. The step closes when every critical workflow passes or has a documented fix that has itself been retested. Rollback point: the staging backup can be restored and retested without touching production.

  6. Make the go or no-go decision

    The change owner, with the business owners and the security lead, reviews the inventory, staging warnings and test results, then decides whether to proceed. The decision record states what happens to any failed workflow, whether its fix must be retested on staging first, and who is on call for the production cutover. Confirm the maintenance window with everyone who depends on the instance. The step closes with a signed decision record. If the answer is no-go, production stays on 1.x and nothing has changed, so there is no rollback to perform.

  7. Stop production, back up again and upgrade

    The platform engineer stops the production instance so no executions or webhooks write to the database during the upgrade. A fresh backup of the database and .n8n folder is taken, because the earlier copy may be out of date. Only after that backup is verified does the engineer start the 2.x version and watch the migration logs until n8n reports that it is running. The step closes with a healthy process and a database that the new version has migrated. Rollback point: the fresh pre-upgrade backup, which requires restoring both the database and the .n8n folder because migrations do not reverse.

  8. Run post-upgrade checks and sign off

    The platform engineer and workflow owners check triggers, webhooks, credentials and scheduled workflows against the baseline. Confirm that schedules fire at the expected times, webhook endpoints respond, credentials connect to their target systems, and executions complete without new errors. Watch the execution log through the first full cycle of scheduled runs before sign-off. The step closes when the business owner signs the post-upgrade record. Until then, the restore path stays available, and afterward the pre-upgrade backup is kept under your retention policy.

How the upgrade differs for single-instance and queue mode deployments

A single-instance deployment runs one n8n process, usually in Docker or directly on a host, with one database and one .n8n data folder. The upgrade is one version change followed by one database migration pass, so most of the work is backup, staging and verification. The main risk is treating the instance as stateless, because the encryption key and the database both hold what your credentials depend on.

  • Back up first. Take a database dump and copy the .n8n folder before you change the image or package, since database migrations only run forward.
  • Keep the encryption key unchanged. Confirm that the key in your configuration is the one that encrypted the stored credentials.
  • Pin the target version. Set the image tag or package version to a named 2.x release so the change can be repeated exactly.
  • Test in staging. Restore the backup into a copy and run your critical workflows, including those that use the Code node and sub-workflows.
  • Watch the startup logs. Look for migration errors and confirm that triggers and webhooks register after the restart.

Before scheduling the production change, check that the restored staging copy starts cleanly, runs your critical workflows and decrypts its credentials.

How to test workflows in staging before the production cutover

Build the test pass from the workflow inventory, not from memory. Export every active workflow from the 1.x instance and tag the ones that carry the highest risk of changing behavior in 2.0: workflows with Code nodes, workflows that call sub-workflows, workflows that use credentials, and workflows that write to external systems such as ticketing, payments, or customer records. Those four groups are where the breaking changes in this upgrade concentrate, so they go first. For each tagged workflow, record its trigger type, its credentials, and the systems it writes to. Workflows that are disabled in 1.x or that depend on nodes flagged as disabled in 2.0 should be listed separately, because they will fail on import or at first run and need an owner's decision rather than a retest.

Run each workflow with known inputs and compare outputs to the 1.x results. Use a fixed set of test payloads captured from production runs where data handling allows it, and run the same inputs through the 1.x instance and the 2.x staging instance. Compare the final output, the output of each sub-workflow call, and the side effects in the target systems, not only whether the execution succeeded. A green execution can still produce a different field shape or a different value in a Code node. Scheduled and webhook triggers need separate handling: for schedules, confirm that the trigger fires at the expected time in the staging environment and that it does not also fire against production systems; for webhooks, send signed or authenticated test requests to the staging URL and confirm the response body and status code match what the caller expects. Confirm the exact trigger and webhook behavior against the n8n release notes for the version you are targeting, since these details change between releases.

Record evidence that a reviewer can accept, and plan for who judges correctness. For each workflow, keep the input set, the 1.x output, the 2.x output, the difference found, the decision taken and the retest result, along with the n8n version and the staging database backup used. Sign-off should name the business owner who confirms that each output is correct, because a technical match alone does not prove the workflow still does its job. That is the hardest part to staff. Your engineers can see that a value changed, but they may not know whether a changed rounding rule or a renamed field matters to the finance or operations team. If no one on your side can state the expected result for a workflow, that is a clear reason to bring in an outside partner to design the test cases with the owners, then run them with you.

What makes an n8n 1.x to 2.0 upgrade take longer

This table lists the inventory drivers that change how much work a move from n8n 1.x to 2.x involves, why each one adds effort, and what to do about it before cutover. Use it to size the inventory first, since most of the schedule risk comes from workflows and external systems rather than from the upgrade command itself.

DriverWhy it adds effortHow to reduce it
Workflows using Code nodes or custom modulesCode node and task runner security defaults change, so JavaScript or Python that relied on earlier behavior or on modules loaded by default must be reviewed and retested.Count Code nodes per workflow and list every external module they import. Move shared logic into reviewed sub-workflows or private custom nodes, and pin module versions.
Count of sub-workflow chainsSub-workflow output changes can alter the data passed back to parent workflows, so each link in a chain can break downstream steps even when the chain itself runs.Map each parent and child pair and record the fields each parent reads. Test every chain end to end with representative input before cutover.
Disabled or replaced nodes in useNodes disabled or replaced in the new major version stop working in existing workflows and need a supported alternative or a rewrite.Export a list of node types in use across all projects and compare it against the 2.x release notes. Assign an owner and a replacement for each affected node.
Queue mode and number of workersMain, worker and webhook processes must run the same version, so every process needs a coordinated restart and drained queues during the cutover.Document each process, its image or package version and its role. Plan the drain and restart order in a runbook and rehearse it on staging.
Database size and migration timeSchema migrations run forward only, so a large execution history or binary data store lengthens the migration window and makes restores slower if something fails.Measure database size and table growth, prune execution data where policy allows, and take a verified backup and time a restore test on a copy.
Credential count and external systems to retestEach credential and each connected system (databases, SaaS APIs, internal services) must be confirmed to still authenticate and return the same data after the upgrade.Build a credential inventory with the system each one touches and the owner who can test it. Schedule those owners for retest windows before the cutover date.
Availability of staging and a maintenance windowWithout a staging copy that mirrors production data and configuration, problems surface in production, and without an agreed window, rollback decisions are made under pressure.Confirm a staging instance with a recent restored database and the same encryption key. Agree the window, the rollback trigger and the people who approve it in writing.

Questions teams ask before upgrading n8n from 1.x to 2.0

What does the upgrade cost, and what drives the price?

Most of the cost is labor, and the split depends on how much of the work your own team does. The cost falls into four groups: internal time from engineers and workflow owners, a staging environment that is close enough to production to test against, the effort to test each workflow, and any outside partner fees. DeployOpen does not publish a price list. Fees follow from a written, fixed scope that states the inventory, test coverage, deliverables and timeline. Staging setup and the first test pass are largely one-time, while maintenance and later upgrades recur. The biggest cost drivers are the number of active workflows, credentials, custom nodes and community nodes, the queue mode topology, and how many business systems each workflow touches. Ask any provider to itemize these drivers in the quote.

How long does the upgrade take?

The duration depends on your inventory and test scope, so no single figure applies to every instance. Start by counting active workflows, credentials, custom nodes and Code node usage, then check which of them depend on behavior changed in the 2.0 release notes. A small set of well-documented workflows moves much faster than hundreds of workflows owned by many people, because sign-off is usually the slowest step. Ask for a schedule tied to your test matrix, with dates for staging, sign-off and production cutover, and name the owner of each gate. Confirm the exact breaking changes in n8n's release notes before you accept any estimate, since the list of changes determines how much testing is needed.

What does the upgrade need from our team?

Three things must be in place before work starts, and each one is a dependency for the schedule.

  • Workflow owners who can sign off: each business owner must confirm that their workflows produce the same results on 2.x, so someone must be available for testing.
  • Database and infrastructure access: the team needs credentials for the database, the host or container platform, the reverse proxy and any queue mode components, plus permission to take and restore backups.
  • A staging environment: it should run the same n8n version as production, use a copy of the production database, and connect to test versions of external systems where possible.

If any of these are missing, the upgrade will stall at the testing stage, which is where most of the time is spent.

Can our own team run the upgrade without outside help?

A capable internal team can run the upgrade, provided it has engineers who know your n8n deployment, its database, its proxy and its queue mode setup, and enough time to test. The main risk is not the upgrade command itself but missed behavior changes in workflows that nobody owns anymore. Many teams find it useful to inventory workflows first and then decide where outside help adds the most value, such as the inventory, the test plan, the cutover or an independent review of the plan. DeployOpen works under a written, fixed scope, so a partner can take on one of these parts or the whole upgrade. Whichever path you choose, document the decisions, the test results and the backup used for rollback, because your auditors and future upgrades will need them.

Can we roll back to 1.x after production has run 2.0 for a while?

Usually not by simply reinstalling the old version, because database migrations only run forward. Once 2.0 has applied its migrations and users have created or changed workflows and executions, returning to 1.x means restoring the database and the .n8n folder from a backup taken before the upgrade. Every change made after that backup is lost unless you replay it by hand. Plan for this before cutover. Take a verified backup of the database and the .n8n folder, test the restore on a copy of the environment, set a go or no-go window after which rollback is no longer practical, and agree on who makes that call. The detailed rollback steps belong in their own runbook, and the sibling topic on rolling back a failed n8n upgrade covers them.

Should we upgrade straight to 2.x or step through minor releases first?

Decide this after reading the release notes, because the right path depends on your starting version. n8n uses semantic versioning and ships minor releases roughly weekly, so a team on an older 1.x release has many versions to review. Stepping through intermediate releases lets you apply and test each set of changes and database migrations separately, which makes a failure easier to trace. A direct move to 2.x means fewer upgrade cycles but a larger set of changes to test at once. Whichever route you pick, record the current version, pin image tags, read every release note between your starting point and your target, and confirm in the n8n release notes that the path you choose is supported. Do not rely on memory or community posts for version-specific steps.

Does the upgrade require an n8n Enterprise license?

The answer depends on which features your instance uses, not on the version number alone. n8n's Sustainable Use License allows use for your own internal business purposes, but files with .ee in their name or directory are not covered by it and require a valid n8n Enterprise License. If your instance uses only community features, the upgrade does not add a licensing requirement on its own, but confirm this against the license terms for your use. Separately, n8n's pricing page lists SSO and LDAP, environments with Git, and log streaming only in the Business and Enterprise plans, and multi-main high availability only for Enterprise self-hosted deployments. Check which of these you run today and make sure your plan covers them on 2.x.

How DeployOpen scopes and delivers an n8n 2.0 upgrade

DeployOpen treats an n8n 1.x to 2.0 upgrade as a planned change to your own instance, not a version bump. We start from your current deployment, inventory the workflows and credentials it depends on, and agree a written scope before any change is made to your environment.

How we scope

  • Inventory your current n8n version, database, hosting model and whether queue mode or workers are in use
  • List the Code node, disabled-node and sub-workflow usage that the 2.0 changes may affect in your workflows
  • Agree the written scope, deliverables and timeline with you before work starts, since most engagements are fixed-scope

How we build

  • Stand up a staging copy of your instance and run the upgrade there first, including the database changes
  • Adjust Code node usage, task runner settings and sub-workflow references to match the 2.0 defaults you adopt
  • Test priority workflows end to end, comparing outputs, credentials and triggers against the 1.x baseline

How we hand over

  • Document the upgrade steps, configuration changes and the rollback path you would use if cutover fails
  • Record every workflow that changed behavior, was rewritten or needs owner review after cutover
  • Walk your platform and workflow owners through the runbook and the test evidence before the engagement closes

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the upgrade is complete
  • Plan the next minor release updates against the same staging and test set so the cadence stays manageable
  • Confirm with your team which support terms and response expectations apply before the retainer is signed

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.