Incident runbook

What to do when each alert arrives. Print it, pin it in the alerts channel, or paste it into your client SOP.

πŸ”΄/🟠 "n8n failure: <workflow>" (RAK-01)

  1. Read the Class line.
  2. auth: reconnect or rotate the credential named in the failing node. Retrying won't help. After fixing, retry the failed executions manually from the Executions list (or let RAK-06 skip them; it never retries auth errors).
  3. rate_limit / timeout / network / upstream_5xx: transient. If the workflow is on RAK-06's allowlist it will be retried after the backoff. If not, decide whether a manual retry is safe (see "Is it safe to retry?").
  4. validation: the data or the workflow is wrong. Open the execution link, inspect the input of the failed node, fix the mapping or add a guard, then retry or replay.
  5. If you expect more of the same, there is nothing else to do. Repeats are stored and muted for the suppression window.

⏸️ "Watchdog: silent" (RAK-02)

The workflow has not started within its expected interval.

  1. Is it still active/published? Someone may have deactivated it.
  2. Schedule trigger: check the timezone and the cron/interval.
  3. Webhook trigger: has the provider stopped sending? Look at the provider's webhook delivery log; their side may show failures or a disabled endpoint. Has the n8n URL changed (domain, path, test vs production URL)?
  4. Polling trigger: the credential may have expired; trigger errors also reach RAK-01.

πŸ” "Watchdog: failing"

Several failed runs in the window. Look at RAK-01 alerts for the same workflow, since the root cause is usually there. If RAK-01 is quiet, the workflow probably isn't using it as its Error workflow.

πŸ”΄ "API health: DOWN" (RAK-04)

  1. Check the provider's status page.
  2. Pause workflows that write to this API if failures would leave partial state (RAK-06 will not retry until the backoff passes anyway).
  3. RECOVERED arrives automatically.

Is it safe to retry?

A retry re-runs the workflow from the failed node with the same input. It's safe when every side effect before and at that node is idempotent:

  • it went through the Idempotency Gate, or
  • it's an upsert or PUT keyed by a stable id, or
  • the API received an Idempotency-Key header.

It's not safe when an earlier node already sent an email, charged a card or created a record without one of those. Fix that first.

Duplicate side effect happened anyway

  1. SELECT * FROM rak.idempotency WHERE key = '<event id>';
  2. No row: the workflow isn't calling the gate, or the key expression produced something different on each delivery.
  3. Two different keys for one real-world event: your key isn't stable. Pick the provider's event id.
  4. Compensate the duplicate (refund, delete, notify), then fix the key.