If your Compose file says n8nio/n8n:latest, the next pull and recreate can change more than the editor. Your morning Slack workflow might still appear in the list but stop listening for events. This guide walks through an upgrade on a Linux VPS, including how to tell whether a published workflow really works afterwards.
On 1 December 2026, n8n moved the latest and stable Docker tags to v3. A running container keeps its current version until it is replaced. If you need time to fix workflows, n8n says 2.x will receive security and critical bug fixes until at least 1 December 2027. An instance still on 1.x must move through 2.x first. n8n’s release announcement
Find out what is running before you pull
On the VPS, open the directory containing your Compose file. These read-only commands show the services, the n8n version actually running, and the image names Compose would use. Substitute your service name if it differs from n8n.
docker compose config --services
docker compose exec -T n8n n8n --version
docker compose config --images
Write down the running patch version and pin the main service to that exact image before your next scheduled update. In queue mode, pin the workers and any webhook processors too. Pause any updater that changes those pins for you. Keep the database, Redis and reverse proxy on their current versions during the n8n upgrade. That gives you one change to diagnose if deliveries stop.
Fix the workflows v3 will stop activating
Take a backup before updating within 2.x. Move to the latest maintained 2.x patch, then open Settings → Migration Report as the instance owner or an admin. The v3 report is available from 2.39. Check both Workflow issues and Instance issues. Start with the published workflows people rely on every day. Migration report instructions
Scheduled jobs
Migrate a legacy Cron node to Schedule Trigger. Check its timezone and next expected run. The migration creates a draft. Test it and publish it on 2.x so the corrected version is the one that goes live.
Slack events
A Slack Trigger needs its app’s signing secret. Get it from Basic Information in the Slack app, save it in the n8n Slack API credential’s Signature Secret field, then republish the workflow.
Custom transformations
Convert AI Transform nodes to Code nodes before upgrading. Feed the old and new versions the same sample and compare the fields the next node reads. A green execution can still produce an empty customer ID.
If you mark an item won’t fix, record which workflow you’re retiring and who agreed to it. The acknowledgement removes a report item without repairing the workflow. Also check any separate bind mount for binary data. By default, v3 renames binaryData to storage on first startup. If both directories already exist, startup stops. Back them up and reconcile their contents on the test copy first. Storage changes and other v3 compatibility notes
Make a backup that can bring v2 back
A workflow JSON export is useful for comparing edits. Recovery also needs the database, the existing encryption key and the files your workflows use. Save the Compose file, exact image versions and a protected copy of the environment file or secret references. If N8N_ENCRYPTION_KEY comes from a secret manager, make sure you can retrieve that same value during recovery.
At a quiet point, pause incoming jobs and schedules, let running executions and the queue drain, and stop every process that can write n8n data. For a single-service installation that means docker compose stop n8n. If there are workers or webhook processors, include their service names. Keep PostgreSQL running for its dump. Record which workflows and ingress routes to re-enable.
SQLite and the n8n data directory
On the default Docker setup, the SQLite database and generated key live under /home/node/.n8n. Copy the whole directory while the container is stopped, including any journal files. This Linux shell example uses a new private directory on the host. A PostgreSQL installation also needs this copy for its local configuration and files.
umask 077
backup_dir=$(mktemp -d "$HOME/n8n-before-v3.XXXXXXXX")
mkdir "$backup_dir/n8n-home"
container=$(docker compose ps -aq n8n)
docker cp -a "$container:/home/node/.n8n/." "$backup_dir/n8n-home/"
PostgreSQL and separate storage
Dump your actual n8n database as well. The example uses the service, role and database names from HYEHOST’s Compose setup. Replace them if yours differ. The second command reads the dump’s table of contents. A successful restore on a separate database is the stronger test.
docker compose exec -T postgres pg_dump -U n8n -d n8n -Fc > "$backup_dir/n8n.dump"
docker compose exec -T postgres pg_restore --list < "$backup_dir/n8n.dump"
Include separate binary-data mounts, object storage and any custom nodes outside the data directory. Protect a second copy away from the VPS, with access restricted to the people who can restore it. Keep the original volume intact. Once you have a consistent rehearsal copy, you can resume the pinned 2.x services while testing elsewhere. n8n backup and restore guide
Upgrade a copy and prove a workflow still runs
Restore the backup on a separate VM or isolated Compose project. Give the copy its own database, volumes, queue, storage and test URL. Before the first start, block outgoing connections to real integrations and disable public ingress. A clone can run schedules, send messages or register callback URLs as soon as it starts. Use sandbox credentials and a local test destination for the workflows you exercise.
Set the staging image to an exact stable 3.x patch. On 5 December, n8nio/n8n:3.4.4 was the stable image. Use the same tested tag across the main, worker and webhook services, and the matching runner version if you use external task runners. The commands below assume one service named n8n. In queue mode, pull the other n8n services too, allow the main process to finish its database migration, then start the matching workers before testing jobs. 3.4.4 release · Updating n8n
docker compose pull n8n
docker compose up -d --no-deps n8n
docker compose logs --tail=100 n8n
docker compose exec -T n8n n8n --version
With the usual loopback port mapping, run curl -fsS http://127.0.0.1:5678/healthz/readiness on the VPS. HTTP 200 means the database connection and migrations are ready. Next, check a real execution using an input you can recognise. What the readiness endpoint checks
- Send one identifiable event. Point a sandbox sender at the copied workflow’s published webhook and send a record such as
upgrade-test-001. Look for exactly one execution with that ID and the expected output at the test destination. - Exercise a saved credential. Run a read-only operation against a sandbox account and inspect the returned record. This catches a missing encryption key that the editor loading successfully can hide.
- Observe a scheduled run. On the isolated copy, use a short test schedule and confirm the expected timezone, worker and execution result. Keep rehearsal timing changes out of production.
Switch production during a quiet window
Pause deliveries, drain executions and take a fresh pre-upgrade backup. A rehearsal backup from Tuesday won’t contain workflows edited on Friday. Apply the same image pins and sequence you tested. Once the database is ready, verify the workers, a controlled event and any critical published triggers before reopening traffic. Compare the next scheduled execution with its usual time and output.
If the upgrade fails, restore v2 with its data
Stop the v3 services and keep incoming events paused. Restore the last pre-upgrade database, n8n directory, key and binary files into clean volumes or a clean database. Start the previous pinned 2.x services against those restored stores. Pointing an older image at the database v3 already migrated is unsupported. n8n’s rollback guidance
Before reopening ingress, verify a saved credential and a familiar workflow. Compare your upstream sender’s delivery log with the execution history around the cutover. An email, payment or ticket created after the backup still exists at its destination. Reconcile those events by ID before replaying anything.

