Executions and Debugging

Read past runs in the Executions tab, replay a failed run in the editor, and keep the execution history under control

By Kevin McAleer,    4 Minutes

Page last updated November 24, 2026


Course Cover Image


Stage 6, part two: the butler keeps a diary. Every run of a workflow is an execution, and learning to read them turns “it’s broken” into “this node got this item and failed”.


Where to look

Open a workflow and select its Executions tab to see every run of that workflow, each with a status and a time. There’s also an all-executions list across every workflow. Select a run and the canvas shows what each node received and sent in that run.

Two kinds of run appear:

  • Manual, from Execute workflow while you build
  • Production, started by a published trigger such as your schedule or webhook

Production webhook data only shows here, never in the editor, so this tab is where you check on the Pico.

Replay a failure in the editor

This is the debugging feature to remember. Break something on purpose: set the health check URL to a nonsense address and let it run, or send a bad request to the webhook. Then:

  1. Open the Executions tab and select the failed run.
  2. Choose Debug in editor. For a successful run, the button is Copy to editor.
  3. n8n copies that run’s data into your workflow and pins it to the first node.
  4. Fix the node, then run again. It uses the pinned data, so you can test the fix against the original input without waiting for the Pico to send another reading.

Remember to unpin the data when you’ve finished, so the next test starts fresh. On self-hosted n8n, the docs say this needs a registered Community edition (or a paid one), so register your instance if the button is missing.

Look at the right node

A good routine for any failure:

  1. Which execution failed? Open it.
  2. Which node is red? Open that one.
  3. What was its input? Is it what you expected?
  4. What does its error message say?

Nine times out of ten the input is the surprise, such as a field in body that you read from json.

Keeping the history tidy

On a Pi, every stored execution takes space, and with a reading every minute, that adds up. n8n prunes old ones for you, and you can tune it with environment variables in your compose file:

Variable What it controls Default
EXECUTIONS_DATA_PRUNE Whether old executions are deleted On
EXECUTIONS_DATA_MAX_AGE Hours before a finished run can be deleted 336 (14 days)
EXECUTIONS_DATA_PRUNE_MAX_COUNT How many finished runs to keep 10000
EXECUTIONS_DATA_SAVE_ON_SUCCESS Save successful runs, all or none See the docs

For example, to keep a week of history:

    environment:
      - EXECUTIONS_DATA_MAX_AGE=168

You can also choose what to save in each workflow’s settings. n8n’s database is SQLite by default, and freed space isn’t returned to the disk automatically. The docs mention DB_SQLITE_VACUUM_ON_STARTUP for that.

Try it Yourself

  1. Find the oldest execution in your health check workflow. How many runs does it have per day?
  2. Use Debug in editor on a failed run, fix the node, and run it again with the pinned data.
  3. Challenge: for the sensor inbox, work out how many executions per day one Pico creates, and how long 10,000 would last.

Check your understanding

Quick quiz 1 of 3

Where do you see data from a production webhook call?

Quick quiz 2 of 3

What does Debug in editor do for a failed run?

Quick quiz 3 of 3

Why prune old executions on a Pi?

Common Issues

Problem: I can’t find my Pico’s readings. Solution: Look in the Executions tab, not the editor, and check the workflow is published. Why: Only test calls show data on the canvas.

Problem: The Executions tab is empty. Solution: Check the workflow’s settings for which executions are saved. Why: You can choose to skip saving successful or manual runs.

< Previous Next >

Was this lesson helpful?

Course complete

Congratulations, you finished Homelab Automation with n8n!

That's all 14 lessons done. Let people know, it's a great way to inspire someone else to start.

Share card: I completed Homelab Automation with n8n on KevsRobots
Post Bluesky LinkedIn Facebook


What are you looking for?
Watch Videos Get Ideas Learn Something Read a Review Read the Blog Search
... Z Z z