How to Update n8n Self-Hosted: Safe Upgrades for Docker Compose, Docker, and npm (2026)
Update self-hosted n8n safely: Docker Compose, Docker, and npm upgrade paths with backups, database migrations, rollback steps, and five real fixes.
Every tutorial below was tested hands-on before publishing. Pick your tool and follow along.
Update self-hosted n8n safely: Docker Compose, Docker, and npm upgrade paths with backups, database migrations, rollback steps, and five real fixes.
n8n Code node JavaScript tutorial: master run modes, $input.all(), the { json } return format, dates, and debugging, with real errors and fixes.
Connect n8n to PostgreSQL step by step: create credentials, run Execute Query, insert, select, and update rows, and fix the five most common connection errors.
Build an MCP server in Python with the v2 SDK: typed tools, resources, Inspector testing, and Claude Desktop setup. Verified against the current SDK release.
Set up n8n with Docker Compose, Postgres, and queue mode with Redis workers. Complete compose file, .env template, safe upgrades, backups, and five real fixes.
Install n8n on an Ubuntu VPS with Docker Compose, Postgres 18, and free HTTPS via Caddy. Verified against n8n 2.40.7, including the new npm deprecation warning and four real-world fixes.
n8n vs Make for AI agents, compared head-to-head: verified builds, per-execution vs per-operation pricing math, and model freedom. Pick the right one.
Connect a vector database to n8n: insert documents into Pinecone or Qdrant with the Vector Store node, match embedding dimensions, and let an AI agent retrieve your own documents. Verified against n8n 2.40.7's node definitions and Pinecone's official n8n skill.
Build a working AI agent in n8n: connect a chat model, tools, and memory to the AI Agent node. Tested on n8n 2.40.7 with real node parameters, plus troubleshooting for the 5 most common failures.
Set up MCP servers in Claude Code: the three config scopes (local, project, user), the exact claude mcp add commands for HTTP and stdio servers, and fixes for the 5 most common failures. Tested on Claude Code 2.1.283.