Publish fails with Workflow could not be published: Unrecognized node type: n8n-nodes-base.executeCommand, a parent workflow stops with Workflow is not active and cannot be executed, or a Code node that read $env now fails. Each of these appears after an upgrade from n8n 1.x to 2.x, and each points to one 2.0 default rather than to damaged workflows.
Match the exact message to its change in the table below, change only that setting, and restart the services that load it. The deciding evidence is the full error text, the node it names, and the n8n version on the main instance and every worker.
We checked every platform claim below against n8n documentation on 2026-11-13. App Rescue Desk is independent and is not affiliated with n8n.
Upgrading from 2.x to 3.0 instead? That is a separate, one-way upgrade that removes the Function, Cron and Item Lists nodes, among other changes; see n8n 3.0 breaking changes and their fixes. Coming from 1.x, clear the 2.0 changes below first.
TL;DR
- Already upgraded: start from the error text and Executions since the upgrade. Still on 1.x: run Settings > Migration Report first.
- Match the exact symptom to one of the n8n 2.0 breaking changes before changing configuration.
- For Execute Command, remove only that node from
NODES_EXCLUDE; do not enable every excluded node. - Treat an empty Executions list as inconclusive until you check the workflow’s execution-saving settings.
- If several workflows stopped or live events are missing, preserve logs and external records before retrying anything.
Start with what n8n 2.0 changed in your instance, not the full list
Treat an n8n upgrade to v2 as two inventories: workflow compatibility and runtime configuration. The official v2.0 Migration Report is available under Settings > Migration Report to global admins. It separates Workflow Issues from Instance Issues and currently assigns Critical, Medium, or Low severity.
Read the Migration Report in order
- Record every Critical workflow and instance issue.
- Open each affected workflow from the report.
- Record the affected node, published state, last execution, and last update.
- Review Medium issues for behavior changes that may not throw an error.
- Refresh the report after each controlled correction.
Next, filter Executions from the upgrade timestamp onward. Look for Failed, Running, and Waiting runs, then compare expected schedules or sender events with the executions that exist. Check Save failed production executions and Save successful production executions in Workflow settings before using an empty list as proof that nothing ran.
What the report cannot prove
A clean report does not prove that a redeploy preserved environment variables, image tags, runner connectivity, or file mounts. Compare the exact image tag for the main instance, every worker, and every runner. The official n8n v2 breaking changes guidance recommends pinning a specific version such as 2.0.0 instead of following moving stable or beta tags.
Error-to-change table: which message points to which 2.0 default
Use the official breaking-change list as a reference, but diagnose from the observed symptom.
| Observed symptom | Related 2.0 change | Narrow action | Risk of a broad fix |
|---|---|---|---|
| Publish reports the Execute Command node type as unrecognized | Execute Command and Local File Trigger are excluded by default | Allow only Execute Command | NODES_EXCLUDE='[]' also enables Local File Trigger |
Parent run fails with Workflow is not active and cannot be executed |
Publish replaced Activate; a sub-workflow with an Execute Sub-workflow Trigger must be published | Publish the child workflow, then rerun one parent execution | Publishing an unreviewed child puts its current draft live |
| Code cannot read an environment value | Code-node environment access changed | Inspect the effective setting; move secrets to credentials | Globally allowing environment access can expose secrets |
| Python Code fails after upgrade | Pyodide was removed | Use native Python with an external task runner | Disabling isolation exposes the n8n process |
$evaluateExpression() returns null or errors |
Secure task runners block evaluation of code strings | Use JavaScript or an Edit Fields node | Insecure runner mode removes security controls |
| A workflow still contains Start | Start was removed | Use Manual Trigger or Execute Sub-workflow Trigger | Replacing every trigger can change execution semantics |
| Configuration values parse differently | n8n upgraded dotenv |
Quote values containing backticks; inspect # comments |
Rewriting the complete environment can change unrelated settings |
These matches narrow the investigation. They do not prove that no second change occurred during the deployment.
Workflow will not publish: Unrecognized node type and NODES_EXCLUDE
The quoted publish error comes from an n8n Community report involving 2.2.3, Docker, and queue mode.
Confirm the node type from the publish error
Record the workflow ID, n8n version, image tag, timestamp, and complete publish error. Inspect the workflow for an Execute Command node. Do not delete the node until you know what command it runs and what later nodes expect.
Open one node, not all of them
The current node environment-variable reference lists this default:
["n8n-nodes-base.executeCommand", "n8n-nodes-base.localFileTrigger"]
To keep Local File Trigger excluded while allowing Execute Command, use a JSON array containing only Local File Trigger. For a Docker Compose mapping:
NODES_EXCLUDE: '["n8n-nodes-base.localFileTrigger"]'
Do not use [] unless you have reviewed both nodes. Execute Command runs host commands, so leave it disabled when untrusted users can edit workflows. Removing the node or moving the command behind a narrowly authorized service is safer when shell access is unnecessary.
Apply the setting to main and worker
In queue mode, the main instance validates publication while workers execute workflows. Apply the same node-loading configuration to the main service and every worker, then restart those services. Confirm that all services use the same pinned n8n version before publishing and running one side-effect-safe test.
Code node broke: environment variables, task runners, and Python
Environment variable access is blocked
The 2.0 guide says access is blocked by default (N8N_BLOCK_ENV_ACCESS_IN_NODE=true). The environment-variable reference still lists false; read the effective value in your deployment.
Export or inspect workflows and search Code nodes for $env access. Treat exports as sensitive because they can contain endpoints, expressions, and business logic. Setting N8N_BLOCK_ENV_ACCESS_IN_NODE=false can restore compatibility, but it expands what workflow editors can read. The durable fix is to move sensitive values into credentials and pass only required non-secret values to Code.
Python now requires an external task runner
n8n 2.0 removed the Pyodide implementation. Native Python Code nodes require external task runners and do not support _input or dot notation from the old implementation. Python tools receive the agent input through _query.
For Docker, use the separate n8nio/runners image. The task-runner setup documentation requires its version to match n8nio/n8n. Each queue worker needs its own runner sidecar. The main instance also needs one when it handles manual executions. Task runners are on by default in 2.x; Python still needs external mode.
Do not keep the insecure-mode shortcut
Replace $evaluateExpression() with direct JavaScript or resolve the expression in Edit Fields before Code. N8N_RUNNERS_INSECURE_MODE=true is a discouraged compatibility workaround, not a production fix.
Silent failures: sub-workflow output, OAuth callbacks, and file paths
Sub-workflow returns a different shape
A child that waits more than 65 seconds, pauses for a webhook or form, or uses human-in-the-loop behavior now returns its final output to the parent. In 1.x, the parent could receive the child’s original input instead. Compare the child input, final child output, and first parent node after Execute Sub-workflow. A successful status does not prove that downstream field mappings remain correct.
Replace Start with Manual Trigger for manual runs or Execute Sub-workflow Trigger for called workflows. Publish every changed production parent workflow because saved drafts do not become live until Publish. If the parent fails with Workflow is not active and cannot be executed, publish the child workflow that holds the Execute Sub-workflow Trigger; an n8n Community report on 2.0.2 confirms this fix, and the 2.0 guide tells you to activate a workflow that replaces Start with that trigger.
Check callbacks, files, and trigger state
The 2.0 migration note changed OAuth callback authentication, restricted file-node access to ~/.n8n-files by default, and removed in-memory binary-data mode. Retest OAuth connections, inspect the exact file path and mount visible inside the container, and confirm whether binary data uses filesystem, database, or S3 storage. Check available disk space before replaying file-heavy work.
If webhook requests stopped reaching executions, follow the separate n8n production webhook troubleshooting checklist for Production URL, Publish, proxy, and caller-log checks. If only OpenAI nodes fail after the upgrade, first separate a deprecated model from an n8n migration failure.
Before you roll back or re-enable everything: protect production data
Back up the database, encryption-key material, deployment manifest, and persistent n8n volume before a rollback. Verify that you can restore the backup. Do not point an older application image at a database modified by a newer version unless the release documentation and a restore test support that path.
MySQL and MariaDB are no longer supported as n8n storage backends in 2.0. Use n8n’s documented migration tooling to move to PostgreSQL or SQLite before upgrading. This change does not remove the MySQL workflow node.
Find events missed during the upgrade
Define the upgrade window in UTC. Match sender-side delivery records against n8n Executions by event ID and timestamp. Stripe exposes delivery status and undelivered events in its webhook recovery documentation. Supabase Database Webhooks retain call history in the net schema according to its Database Webhooks documentation.
An HTTP failure does not prove that no side effect occurred. Check destination records, emails, payments, and API responses before replaying an event.
Replay only after idempotency is confirmed
- Store or locate the sender’s event ID.
- Check whether that ID already produced the intended record or action.
- Add a persistent uniqueness or processed-event check if none exists.
- Replay one low-risk event.
- Confirm exactly one intended result before expanding the set.
Use this decision boundary:
- One workflow and one deterministic error: change one setting, restart only required services, test, then publish.
- Several workflows with the same error: investigate shared configuration, image versions, and workers before editing workflows.
- Missing events or uncertain writes: reconcile external state before any retry.
- Database migration or rollback: require a tested backup and controlled maintenance plan.
An article cannot determine whether unseen writes are safe to repeat across several live workflows. For instance-wide configuration drift, missed events, or uncertain production data, use the n8n workflow diagnosis and repair service. Scope and price are agreed before anything in production changes.