Skip to content

Upgrade n8n ​

n8n publishes releases often, and some of them change behavior. If your deployment follows a moving tag such as stable, a restarted task can pick up a new version without you deciding it. The tool asks you to pin a version, so that an upgrade is a change you make, review and can undo.

This guide shows how to pin, how to bump the version, and what moves with it. You need a deployment that is already running, and a backup you trust (see back up and restore).

Pin the version ​

yaml
n8n:
  version: "2.37.1"

A moving tag such as latest or stable raises finding T14 as a warning, and a version before 2.x is an error. The samples pin 2.37.1, which stands for "a pinned release". Pin your own.

Bump the version ​

  1. Read n8n's release notes and breaking changes for every version between yours and the target.
  2. Take a backup, and check that the encryption key secret is safe.
  3. Change n8n.version.
  4. Run plan and diff to see what changes.
bash
n8n-on-aws plan -f n8n.yaml
n8n-on-aws diff -f n8n.yaml
n8n-on-aws deploy -f n8n.yaml

ECS replaces the tasks with the new version. n8n may migrate its database when it starts, so a return to an older version can fail. If it does, restore the database from the backup.

What moves with the version ​

  • The runners image. The task runner sidecar always uses the same tag as n8n. n8n.runners.image sets the image name, and the tag comes from n8n.version. Never mix versions: n8n and its runners must match.
  • Public paths. The list of paths that bypass the login wall was checked against n8n 2.48.6. After a minor or major bump, look at the release notes for new webhook or form routes, and add them to auth.public_paths if needed.
  • Features gated by version. SSO by environment needs 2.18.0 or later (L10).
  • The Helm chart on EKS. The chart has its own pin, runtime.eks.chart.version, which is released weekly. Bump it on purpose, and check that the values still render.

If something breaks ​

Set the previous version and deploy again. If n8n refuses to start on the migrated database, restore the backup, then deploy the previous version. See the restore runbook.