Steps
Copy your data first
Stop n8n and copy the
.n8nfolder (or dump Postgres). In our test n8n migrated the database on the first start without asking, and nothing stopped the old version from running on it afterwards.Start the new version once and watch the log
You should see
Migrations in progress, please do NOT stop the process.Don't stop it. Ours finished 172 migrations from 1.123.86 to 2.43.7 in about 5 seconds.Run your main workflows by hand
Open each important workflow and run it once. In our test the upgrade kept everything, but three kinds of node failed only at run time.
Match each error to its setting
Unrecognized node type: n8n-nodes-base.executeCommandneedsNODES_EXCLUDE=[].access to env vars deniedneedsN8N_BLOCK_ENV_ACCESS_IN_NODE=false.Access to the file is not allowed.needsN8N_RESTRICT_FILE_ACCESS_TOor the~/.n8n-filesfolder.Replace legacy nodes
A workflow starting with the old Start node failed with
Missing node to start execution. Swap it for a Manual Trigger. Old Function nodes still ran, but move them to Code nodes when you can.
What broke when we upgraded n8n 1.x to 2.x
On 22 October 2026 we installed n8n 1.123.86 (the last 1.x line) with SQLite, imported 4 workflows and a credential, ran them, then started n8n 2.43.7 on the same folder and ran them again. Then we tried the fixes, a downgrade and a fresh import: 20 runs in all. Each row is what we saw.
| What we did | What n8n showed | Fix |
|---|---|---|
| Started n8n 2.43.7 on the folder a 1.123.86 install had used (SQLite, 4 workflows, 1 credential) | Migrations in progress, please do NOT stop the process., then 172 migrations in about 5 seconds. All 4 workflows were still there. | Nothing to fix, but copy the .n8n folder (or your Postgres database) first and don't stop n8n while this message is up. |
| Workflow with an Execute Command node | Unrecognized node type: n8n-nodes-base.executeCommand | n8n 2.x hides Execute Command and Local File Trigger by default. Setting NODES_EXCLUDE=[] brought it back and the same workflow printed its output again. Only do this if you trust everyone who can edit workflows. |
Code node reading $env.HOME | access to env vars denied | Set N8N_BLOCK_ENV_ACCESS_IN_NODE=false; the same Code node returned the value. Safer: pass the value in through a credential or an Edit Fields node. |
Read/Write Files from Disk reading /tmp/up49/in.txt (worked on 1.123.86) | Access to the file is not allowed. | Move the file into ~/.n8n-files or set N8N_RESTRICT_FILE_ACCESS_TO to its folder. With N8N_RESTRICT_FILE_ACCESS_TO=/tmp/up49 it read the file again. |
Code node with require('os') | Module 'os' is disallowed [line 1] on 2.43.7 (on 1.123.86: Cannot find module 'os') | Not new in 2.x, only the wording changed. Allow the module with NODE_FUNCTION_ALLOW_BUILTIN=os (several: crypto,os); that worked. |
Old workflow that starts with the legacy Start node (n8n-nodes-base.start) | Ran on 1.123.86. On 2.43.7: Missing node to start execution | The legacy Start node isn't in n8n 2.43.7. Replace it with a Manual Trigger (or the trigger the workflow really needs). |
Old Function node (n8n-nodes-base.function) | Ran fine on both versions | Not a blocker today, but move it to a Code node when you touch the workflow. |
| Downgrade: started 1.123.86 again on the migrated folder | No error. /healthz returned 200 and a workflow ran | n8n didn't stop the old version, but it's running on a database built for 2.x. To go back, restore the copy you made before the upgrade instead. |
Fresh 2.43.7 folder, imported the export:workflow and export:credentials files from 1.123.86 | Both imports succeeded (4 workflows, 1 credential) | Credentials stay encrypted with the old key. Bring the old N8N_ENCRYPTION_KEY too, or you get Credentials could not be decrypted. |
The upgrade itself worked; old workflows broke
The database migration was the easy part: one start, 172 migrations, about 5 seconds, every workflow kept. n8n also tightened the settings file to 0600 on its own and printed a deprecation warning that ~/.n8n/binaryData will be renamed to storage in v3. What failed were workflows that used things 2.x now blocks by default: the Execute Command node, $env in a Code node, and reading files outside ~/.n8n-files. All three ran green on 1.123.86 and failed on 2.43.7 with no change to the workflow. Each came back with one setting:
# n8n 2.x: bring back 1.x behaviour, one setting per problem
NODES_EXCLUDE=[] # Execute Command + Local File Trigger
N8N_BLOCK_ENV_ACCESS_IN_NODE=false # $env in Code nodes and expressions
N8N_RESTRICT_FILE_ACCESS_TO=/data/files # Read/Write Files outside ~/.n8n-files
NODE_FUNCTION_ALLOW_BUILTIN=crypto,os # require() of Node built-ins in CodeEach of these was turned off on purpose, for security. Turn on only the one you need, and only on an instance where everyone who can edit workflows is trusted.
Back up before you update
Nothing in our upgrade asked for confirmation, and the old version later started on the migrated database without any warning, so a copy taken before the update is the only clean way back:
# Before upgrading (SQLite / npm install): copy the whole folder
cp -a ~/.n8n ~/.n8n-backup-$(date +%F)
# Also keep plain exports (they still need the same encryption key)
n8n export:workflow --all --output=workflows.json
n8n export:credentials --all --output=credentials.json
# Docker: stop the container, then copy the volume
docker compose stop n8n
docker run --rm -v n8n_data:/data -v "$PWD":/backup alpine \
tar czf /backup/n8n-data-$(date +%F).tgz -C /data .The exports are a second safety net, not a replacement: credentials in them are still encrypted, so you need the same N8N_ENCRYPTION_KEY to use them on another instance. If you move servers, read n8n credentials could not be decrypted first.
Good to know
- Locked out of the editor after an update? n8n forgot password or locked out: reset the owner account.
- Community node missing or
Unrecognized node type? n8n community nodes: install errors and missing packages. - Workflows still marked active but not running after an upgrade or restore? See n8n workflow could not be activated.
- Only
$envbroke? All 13 tests, the safe fix and two silent traps are in n8n access to env vars denied. - If n8n won't start at all after the update (port in use, Node version, permissions on
.n8n), see n8n won't start: 11 self-hosting errors. - Webhooks that answer 404 after the update usually need the workflow published again: n8n webhook not working. Schedules that stopped: n8n Schedule Trigger not firing.
- File errors in the middle of a workflow: n8n binary data not found.
What we didn't test
- Postgres, Docker images, queue mode and upgrades from versions older than 1.123. The Docker backup lines above follow the usual volume layout, not a run of ours.
- Community nodes, the Python Code node, and every node n8n changed in 2.0. Check n8n's own 2.0 breaking-changes list for those.
Start from a working agent
FAQ
Why does n8n say "Unrecognized node type: n8n-nodes-base.executeCommand" after updating?
n8n 2.x excludes the Execute Command and Local File Trigger nodes by default. In our test, setting NODES_EXCLUDE=[] made the same workflow run again. Only do that if you trust everyone who can edit workflows.
Why does my Code node say "access to env vars denied" after the n8n 2.0 update?
n8n 2.x blocks $env in Code nodes and expressions by default. Setting N8N_BLOCK_ENV_ACCESS_IN_NODE=false brought the value back in our test. A credential or an Edit Fields node is the safer place for the value.
Is it safe to upgrade n8n from 1.x to 2.x?
The database part was: n8n 2.43.7 ran 172 migrations on a 1.123.86 SQLite database in about 5 seconds and kept all workflows. Back up first anyway, then run your important workflows by hand, because nodes that 2.x blocks by default only fail when they run.
Can I downgrade n8n after upgrading?
In our test n8n 1.123.86 started on the migrated database with no error and ran a workflow, so nothing stops you, but it is running on a database built for the newer version. Restore the copy you took before the upgrade instead.
Why does Read/Write Files from Disk say "Access to the file is not allowed" after upgrading?
In n8n 2.43.7 the node only reaches ~/.n8n-files by default. Move the file there or set N8N_RESTRICT_FILE_ACCESS_TO to its folder; both worked in our tests.
Related guides
- n8n Execute Command and Read/Write Files errors: 61 real runs, fixed
- n8n community nodes: Unrecognized node type and install errors, tested
- n8n 'access to env vars denied'? 13 tests and the fix
- n8n error workflow not triggering? 17 tests of the Error Trigger
- n8n Merge node not working after an IF? 31 tests of what really happens
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes