Debugging failed n8n executions in production

Find out why a production n8n run failed by reading the execution list, the saved run data and the failing node, then re-running safely with pinned data. Plan saved data settings before the failure happens.

On this page

How to debug failed n8n executions in production

A failed production run is diagnosed from three things: the execution list, the saved run data for that execution, and the failing node. The saved run data only helps if execution data was kept when the run happened, so the diagnosis depends on settings chosen before the failure, not after it. Teams need this capability the first time a scheduled workflow fails overnight or a webhook caller receives an error and nobody on the operations side can explain why. If the run data was not saved, the evidence left is the error message and whatever the target system logged, which is often not enough to reproduce the problem.

Start in the execution list and filter for the failed run, then open it and find the node that stopped the run. Read that node's input and its error output. Compare the input with the last successful execution of the same workflow to see what changed, such as an unexpected payload shape, an expired credential or a changed API response. Confirm in your own environment how long n8n keeps execution data in its database, because pruning removes older runs and ends the investigation for them. In queue mode, also confirm which process handled the run, since the main instance and the workers are separate processes that both read and write the same PostgreSQL database.

Once you have the failing input, you can load the failed execution into the editor and re-run the workflow with pinned data, so the failing node receives the same input without calling the live system again. Confirm before an incident which of these steps your edition includes, using the current n8n pricing page and your license terms. Also agree on who may view saved execution data, because it can contain personal or customer information. Apply the fix and test it in a non-production instance before you re-enable the production workflow.

Debugging options and what each one fits

This table compares five ways to find out why a production execution failed, from the execution list through to logs. Read each row for when it fits and what it needs, starting with the execution list because the other paths depend on its saved data. The main takeaway is that most debugging depends on execution data being saved before the failure happens.

Debugging pathWhen it fitsWhat it needsEdition note
Execution list and failing nodeFirst pass to find the failed run and the node and error message that stopped it.Saved execution data for the workflow, so inputs and outputs exist to inspect.Confirm retention and visibility settings for your edition before relying on them.
Load failed execution into editorStep through what each node received to see where the data went wrong.Editor access to the workflow and an execution that has saved data.Confirm which roles can open past executions. SSO sign-in is limited to Business and Enterprise plans.
Re-run with pinned dataTest a fix on the exact input that failed without calling live systems again.The failed run's data pinned in a test copy, with non-production credentials or safe endpoints.Confirm pinning behavior on your version before depending on it for a fix.
Error workflowCatch new production failures as they happen and capture details for triage.An error workflow built beforehand with the Error Trigger and an alert destination.Set up before the incident. It captures new failures and does not reopen past runs.
Logs for runs that cannot be reopenedInvestigate runs whose execution data is missing or a process that crashed.Log levels and outputs configured, plus a place to collect container or process logs.Log streaming to external tools is limited to Business and Enterprise plans.

Setting up a debugging workflow for production runs

This sequence makes failed production runs inspectable and repeatable by setting the license position, saved data, access, and encryption conditions first. Each step ends with a check, so you can confirm the setup works in a non-production copy before an incident depends on it.

  1. Confirm edition and license terms

    The platform owner confirms which n8n edition runs in production and what it includes before any workflow depends on it. n8n's pricing page lists SSO and LDAP, environments with Git and log streaming only on the Business and Enterprise plans, so check that list with n8n for the features you plan to use. Confirm that your internal use fits the Sustainable Use License, and that any Enterprise files you deploy are covered by a valid Enterprise License. Done when the edition, license position and required features are recorded and signed off by a named owner.

  2. Enable saved execution data for production

    Set saved execution data on every production workflow so failed runs keep their inputs and node outputs. The workflow owner and platform team make this change together, since saved runs contain business data and may contain personal data. Ask the platform team to confirm where saved run data is stored and how long it is kept under your retention rules, and check the retention period against n8n's documentation for your version. Check: trigger a sample run under production-like conditions, open its execution list, and confirm the failed run shows node-level data.

  3. Define who can open executions

    Map roles so on-call engineers can open executions and read node data, while a smaller group can view or edit credentials. Use the roles and projects your edition provides, and confirm which access controls are available on your plan before you write the policy. Treat execution data as access to the business payloads it contains, since a failed run can expose request bodies, customer fields or API responses. Check: sign in as one user from each role and confirm each can see only the workflows and credentials assigned to it.

  4. Verify the encryption key in queue mode

    In queue mode, the main instance, every worker and every webhook processor must share the same encryption key. Without that match, workers cannot decrypt credentials stored in the database, and runs fail with errors that point away from the real cause. Compare the key across processes through your deployment's secret store or configuration source, and never paste the value into tickets or chat. Check: a workflow that uses a stored credential completes on a worker, and a webhook-triggered run completes through a webhook processor.

  5. Run a deliberate test failure

    On a non-production instance, build a short test workflow that fails at a known node, for example by calling an endpoint that returns an error or passing input the node rejects. Trigger it the way production starts the workflow, including through a webhook if that is how production runs, so the execution path matches. Record the expected error text before you run it. Check: the run appears as failed in the execution list and the error names the node you expected.

  6. Open and inspect the failed execution

    Open the failed run from the execution list and step through each node's input and output, noting the error and the item that caused it. Confirm the data you need is present, including any binary data, and that sensitive fields appear only as your access policy allows. Record any gaps, then adjust the saved data settings before you rely on the setup. Check: a reviewer who did not build the test workflow can name the failing node and the cause using only the saved run.

  7. Re-run the failure with pinned data

    Copy the workflow to a non-production instance, then load the failed execution into the editor and pin its input data to the node that failed. Mask or remove personal data from pinned samples before sharing the copy with anyone outside the on-call group. Apply the fix in the copy and run it again against the pinned data. Check: the copy completes, the fix is recorded with the original execution ID, and the production run remains unchanged for audit.

How a failed production run moves from alert to fix

The run starts at a production trigger or webhook, which the main instance accepts and queues through Redis for a worker to pick up. The worker reads and writes workflow data in PostgreSQL, so the failed execution is stored there. The operator finds it in the execution list, loads it into the editor and pins the data that caused the failure. The fix is then tested by re-running the pinned data in a test copy of the workflow before the change is promoted to production.

Queue mode path from a failed production run to a tested fix.

Protecting execution data while you debug

Saved executions and pinned data are useful for debugging, but they are also copies of production activity. The cards below cover what that data can contain, who can see it, how pinned data is kept clean, and why the encryption key must stay consistent across every process.

Execution data holds personal and secret values

Saved execution data stores the input and output of each node, so a failed run can include customer names, email addresses, record IDs, and tokens that one node passed to the next. Before you enable saving for a production workflow, decide which nodes and which fields are worth keeping. Check whether your saving settings store successful runs, failed runs, or both, and confirm how long your instance keeps them.

Limit execution access by role and project

Anyone who can open an execution can usually read the data inside it, so the people who debug production runs should be a deliberate group, not every builder on the instance. Map who needs execution history to the roles and projects that own each workflow, and remove broad access from shared accounts. Review this mapping whenever a team changes ownership of a workflow.

Keep live credentials out of pinned data

Pinned data replaces a node's live output with fixed sample data so you can re-run a workflow safely. The risk is that a copy of a production record or an API response with a bearer token gets pinned, saved, and then shared with a colleague or exported in a workflow file. Replace pinned samples with redacted or synthetic records before you save or share a workflow.

Use the same encryption key everywhere

n8n encrypts stored credentials with an encryption key from the main instance, and queue mode requires that same key on every worker and webhook processor so they can read credentials. A worker started with a different key can fail executions that look like application errors. Record where the key is stored, confirm each process uses the same value after every change, and include it in your backup plan.

Queue mode docs

Back up the key with the data

Execution history, credentials, and workflows are only recoverable if the encryption key is recoverable with them. A database dump without its matching key yields records that n8n cannot decrypt after a restore. Store the key in a secrets manager with access controls, test a restore into a separate environment, and confirm the restored instance can open a stored credential.

Check license terms before sharing debug data

The Sustainable Use License limits use to your own internal business purposes, so copying production execution data into a vendor support case or a partner's environment should be reviewed against your own agreements and data rules. Confirm with your legal and privacy teams what may leave your environment. Files marked with .ee also fall under the separate Enterprise License.

License text

Questions buyers ask before debugging n8n in production

How much effort does debugging failed n8n executions take?

Effort depends mostly on how the instance runs and what it saves. A single-process instance with a small number of workflows is usually a shorter exercise than a queue mode setup, where the main instance passes executions through Redis to workers that read and write PostgreSQL. Other drivers include how many workflows call external systems, how long failed run data must be kept, whether execution payloads contain personal or health data that needs special handling, and whether you need a test copy of the instance to re-run failures safely. No general figure applies, so ask for a written scope that lists the instance topology, the workflows in scope and the data policy. Ask the quote to separate one-time work, such as configuring saved data settings and writing a debugging runbook, from any recurring review.

Can our own team debug n8n production failures without outside help?

Often yes, if one or two people own the instance and have time to learn the execution views. Your team can open the execution list, load a failed run into the editor and inspect node inputs and outputs without outside help, provided the saved data settings already capture what they need. Outside help is most useful when failures are intermittent, span several workers, depend on credentials or the encryption key staying consistent across processes, or need a repeatable method for re-running failures without side effects. Ask whether engineers will work alongside you on the first few investigations and document each step, so the method stays with your team after the engagement ends.

How long does a first debugging setup take for n8n?

No duration applies in general, so the answer depends on scope. The main variables are the number of workflows in scope, whether the instance runs in queue mode, how many environments exist, whether saved data must be reviewed with compliance or security teams, and how quickly your team can provide access and a test copy. A narrow scope covering one instance and a short list of critical workflows moves faster than a review across several instances. Ask for a timeline in the written scope with milestones for access, configuration, the first controlled re-run and handover, and ask how a delay in access approval would change those dates.

What do we need to provide before debugging starts?

You need an administrator account on the n8n instance, read access to the logs of the processes that run it, and a decision on how long failed run data may be kept. If the investigation needs them, you also need database connection details or a recent backup. Provide a written policy stating which execution data may be saved, masked or deleted, especially where payloads hold personal or health information. A test copy of the instance, configured with test-system credentials only, lets engineers re-run failed workflows safely. Finally, name the business owner for each workflow in scope, because that person can confirm what the correct outcome of a run should be.

Which n8n debugging features need a Business or Enterprise plan?

Some operational features are restricted to paid plans, so check before you plan around them. The n8n pricing page states that SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans. Log streaming matters for debugging because it can send log data to your own tools. The same page lists Business as currently self-hosted only and Enterprise at custom pricing. The pricing page does not settle which execution views or insight reports belong to each plan, so confirm those points with n8n in writing before you commit to a design that depends on them.

Do logs and alerts need separate setup for n8n debugging?

Yes. The execution list shows runs and the data n8n saved for them, but it does not collect process logs from the main, worker and webhook processes, and it does not notify anyone when a run fails. Log streaming is available only on Business and Enterprise plans. On other editions, collect container or process logs with a separate stack such as Loki or OpenSearch. Failure alerts usually come from a shared error workflow that routes messages to chat, email or an on-call tool. Scope each of these as its own deliverable, so the debugging method does not depend on one of them already being in place.

Can we safely re-run a failed production execution with pinned data?

Pinned data alone does not make a replay safe. Pinning replaces a node's output with fixed data so downstream logic can run, which helps you test what happens after a failure. But any node that still calls an external system acts again when it runs live, so a replay can resend messages, create duplicate records or trigger payments. Safer replay usually means pinning data at the trigger or upstream nodes, pointing outbound nodes at test systems and using test-system credentials. In queue mode, workers need the same encryption key as the main instance to read stored credentials, so a test copy must carry that key as well. Ask for a replay checklist that names every node with side effects in each workflow in scope.

Limits to confirm in your own n8n environment

Debugging depends on settings and behavior that change between n8n versions and between editions. The cards below list what to confirm in your own instance before you build an incident process around saved execution data, pinned data and queue mode failure records.

Saved execution data options

Confirm which execution data settings your installed version exposes for successful and failed runs, and whether manual executions are saved. Option names and defaults have changed across releases, so check the release notes for the exact version you run rather than copying settings from an older guide. Test one failed run in staging and confirm the input, output and error data appear as you expect before you depend on them.

Latest version cited
2.43
n8n release notes

Pinned data behavior on re-runs

Pinned data replaces a node's output during test runs, which is useful for reproducing a failure but can hide a problem if the pinned payload no longer matches what production sends. Confirm in your version that pinned data is applied to the node you expect, that downstream nodes see it, and that it is not used by production triggers. Record which pins were set during investigation and remove them before the workflow is promoted.

Failure recording in queue mode

In queue mode, the main instance handles triggers and webhooks while workers execute the runs and write results to PostgreSQL. Confirm which process logs a failure, where its error details end up, and whether the execution record is complete when a worker crashes mid-run. Check the queue mode documentation for your version and simulate a worker failure in a test environment so you know what the execution list will show.

Queue mode docs

Encryption key on every worker

Failed-run inspection often means opening credentials or node parameters that are stored encrypted. Every worker and webhook processor must hold the same encryption key as the main instance, or the failing node may error for a reason unrelated to the workflow. Confirm the key is identical across processes before you attribute a failure to a workflow change.

Retention and PostgreSQL storage impact

Saving successful and failed execution data grows the execution tables and any binary data attached to runs. Ask your DBA to confirm the retention period, pruning behavior and table growth on your PostgreSQL instance, and confirm that pruning jobs are running. Size the change against your execution volume during a pilot rather than after production traffic arrives.

Edition and license limits

Some execution views and features depend on your edition and license. Confirm with n8n which features your Community, Business or Enterprise plan includes, because the pricing page describes which plans include log streaming and other operations features. Files marked .ee require a valid Enterprise license, so check the license file for any component you plan to modify before you rely on it in an investigation process.

n8n license terms

What each n8n edition allows for debugging

The Community edition is free to self-host under the Sustainable Use License, which permits use for your own internal business purposes. The license does not change what you can see when a production run fails, but it does set the boundaries for how you use and distribute the software. Read the license terms with your legal team before you rely on the Community edition for a production workflow that serves customers or other organizations.

The debugging-related features that matter most are the ones tied to SSO, environments and log streaming. According to n8n's pricing page, SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans, and Enterprise adds dedicated support with an SLA. If your operators need named logins with access controls, Git-backed promotion of fixed workflows, or failed-run logs forwarded to your own log platform, check these items against the current n8n pricing page before you choose an edition. Confirm whether execution history, saved data and the editor features you plan to use are available on each plan, because the pricing page is the authoritative source for those details.

Multi-main setup, which runs several main instances for high availability, is restricted to Enterprise self-hosted deployments and is not available in the Community edition or n8n Cloud. If a failed execution must be investigated while one main instance is down, a single-main deployment will leave you without that path. Ask your n8n representative to confirm in writing which debugging features apply to your chosen edition and deployment model, and record the answer in your operations runbook.

How DeployOpen scopes and delivers n8n debugging work

DeployOpen approaches debugging failed n8n executions as a planned piece of work on your own infrastructure, not a one-off fix. We first agree in writing which failing workflows, execution data settings and editions are in scope, then build the diagnostic process, test it against your real failure patterns and hand over a documented procedure your team can repeat.

How we scope

  • Engagements are fixed-scope, with the failing workflows and failure types agreed in writing before work starts.
  • We confirm your n8n edition and which execution data saving settings are enabled, since they decide what can be reviewed later.
  • We confirm whether failed runs span the main instance, workers and webhook processors, and who has access to each.

How we build

  • We set up execution saving rules and retention in your environment so failed runs keep the data your team needs.
  • We document a triage path: finding the failed execution, loading it in the editor and re-running with pinned data.
  • We test the procedure against representative failures, including credential and external service errors, before handover.

How we hand over

  • You receive a written runbook covering each step, the roles involved and the settings that must stay enabled.
  • We walk your operators through the procedure on your own instance so the steps are practiced, not only read.
  • We record which features your edition allows, so your team knows in advance what they can and cannot inspect.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • A retainer can cover re-testing the runbook after n8n upgrades that change execution behavior or editor features.
  • Ask for a quote that lists scope, deliverables, handover sessions and any retainer terms before committing.

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.