📄 SKILL.md

← Vault

name: n8n-workflow-debug-vps

description: Debug n8n workflows on VPS via PostgreSQL — workflow versioning architecture, SQL node updates, task-runner error diagnosis

category: devops


n8n Workflow Debug on VPS via PostgreSQL

Debug n8n workflows when the UI/API approach fails. Uses direct PostgreSQL access to inspect workflow definitions, nodes, and execution state.

n8n Version

n8n v2.9.4 on VPS (docker container named n8n, postgres container named n8n-postgres)


Architecture: workflow_entity vs workflow_history (CRITICAL)

n8n v2.x stores workflow versions in TWO places:

Known Workflow IDs (Rocha Sales)

IDNameActive
------------------
fuVLvmFke1C7GskYRS - Automação CRM Rocha Salestrue
xy4Ih7ByXlow9Fw5RS - Sync CRM → Kanban Map (Etapa)true
JI3Ke5qDgZQWxz9dRS - Sync CRM Browser (Webhook)true
56ea2d1a-2a62-476b-92c1-59712166a44a(legacy)true