How do you upgrade n8n to 3.0 without breaking running workflows?
A practical playbook for teams with a lot of workflows: audit what 3.0 will change, back up the right data and keys, rehearse on staging, then cut over, with a real way back.
- Time needed
- 2 to 3 hours
- Steps
- 3
- Level
- Intermediate
Before you start
- Access to the n8n instance as an owner or admin, and the current version (Settings, then Personal; the version is at the bottom of the left sidebar).
- A path to the latest 2.x if you are still on 2.x, or to 2.x first if you are on 1.x. There is no direct path from 1.x to 3.x.
- The Migration Report, which exists from n8n 2.39, on the newest 2.x you can run.
- A full backup of the database and the matching master encryption key, stored where the upgrade cannot overwrite it.
- A staging copy you can restore onto and upgrade before you touch production.
- For self-hosted 3.0: Docker, Docker Compose, Kubernetes or Helm. There is no official npm or npx path to 3.0.
- If you run queue mode: Redis, and the same n8n version and master key on every main process, worker and webhook processor.
- Official n8n docs and GitHub releases rechecked on the day you cut over.
Know your version, path and inventory
Dependencies
- Current n8n version, and how it is installed: Cloud, Docker or Compose, Helm or Kubernetes, or npm / npx.
- The image tag you run, for every n8n process. Official update docs tell you to pin a tag.
- Database type and location: SQLite in .n8n, or PostgreSQL.
- The master encryption key, from config in .n8n or N8N_ENCRYPTION_KEY.
- If queue mode: Redis, plus each main process, worker and optional webhook processor.
- If you use external task runners: the n8nio/runners image tag, which must match n8n.
- Binary and execution storage mode, volume paths, N8N_STORAGE_PATH if set, and any S3 or Azure buckets.
- Public URL settings: N8N_WEBHOOK_URL, N8N_PROXY_HOPS, and how TLS is terminated.
Setup
Know your version and path
Open Settings, then Personal. The version is at the bottom of the left sidebar.
- If you are on 1.x, go to 2.x first. There is no direct path from 1.x to 3.x. Support for 1.x ends on 31 Dec 2026. On n8n Cloud, only an instance owner can change the version. Self-serve Cloud instances still on v1 at that deadline are upgraded to v2 automatically.
- If you are on 2.x, update to the latest 2.x before you do anything else. The Migration Report exists from 2.39, and n8n says the newest 2.x carries the newest report.
- If you already run a 3.x early access build, stay on a pinned 3.x tag and do not treat that as the stable release until n8n says it is.
Inventory the instance, before you take a backup
Write this down. You will use it to restore and to prove the backup works.
- Current n8n version, and how it is installed: Cloud, Docker or Compose, Helm or Kubernetes, or npm / npx.
- The image tag you run, for every n8n process. Optionally record the image digest as well, so you can identify the exact image later. Official update docs tell you to pin a tag, not a digest.
- Single process, or queue mode. If queue mode, list each main process, worker and optional webhook processor.
- External task runners, if you use them: they are separate
n8nio/runnerssidecars, not database nodes. Record the runners image tag (it must match n8n) and that they can reach the task broker. - Database type and location: SQLite in
.n8n, or PostgreSQL (host, name, schema, table prefix). - Where the master encryption key lives:
configin.n8n, orN8N_ENCRYPTION_KEY. - Community packages and custom node directories (
N8N_CUSTOM_EXTENSIONS). - Binary and execution storage: mode, volume paths,
N8N_STORAGE_PATHif set, and any S3 or Azure buckets. - In queue mode: Redis (host, database number, key prefix). Official docs say Redis holds pending jobs, and jobs lost from Redis are not rebuilt from PostgreSQL; n8n marks those executions as crashed.
- Public URL settings:
N8N_WEBHOOK_URL(this replacesWEBHOOK_URL, which is deprecated from n8n 2.35.0),N8N_EDITOR_BASE_URL,N8N_HOST,N8N_PROTOCOL,N8N_PROXY_HOPS, and how TLS is terminated. - Environment files, Compose files or Helm values.
- Published workflows, the business process each one serves, and an owner for each.
If you have a lot of workflows, start with the ones that run most often and the ones that take money, messages or files in or out.
Encryption keys and process roles
How it works
Encryption keys: master key and data key
master key and data key
n8n uses two layers, and they are easy to mix up.
- The instance encryption key, also called the master key, is
N8N_ENCRYPTION_KEY(or the key stored in theconfigfile in the.n8nfolder). It is set at deploy time and does not change. From 3.0 on a self-hosted instance, this key only protects the data encryption keys. - The data encryption key is the key that directly encrypts credentials and other sensitive data. You can rotate it from Settings > Data Encryption Keys. n8n stores it, encrypted, in the database, under the master key. On first startup after a 3.0 upgrade, n8n creates the initial data key for you.
Encryption key rotation is available on self-hosted instances, all editions. It is not available on n8n Cloud. From 3.0 it is on by default for self-hosted. Once n8n writes data in the new format, older versions cannot read it. There is no official tool to convert that data back. The recovery path is a database backup restored with the same master key.
Restore the database and the matching master key as a pair. A database backup without that key cannot be decrypted. A key without the matching database is not enough either. In queue mode, every main process, worker and webhook processor must already share the same master key.
Queue mode
These parts are not the same thing, and they do not all share the database.
| Piece | Role | Shares the workflow database? |
|---|---|---|
| Main process | Receives triggers and webhooks, and creates executions. In a simple setup it may also serve the editor. | Yes |
| Workers | Run the executions, including manual runs in 3.0. | Yes |
| Webhook processors | Optional extra processes for webhook HTTP. | Yes |
| PostgreSQL (or SQLite, which official docs do not recommend for queue mode) | Stores workflows, credentials and execution history. | This is the database |
| Redis | Message broker for the execution queue. Pending jobs live here, not in PostgreSQL. | No |
External task runners (n8nio/runners sidecars) |
Run Code node (and Python) tasks. Official docs: each worker needs its own sidecar, and the runners image version must match n8n. They authenticate to the task broker with N8N_RUNNERS_AUTH_TOKEN. |
No |
Main processes, workers and webhook processors must use the same n8n version, the same master key, and the same Redis and database settings. Do not run mixed n8n versions during the cutover. Official update docs say the migration lock on PostgreSQL does not make mixed versions safe, and does not mean the upgrade is zero-downtime.
Because manual executions always run on workers in 3.0, recheck worker count and memory. The old OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS variable is gone. After 3.0, a main process no longer runs those manual jobs, so the older "give the main instance its own runners sidecar if offload is off" case does not apply in the same way. Each worker that runs Code nodes still needs a matching runners sidecar if you use external mode. Internal runner mode is deprecated from 3.0.
Queue-mode cutover:
| Step | Action |
|---|---|
| 1 | Take the full backup, including the database and the master key. Confirm the backup has been restored once on staging. |
| 2 |
Confirm every main, worker and webhook processor already uses the same N8N_ENCRYPTION_KEY. |
| 3 |
Note the newest row in the migrations table, for example SELECT name FROM migrations ORDER BY id DESC LIMIT 1; (adjust the name if you use DB_TABLE_PREFIX or a custom schema). |
| 4 |
Pin the same n8n image tag on every main, worker and webhook processor. If you use external runners, pin the matching n8nio/runners tag on every sidecar. |
| 5 | Stop every process: mains, workers, webhook processors and runners. |
| 6 | Upgrade them all to that same tag, then start them so they come up together. |
| 7 | Confirm a worker picks up a manual execution and a production-style run, and that credentials still decrypt. |
If you use Helm, check whether the target n8n version needs a newer chart version. The chart version is separate from the n8n version.
CLI export, Compose restart and one-line upgrade
Commands
# Workflow and credential CLI export (not a full backup)
n8n export:workflow --backup --output=backups/workflows/
n8n export:credentials --backup --output=backups/credentials/
# Compose upgrade, after you pin the 3.x tag you have chosen
docker compose pull
docker compose down
docker compose up -d
# n8n one-line setup upgrade (leaves data in place)
curl -fsSL https://get.n8n.io | sh -s -- --upgrade
What they do
The CLI export writes workflows and credentials only. It does not include users, execution history, variables, instance settings or the encryption key. For Compose, pin a specific 3.x image tag first, then pull and restart from the directory that holds the Compose file. If the version lives in .env (N8N_VERSION), change that value before you pull. The one-line setup command updates the version lines in .env and leaves your data in place. To pin a version, use the script's --version flag as documented on n8n's one-line setup page. There is no npm or npx path to 3.0. Do not run npm update -g n8n or npx n8n to get there.
Encryption keys, staging credentials and SSRF
- Restoring the database without the matching master key: The instance encryption key (N8N_ENCRYPTION_KEY or the key in the .n8n config file) and the database must be restored as a pair. A database backup without that key cannot be decrypted. A key without the matching database is not enough either. In queue mode, every main process, worker and webhook processor must share the same master key.
- Downgrading after 3.0 has written data in the new key format: Encryption key rotation is on by default from 3.0 on self-hosted instances, all editions, and is not available on n8n Cloud. Once n8n writes data in the new format, older versions cannot read it. There is no official tool to convert that data back. The recovery path is a pre-upgrade database backup restored with the same master key. Do not use db:revert as a 3.0 rollback.
- A --decrypted credential export sitting on a shared disk: A --decrypted credential export is plain text. Official docs say to store it with the same care as the credentials and delete it after a restore. Prefer restoring with the same master key instead. A restored staging copy contains production credentials, so lock staging down and do not leave it on a public URL with a weak password.
- SSRF-sensitive HTTP calls failing after the new blocked ranges: If SSRF protection is enabled and the block list contains default, 3.0 adds ::/128, 100.64.0.0/10, 2002::/16 and 64:ff9b::/96. Allow a needed host with N8N_SSRF_ALLOWED_IP_RANGES or N8N_SSRF_ALLOWED_HOSTNAMES. Keep default in N8N_SSRF_BLOCKED_IP_RANGES. Do not turn N8N_SSRF_PROTECTION_ENABLED off.
What must still work after the upgrade
| Metric | Threshold | Action |
|---|---|---|
| Credentials decrypt | Sign-in and saved credentials still work | If they do not, restore the pre-upgrade database with the matching master key. |
| The instance starts | n8n starts on the pinned 3.x tag | If it will not start, check that ~/.n8n/binaryData and ~/.n8n/storage do not both exist, and restore the backup. |
| Critical workflows activate | Published workflows that matter are active | If they do not activate, check Migration Report leftovers, Slack signing secrets, and removed legacy nodes. |
| Workers pick up jobs (queue mode) | A worker handles a manual run and a webhook or schedule | If they do not, confirm every process uses the same n8n version, Redis is up, and worker capacity is enough now that manual executions always run on workers. |
| Public webhook URL | N8N_WEBHOOK_URL and N8N_PROXY_HOPS match the HTTPS URL you expect | Test calls, including Respond to Webhook, and confirm external subscriptions still point at the URL you intend. |
| Code node runtime | Tasks finish inside the timeout you set (default is now 60 seconds) | If they time out, raise N8N_RUNNERS_TASK_TIMEOUT or split the work. |
Should I upgrade, and what 3.0 changes
A practical playbook for teams with a lot of workflows: audit what 3.0 will change, back up the right data and keys, rehearse on staging, then cut over, with a real way back.
Should I upgrade now?
n8n still describes 3.0 as an early access release. The help centre says the beta is optional and opt-in. You do not have to move the day a stable 3.x build ships. After that stable release, n8n says 2.x will keep getting security and critical bug fixes for 12 months. New features go to 3.x only.
A sensible way to decide:
- Production, Cloud or self-hosted: do the audit and the backup now, but wait for n8n to declare 3.x stable before you cut over, unless you have already rehearsed the same tag on staging and accept early-access risk.
- Non-production: a restored copy is the right place to try a 3.x early-access tag.
- npm or
npx n8ninstalls: move to Docker first, while you are still on 2.x. There is no official npm path to 3.0.
Check the release notes and GitHub releases on the day you decide.
Official status (last verified 27 Nov 2026, Asia/Karachi)
- 3.0.0 beta: 27 Oct 2026. The breaking-changes page still calls 3.0.0 an early access release. Official pages still say stable 3.x is planned for early December.
- Latest 3.x GitHub tag checked: n8n@3.4.1, published 26 Nov 2026 at 12:47 PM PKT, still marked Pre-release.
- Current Docker
stable/betaon the Install with Docker page: 2.49.8 / 2.50.3. GitHub also listed n8n@2.49.8 as stable and n8n@2.50.3 as a pre-release on 27 Nov 2026. - An unpinned
latestorstabletag may still install 2.x. If you mean to run 3.x, pin a specific 3.x tag.
This is a procedure, not a story about a migration Octacer has already finished.
What 3.0 changes
n8n describes 3.0 as a foundation release. It tightens defaults, removes legacy nodes and changes how self-hosted instances run. The full list is in the v3.0 breaking changes docs. Use the Migration Report first, then this table as a reference. The report cannot detect every change.
| Area | What changes | What to do |
|---|---|---|
| Self-hosted install |
3.0 requires Docker. npm and npx n8n are not supported, and 3.0 does not publish a runnable npm package. Kubernetes and Helm are not affected. |
Move npm installs to Docker on 2.x first. |
| Migration Report | Settings > Migration Report, from 2.39, lists workflows and instance settings that need attention. Some nodes can be rewritten automatically. | Update to the latest 2.x, fix or mark won't fix, test, then publish new versions. |
| Removed nodes | Legacy Function, Function Item, Item Lists, Cron, Interval, and others fail when they run. Published workflows that use them do not activate, so triggers stop. | Replace them (see below), preferably from the report. |
| Code node timeout |
Default N8N_RUNNERS_TASK_TIMEOUT drops from 300 seconds (5 minutes) to 60 seconds (1 minute). |
Set the variable if tasks need longer, or split the work. |
| Community packages |
Unverified packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED changes from true to false). |
Set the variable to true, or move to verified packages. |
| Slack | The Slack API credential needs a signing secret. Slack Trigger workflows without it do not activate and stop receiving events. | Add the Slack app Signing Secret to the Signature Secret field, then publish again, before you upgrade. |
| Encryption keys | Self-hosted only: key rotation is on by default. Not available on n8n Cloud. Older n8n versions cannot read the new data format. | Back up the database and the master key as a pair. Do not downgrade after 3.0 writes data. |
| Binary data |
N8N_DEFAULT_BINARY_DATA_MODE=default (in memory) is removed. Those instances switch to filesystem. In queue mode the default is database. |
Set filesystem, s3, azure or database. In queue mode, filesystem needs a shared volume. |
| Storage path |
On first start, ~/.n8n/binaryData is renamed to ~/.n8n/storage. n8n will not start if both directories exist. |
Back up first. Then remount at the new path, or set N8N_STORAGE_PATH. |
| Queue mode |
Manual executions always run on workers. OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS is removed. |
Review worker memory and capacity. Use the same n8n version on every process. |
| Chat Hub and editor | Chat Hub is off by default (you can re-enable it for 3.x only). Import from URL and the Code node Ask AI tab are removed. |
Set N8N_ENABLED_MODULES if you still need Chat Hub. Use file, paste, CLI or API import. |
Common node replacements: Function and Function Item become the Code node; Item Lists becomes Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize; Cron and Interval become the Schedule Trigger.
Encryption keys: master key and data key
n8n uses two layers, and they are easy to mix up.
- The instance encryption key, also called the master key, is
N8N_ENCRYPTION_KEY(or the key stored in theconfigfile in the.n8nfolder). It is set at deploy time and does not change. From 3.0 on a self-hosted instance, this key only protects the data encryption keys. - The data encryption key is the key that directly encrypts credentials and other sensitive data. You can rotate it from Settings > Data Encryption Keys. n8n stores it, encrypted, in the database, under the master key. On first startup after a 3.0 upgrade, n8n creates the initial data key for you.
Encryption key rotation is available on self-hosted instances, all editions. It is not available on n8n Cloud. From 3.0 it is on by default for self-hosted. Once n8n writes data in the new format, older versions cannot read it. There is no official tool to convert that data back. The recovery path is a database backup restored with the same master key.
Restore the database and the matching master key as a pair. A database backup without that key cannot be decrypted. A key without the matching database is not enough either. In queue mode, every main process, worker and webhook processor must already share the same master key.
1. Pre-upgrade audit
Know your version and path
Open Settings, then Personal. The version is at the bottom of the left sidebar.
- If you are on 1.x, go to 2.x first. There is no direct path from 1.x to 3.x. Support for 1.x ends on 31 Dec 2026. On n8n Cloud, only an instance owner can change the version. Self-serve Cloud instances still on v1 at that deadline are upgraded to v2 automatically.
- If you are on 2.x, update to the latest 2.x before you do anything else. The Migration Report exists from 2.39, and n8n says the newest 2.x carries the newest report.
- If you already run a 3.x early access build, stay on a pinned 3.x tag and do not treat that as the stable release until n8n says it is.
Inventory the instance, before you take a backup
Write this down. You will use it to restore and to prove the backup works.
- Current n8n version, and how it is installed: Cloud, Docker or Compose, Helm or Kubernetes, or npm / npx.
- The image tag you run, for every n8n process. Optionally record the image digest as well, so you can identify the exact image later. Official update docs tell you to pin a tag, not a digest.
- Single process, or queue mode. If queue mode, list each main process, worker and optional webhook processor.
- External task runners, if you use them: they are separate
n8nio/runnerssidecars, not database nodes. Record the runners image tag (it must match n8n) and that they can reach the task broker. - Database type and location: SQLite in
.n8n, or PostgreSQL (host, name, schema, table prefix). - Where the master encryption key lives:
configin.n8n, orN8N_ENCRYPTION_KEY. - Community packages and custom node directories (
N8N_CUSTOM_EXTENSIONS). - Binary and execution storage: mode, volume paths,
N8N_STORAGE_PATHif set, and any S3 or Azure buckets. - In queue mode: Redis (host, database number, key prefix). Official docs say Redis holds pending jobs, and jobs lost from Redis are not rebuilt from PostgreSQL; n8n marks those executions as crashed.
- Public URL settings:
N8N_WEBHOOK_URL(this replacesWEBHOOK_URL, which is deprecated from n8n 2.35.0),N8N_EDITOR_BASE_URL,N8N_HOST,N8N_PROTOCOL,N8N_PROXY_HOPS, and how TLS is terminated. - Environment files, Compose files or Helm values.
- Published workflows, the business process each one serves, and an owner for each.
If you have a lot of workflows, start with the ones that run most often and the ones that take money, messages or files in or out.
Run the Migration Report
On 2.39 or later, open Settings > Migration Report.
- Owners and admins see every workflow, plus an Instance issues tab. Other users see the workflows they can edit.
- Fix findings in impact order: Upgrade blocked, Executions will fail, Executions might fail, Behavior changes, Capability removed.
- Where a Migrate button is available, use it. n8n saves a new workflow version. A published workflow keeps running its current version until you publish the new one. Test first.
- Give each workflow an owner. Admins can email owners if SMTP is set up. Mark obsolete workflows as won't fix.
- Export the CSV and use it as the working list.
- Select Refresh (owners and admins) when you think you are done, and confirm the compatibility count matches the workflows in the report.
The report can fix many node replacements, such as Cron to Schedule Trigger. It will not do your judgement work: timeouts, Slack secrets, community packages, binary storage, queue-mode capacity, and npm-to-Docker moves still need a person.
Code node and community nodes
These are the official 3.0 changes that affect Code nodes and community packages. This is not a full compatibility matrix. Official docs do not publish one.
| Code node | What 3.0 changes | What to do |
|---|---|---|
| Task timeout |
Default N8N_RUNNERS_TASK_TIMEOUT drops from 300 to 60 seconds. |
Set the variable, or split long tasks. |
$evaluateExpression() |
Removed from the Code node (JavaScript). Only task runners in insecure mode (N8N_RUNNERS_INSECURE_MODE=true) are affected. Secure runners, the default since n8n 2.0, already fail on this call. |
Evaluate the expression in a node field, for example Edit Fields (Set), then read it in Code. The method still works in double-curly-brace expression fields. Do not turn on insecure mode just to keep it. Official docs discourage insecure mode in production. |
| Ask AI tab | Removed from the Code node. | Write JavaScript or Python in the Code tab. Code you already generated stays and keeps running. |
| Community nodes | What 3.0 changes | What to do |
|---|---|---|
| Unverified packages |
Default for N8N_UNVERIFIED_PACKAGES_ENABLED changes from true to false. You cannot install unverified nodes from npm, and installed ones stop loading. |
Set the variable to true, or move to verified packages. |
defaults.color |
Removed from the node description. Nodes still run. Font Awesome icons may show in a neutral color. | Node authors should remove the property and prefer a file icon. |
n8n-node dev |
Uses the official container image, because there is no runnable npm package. Needs Docker or Podman. | Node authors should follow the breaking-changes page for the dev loop. |
If you are targeting a later 3.x tag, also read that tag's GitHub release notes. Some 3.x pre-releases mention community package API version compatibility. That is not spelled out as a 3.0.0 breaking-change action, so this playbook does not treat it as a required pre-upgrade step.
Expressions, binary data, SSRF and other workflow behaviour
Walk the official list for things you actually use.
Removed helpers:
$getPairedItemis removed. Expressions that still call it fail. Use standard item linking instead:$('Node Name').item,$('Node Name').itemMatching()or$('Node Name').pairedItem().$evaluateExpression()in Code nodes, as in the table above.- Execute Sub-workflow: Local File and URL sources are removed. Import the sub-workflow and use the Database source, or paste its JSON.
Workflow behaviour changes (these nodes stay, but results can change):
- Always Output Data on multi-output nodes, for example IF and Switch: with the setting on, n8n now adds an empty item only when every output is empty. Previously each empty output got an empty item, so branches could run when they should not have. The Migration Report lists affected nodes. Review the setting.
- Gmail Trigger versions 1 to 1.3 keep loading, but run with version 1.4 behaviour: Max Emails per Poll applies to every poll (default 10, maximum 50); drafts are skipped unless you turn on Include Drafts; sent emails that are not in the inbox, and scheduled emails, no longer trigger the workflow. If you rely on sent or scheduled mail, official docs say to use a Schedule Trigger plus the Gmail Get Many operation.
- Webflow OAuth2: the Legacy toggle defaults to off. New credentials, and existing ones that never saved an explicit Legacy value, request Webflow v2 scopes the next time you reconnect them. Connected credentials keep working. If you still use the deprecated v1 Data API, turn Legacy on before you reconnect.
- Chat Trigger, in Using Response Nodes mode: WebSocket frames are now JSON objects with a
typefield (heartbeat,continue,error,message, orwith-buttons). A text reply is{ "type": "message", "text": "..." }. Custom clients must parse JSON. If you embed@n8n/chatyourself, update it to 1.31.0 or later. The hosted chat page loads a current widget. - Compression node: default
N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTESdrops from 2 GiB to 256 MiB, andN8N_COMPRESSION_NODE_MAX_ZIP_ENTRIESdrops from 5,000 to 1,000. Set the previous values (2147483648 and 5000) before you upgrade if you decompress archives above either limit.
Binary data:
- Do not rename
~/.n8n/binaryDatayourself before you take a backup. n8n renames it to~/.n8n/storageon first 3.0 start. If both directories exist, n8n stops rather than guessing. After the backup, remount at~/.n8n/storage, or setN8N_STORAGE_PATHto keep the old path. If both already exist, official docs say to move the contents intostorage, removebinaryData, then start n8n. - Instances still on
N8N_DEFAULT_BINARY_DATA_MODE=defaultswitch tofilesystemon upgrade. Setfilesystem,s3,azureordatabaseyourself, and check disk or bucket space. - In queue mode, the default is already
database. If you choosefilesystemin queue mode, every main process, worker and webhook processor that handles binary data must use the same shared volume at the same path.
SSRF, if N8N_SSRF_PROTECTION_ENABLED is true and N8N_SSRF_BLOCKED_IP_RANGES contains default. n8n 3.0 adds four ranges to the built-in default list:
| Range | Description |
|---|---|
::/128 |
IPv6 unspecified address |
100.64.0.0/10 |
Shared address space (carrier-grade NAT) |
2002::/16 |
6to4 |
64:ff9b::/96 |
NAT64 well-known prefix |
Requests to hosts in those ranges fail. If a workflow needs one of them, add the range to N8N_SSRF_ALLOWED_IP_RANGES, or the hostname to N8N_SSRF_ALLOWED_HOSTNAMES. Keep default in N8N_SSRF_BLOCKED_IP_RANGES. Official docs say that word stands for the whole built-in list, including localhost, private networks and the cloud metadata endpoint. Do not turn protection off to "make the upgrade work", and do not replace default with a short literal list unless you are prepared to list every built-in range yourself.
Also check, if you use them:
- Slack Trigger signing secrets, as in the table above.
- AI Agent v1 modes and Edit Image v1 / 1.1 (migrate from the report, then test image output).
- Chat Hub: add
chat-hubtoN8N_ENABLED_MODULESif you must keep it on 3.x. - Queue mode worker memory, now that manual executions always run on workers.
Advanced configuration checklist
Work these only if they apply to your instance. The Migration Report's Instance issues tab should flag several of them.
- External secrets (n8n Enterprise): the "Enable external secrets for project roles" setting is removed. Project editors and admins get external-secrets access in their projects by default. If you used that setting to restrict access, create custom project roles with the access you want before you upgrade. Otherwise every project editor and admin gains that access on upgrade.
N8N_DB_PING_TIMEOUTis removed. SetDB_PING_TIMEOUT_MSinstead.N8N_PRE_EXECUTE_ERROR_CREATES_EXECUTIONis removed. If aworkflow.preExecutehook throws, n8n never creates an execution record. There is no way to keep the old behaviour. If you relied on those failed records for alerting, move the alert to the hook itself.N8N_WORKFLOW_TAGS_DISABLEDis removed. Workflow tags are always on. n8n kept tag data while tags were off, so existing tags appear again after the upgrade. Remove the variable.
2. Backup and 3. Staging
2. Take a full backup
n8n says there is no direct rollback from 3.x to 2.x. Going back means restoring a backup. Take the backup after the audit, before anything writes 3.0 data.
n8n Cloud backup and staging
Cloud users cannot take or restore a full instance backup, and they cannot manage encryption keys. Key rotation is not available on Cloud.
Cloud workflow backups are created automatically. They contain workflows only, never credentials. Instance owners can download them from the Cloud console: Export, then Workflow backups. Some Cloud instances that n8n hosts on PostgreSQL cannot use this export yet; the console says to open a support ticket.
Use that workflow export as a copy of your graphs, not as a rollback plan. Official Cloud update docs say a major-version or database-migration update cannot be rolled back, and the instance restarts.
If you have a separate Cloud instance or a self-hosted copy for staging, test 3.x there first. Do not treat a Cloud workflow download as a way to stand up a complete twin of production.
Self-hosted backup
A complete self-hosted backup is more than a workflow export.
| Component | Include it when | Why it matters |
|---|---|---|
.n8n folder (n8n_data volume at /home/node/.n8n in Docker) |
Always |
Holds the config file with the master key, the SQLite file if you use it, and often filesystem binary or execution data. |
| PostgreSQL dump | You use Postgres | Workflows, credentials and execution history live here. Useless without the matching master key. |
Master key (config and/or N8N_ENCRYPTION_KEY) |
Always | Must be restored with the database as a pair. |
| Data encryption keys | After rotation, or after 3.0 | These live in the database, protected by the master key. They come back with a correct DB plus master-key restore. |
N8N_CUSTOM_EXTENSIONS directories |
You load custom nodes | A restore without them is missing nodes the workflows call. |
| External file storage (S3, Azure, or a custom path) | You configured it |
Binary or execution data may not be in .n8n. |
| Redis configuration, and a Redis snapshot if you take one | Queue mode | Redis holds pending jobs. Official docs: jobs lost from Redis are not rebuilt from PostgreSQL. |
| Compose, Helm values and environment files | Always | Database settings, webhook URL, proxy hops, storage mode, runner settings. |
| Runners image tag and auth token | External task runners | Runners are sidecars, not part of the workflow database. Their version must match n8n. |
For SQLite, stop n8n before you copy the .n8n folder. Copying the database file while n8n is writing can give you a corrupt backup. If you cannot stop it, use a tool that takes a consistent snapshot of the SQLite file.
The CLI export is useful, but it is not a full backup:
n8n export:workflow --backup --output=backups/workflows/
n8n export:credentials --backup --output=backups/credentials/
Those commands write workflows and credentials only. They do not include users, execution history, variables, instance settings or the encryption key. If you run this in Docker, copy the files out of the container, or bind-mount a host directory.
A --decrypted credential export is plain text. Official docs say to store it with the same care as the credentials and delete it after a restore. Prefer restoring with the same master key instead.
Store the backup somewhere the upgrade cannot overwrite. Confirm that you can see the master key before you go any further.
Prove the backup restores
A backup you have not restored is not proven.
- Restore it to a staging instance that production does not depend on, using the component table above.
- Restore the database and the matching master key together.
- Start n8n on the same 2.x version you backed up, before you try 3.x on that copy.
- Sign in, and confirm credentials decrypt.
- Open a published workflow and confirm its nodes, including community or custom nodes, load.
- Only then upgrade that staging copy to the 3.x tag you plan to run.
Cloud staging
If you have a second Cloud workspace, or a self-hosted copy built from a workflow export plus test credentials, upgrade that copy first. You cannot restore a full Cloud production instance onto staging yourself. Follow the Cloud update docs for the current screens, and only change production after the copy behaves.
Self-hosted staging
Restore the proven backup to staging. Use the same install style you will use in production: the same pinned image tag, database type, queue-mode layout, master key and storage mode.
A restored staging copy contains production credentials, because that is how official backup and restore work. Treat staging as sensitive. Lock it down. Do not leave it on a public URL with a weak password. Do not scatter --decrypted credential files onto a shared disk.
Upgrade staging to the 3.x tag you actually plan to run. Do not use an unpinned latest tag if you mean to move to 3.x.
Staging is complete when
Run the workflows that matter, with test data, and only mark staging done when all of these pass:
- The editor loads, and you can sign in.
- Credentials decrypt. A saved OAuth credential can still be used, and any credential you must reconnect (for example Webflow with the Legacy toggle) is tested on purpose.
- External secrets, if you use them, still resolve for the roles you expect.
- Published schedules: next run times match what you expect, including timezone.
- Webhooks:
N8N_WEBHOOK_URL(or the olderWEBHOOK_URLon versions before 2.35.0) andN8N_PROXY_HOPSproduce the public HTTPS URL you expect. Test calls return the same status and body, including workflows that use Respond to Webhook. If you sit behind a proxy, the proxy still forwardsX-Forwarded-For,X-Forwarded-HostandX-Forwarded-Proto. External subscriptions (GitHub, Slack and the like) still point at the staging URL you intend, not at production. - Code nodes finish inside the timeout you set.
- Files upload and download with the new storage path or bucket.
- Slack Trigger events still arrive after the signing secret is in place.
- Community and custom nodes load.
- In queue mode, a worker picks up a manual execution and a production-style webhook or schedule run. Worker memory looks healthy under that load.
- SSRF-sensitive HTTP calls to internal hosts still succeed if you rely on them.
Fix anything that fails here, on the copy, before you touch production.
4. Upgrade method
4. Upgrade method
Pick the path that matches how you run n8n. In every case: pause what you can, use the backup you already restored once, then upgrade.
n8n Cloud
Only an instance owner can change the version. In the Cloud console, open the instance version picker and choose the 3.x option n8n shows that day (during early access this was labelled along the lines of 3.0.0 Beta (early access)). n8n asks you to confirm a major version or database migration, and says you cannot roll these updates back. The instance restarts. Follow the Cloud update docs for the current screens.
Docker or Docker Compose (already self-hosted this way)
Pin a specific image tag, for example n8nio/n8n:3.4.1, or whatever current 3.x tag you have chosen after checking GitHub and the release notes. Do not rely on latest unless you have just confirmed what it points to.
For a Compose install, from the directory that holds the Compose file:
docker compose pull
docker compose down
docker compose up -d
If you set the version in .env (the one-line setup does this with N8N_VERSION), change that value to the tag you want, then pull and restart.
For a single docker run container, pull the pinned tag, stop and remove the old container, and start a new one with the same volume and environment, including the master key and database settings. The Install with Docker page has the exact docker pull / docker stop / docker rm / docker run sequence. Keep the existing n8n_data volume.
If you used n8n's one-line setup, the documented upgrade is:
curl -fsSL https://get.n8n.io | sh -s -- --upgrade
That command updates the version lines in .env and leaves your data in place. To pin a version, use the script's --version flag as documented on the one-line setup page.
npm or npx (not a 3.0 upgrade path)
Do not run npm update -g n8n or npx n8n to get to 3.0. Official docs say 3.0 does not support those installs and does not publish a runnable package.
Stay on your current 2.x npm install until you have a Docker-based copy of the same data:
- Complete the audit and the full backup, including the
.n8nfolder and the master key. - Install Docker, including the Compose v2 plugin.
- Create a new Docker-based instance with the official one-line setup, or with your own Compose file and Postgres if this is a production box. The one-line command is
curl -fsSL https://get.n8n.io | sh. Review the script first if you prefer not to pipe tosh. - Do not point that new Docker instance at a live database the npm process is still using. Official docs support several n8n processes on one database only in queue mode (and, on Enterprise, multi-main), and only when every process runs the same n8n version and shares Redis and the master key. An npm 2.x process and a new Docker process are not that setup. Restore the backup onto the new Docker instance as a copy, or stop the npm process first and only then start Docker against that data.
- Confirm the Docker instance runs on 2.x and decrypts credentials.
- Then upgrade that Docker instance to 3.x, starting with staging, as above.
An existing 2.x npm install can keep running until you switch. It is not a supported way to arrive at 3.0.
Queue mode
These parts are not the same thing, and they do not all share the database.
| Piece | Role | Shares the workflow database? |
|---|---|---|
| Main process | Receives triggers and webhooks, and creates executions. In a simple setup it may also serve the editor. | Yes |
| Workers | Run the executions, including manual runs in 3.0. | Yes |
| Webhook processors | Optional extra processes for webhook HTTP. | Yes |
| PostgreSQL (or SQLite, which official docs do not recommend for queue mode) | Stores workflows, credentials and execution history. | This is the database |
| Redis | Message broker for the execution queue. Pending jobs live here, not in PostgreSQL. | No |
External task runners (n8nio/runners sidecars) |
Run Code node (and Python) tasks. Official docs: each worker needs its own sidecar, and the runners image version must match n8n. They authenticate to the task broker with N8N_RUNNERS_AUTH_TOKEN. |
No |
Main processes, workers and webhook processors must use the same n8n version, the same master key, and the same Redis and database settings. Do not run mixed n8n versions during the cutover. Official update docs say the migration lock on PostgreSQL does not make mixed versions safe, and does not mean the upgrade is zero-downtime.
Because manual executions always run on workers in 3.0, recheck worker count and memory. The old OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS variable is gone. After 3.0, a main process no longer runs those manual jobs, so the older "give the main instance its own runners sidecar if offload is off" case does not apply in the same way. Each worker that runs Code nodes still needs a matching runners sidecar if you use external mode. Internal runner mode is deprecated from 3.0.
Queue-mode cutover:
| Step | Action |
|---|---|
| 1 | Take the full backup, including the database and the master key. Confirm the backup has been restored once on staging. |
| 2 |
Confirm every main, worker and webhook processor already uses the same N8N_ENCRYPTION_KEY. |
| 3 |
Note the newest row in the migrations table, for example SELECT name FROM migrations ORDER BY id DESC LIMIT 1; (adjust the name if you use DB_TABLE_PREFIX or a custom schema). |
| 4 |
Pin the same n8n image tag on every main, worker and webhook processor. If you use external runners, pin the matching n8nio/runners tag on every sidecar. |
| 5 | Stop every process: mains, workers, webhook processors and runners. |
| 6 | Upgrade them all to that same tag, then start them so they come up together. |
| 7 | Confirm a worker picks up a manual execution and a production-style run, and that credentials still decrypt. |
If you use Helm, check whether the target n8n version needs a newer chart version. The chart version is separate from the n8n version.
After the upgrade, rollback and checklist
5. Post-upgrade checks
Right after production comes back:
- The editor loads, and you can sign in.
- Credentials still decrypt. If they do not, stop and restore. Do not rotate keys or rewrite credentials until you know the master key is in place.
- A credential that uses OAuth still works, or you can refresh it. If you reconnect a Webflow credential, check the Legacy toggle first.
- External secrets, if you use them, still resolve, and project roles match what you intended after the settings change.
- Published workflows that should be live are active. Check anything the report migrated, and every Slack Trigger, schedule and webhook you rely on.
- Webhooks: the public URL, TLS,
N8N_PROXY_HOPSand Respond to Webhook behaviour still match production traffic. Confirm external services still have the right subscription URL. - Community and custom nodes load.
- In queue mode, a worker picks up a job, including a manual run.
- If you use Chat Hub and still need it, confirm
chat-hubis inN8N_ENABLED_MODULES.
For the first week, check failed executions every day, keep an alert that reaches a person, and do not delete the pre-upgrade backup.
6. Rollback
For a 3.0 cutover, the official way back to 2.x is to restore the pre-upgrade backup. Changing the image tag back does not undo this upgrade. Encryption-key rotation writes a format that older n8n versions cannot read, and there is no official tool to convert that data back.
Do not use n8n db:revert as a substitute for that restore. The general update docs describe db:revert for ordinary updates. Official 3.0 and encryption-key docs say the recovery path is the backup you took first.
Consider rolling back if, after the upgrade, credentials will not decrypt, the instance will not start (for example because both binaryData and storage exist), published workflows that keep the business running will not activate, or workers will not pick up jobs and you cannot fix that quickly on 3.x.
Rollback boundary: a restore discards work done after the backup, as official update docs state. Side effects outside n8n, such as payments already taken, emails already sent, or webhooks already delivered, are not reversed. That is why the staging rehearsal matters, and why you should keep the backup until the first week is clean.
To roll back a self-hosted instance:
- Stop every n8n process: mains, workers, webhook processors and external task runners.
- Restore the
.n8nfolder, custom node directories, and external file storage to their pre-upgrade state. - Restore the PostgreSQL backup if you use PostgreSQL. Keep n8n stopped while you restore.
- Restore the matching master key and the rest of the pre-upgrade environment: database settings,
N8N_WEBHOOK_URL, proxy hops, storage paths, Redis settings, runner settings. - If you have a Redis snapshot from before the upgrade, restore it too. If you do not, expect in-flight queued jobs to be gone. Official docs say n8n does not rebuild those jobs from PostgreSQL.
- Start every process on the older n8n version, with matching runner images if you use them.
- Confirm you can sign in, credentials decrypt, and critical workflows are active.
Cloud production cannot be rolled back by restoring a full snapshot. Official Cloud update docs say you cannot roll back a major-version or database-migration update. Keep the workflow export, and contact n8n support if you need help after a failed Cloud major-version change.
Checklist
Copy this and tick it against your instance.
- [ ] Recorded the current n8n version, install method, image tags, and (if you want a precise record) image digests.
- [ ] Inventoried mains, workers, webhook processors, runners, Postgres, Redis, storage, webhook URL and proxy settings.
- [ ] If on 1.x, moved to 2.x first.
- [ ] Updated to the latest 2.x so the Migration Report is current.
- [ ] Opened Settings > Migration Report and worked findings in impact order.
- [ ] Reviewed automatic migrations, tested them, and published only after a pass.
- [ ] Checked Code timeouts,
$evaluateExpression()only if insecure mode is on, and$getPairedItem. - [ ] Checked community packages, custom nodes, Slack secrets, binary storage and
N8N_STORAGE_PATH. - [ ] Reviewed IF/Switch Always Output Data, Gmail Trigger, Webflow Legacy, Chat Trigger clients and Compression limits, if you use them.
- [ ] Worked the advanced list: external secrets roles,
DB_PING_TIMEOUT_MS, pre-execute hook behaviour, and workflow tags. - [ ] Confirmed npm / npx instances have a Docker plan, and will not share a live database with the old process.
- [ ] Cloud: downloaded a workflow backup (workflows only) if the console offers it.
- [ ] Self-hosted: took a full backup of
.n8n, the database, the master key, custom nodes, external storage and env files. - [ ] Restored that backup once on staging and confirmed credentials decrypt on the original 2.x version, then upgraded the copy.
- [ ] Staging met the completion checks for schedules, webhooks, Code nodes, files, Slack, credentials and workers.
- [ ] Rechecked today's release notes to see whether 3.x is still early access.
- [ ] Production cut over with the same pinned tag on every n8n process, and matching runners if you use them.
- [ ] Confirmed credentials decrypt and critical workflows are active.
- [ ] Kept the pre-upgrade backup through the first week of failed-execution checks.
Need help with a large n8n estate?
If you have a lot of workflows and want a careful path to n8n 3.0, without breaking the ones that are already running, we can work through this with you. That includes the Migration Report, the backup, a staging rehearsal and the production cutover.
Book a 1-to-1 with Octacer: https://calendly.com/octacer/octacer-1-to-1
Sources
- v3.0 breaking changes, n8n
- v3.0 migration tool, n8n
- Introducing n8n 3.0, n8n
- How do I prepare for n8n 3.0?, n8n
- Rotate encryption keys, n8n
- Back up and restore, n8n
- Download workflows (n8n Cloud), n8n
- Update n8n, n8n
- Enable queue mode, n8n
- Handle binary data, n8n
- Set up task runners, n8n
- Configure webhook URLs with reverse proxy, n8n
- Update your n8n Cloud version, n8n
- Install with Docker, n8n
- One-line setup, n8n
- GitHub release n8n@3.4.1, GitHub
Take this playbook with you
Free PDF of this playbook. Unlock it with your email.
Keep going
More playbooks
Want it running on your stack?
We implement this playbook for clients, tailored to your stack, your data, and your team's workflow, and handed over documented.