How to recover n8n automations after a server crash

Published on 2026-11-14 by frfrand

n8n recovery plan with persistence, PostgreSQL, volumes, execution queue, retries, and duplicate prevention.

How to recover n8n automations after a server crash

# How to recover n8n automations after a server crash

Restarting n8n should not force you to rebuild workflows. But the editor reopening does not prove that pending events have survived. To recover an automation service you must protect configuration, keys, database, queue, and business effects.

Essential data

Document the installed version, deployment configuration, environment variables, credential encryption key, and database location. If the encryption key is lost, restoring a database with encrypted credentials may not allow you to use them. Store secrets in a secure manager, separate from backups and with controlled access.

Also identify binary data and files stored by workflows, according to the configured storage mode. An ephemeral volume can delete necessary information even if PostgreSQL remains intact.

Prepare consistent backups

Schedule database and persistent file backups, protect configuration, and perform restore tests in an isolated environment. Verify that the restore produces complete workflows and operational connections. Define how much data you can afford to lose (RPO) and how long it will take to recover (RTO).

Do not simply copy files from an active database expecting consistency; use the appropriate backup mechanisms.

Controlled restart

First confirm whether the problem is the proxy, the application, the database, Redis, or an external service. Check systemd or container logs, disk space, OOM, and connectivity. Verify that dependent services are healthy before starting multiple workers. If the process keeps crashing, avoid infinite loops without investigation.

Executions in progress at the time of the crash may have different states depending on version and configuration. Do not assume that all resume from the last node.

Avoid losing or duplicating events

In many systems, the biggest risk is not losing a workflow but executing an action twice: sending two emails, creating two opportunities, or charging twice. Introduce idempotency keys based on an event identifier and record the state before producing the external effect. Retries must check whether the action has already been completed.

For webhooks, distinguish accepted receipt, processing started, and effect confirmation. Keep an auditable record that allows reconciling events against the source system.

Post-recovery checklist

- Editor and active workflows visible. - Credentials decryptable and connections verified. - Triggers, webhooks, and cron reactivated intentionally. - Queue and failed executions reviewed without indiscriminate resends. - Email, CRM, and external services verified with test events. - Alerts and backups verified.

Frequently asked questions

### Is backing up the Docker volume enough? Not necessarily: it depends on where PostgreSQL, secrets, and binaries are located.

Do executions always resume?

You should not assume it; test the behavior of your specific deployment.

Can repetition be avoided one hundred percent?

Design business effects to tolerate redelivery; extreme end-to-end "exactly once" should not be taken for granted.

Resources

Review secure webhooks with n8n and PostgreSQL backups. ArduMaker can provide infrastructure to deploy and monitor n8n with a defined recovery plan.

  • n8n
  • recuperación
  • backups
  • Redis
  • automatización

On ArduMaker

  • VPS with n8n: Automations with queue-mode workers, Postgres and Redis included, a custom domain with HTTPS, and updates with rollback.
  • Redis: Install Redis, tune memory and persistence, and search, edit and delete keys from the panel.
  • Automatic backups: A full live backup every week, the last 2 kept, and a final copy when you delete the VPS.

Keep reading

All articles · VPS plans