n8n · infra · fg-0344

n8n executions older than 14 days vanish and the SQLite file never shrinks

Executions list stops at two weeks back

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

Pruning is on by default with a 336 hour max age and a 10,000 execution cap. SQLite keeps freed pages for reuse, so the file does not shrink until it is vacuumed.

Fix

Raise EXECUTIONS_DATA_MAX_AGE or EXECUTIONS_DATA_PRUNE_MAX_COUNT if you need longer history, export what you must keep, and enable vacuum on startup for SQLite.

Apply

EXECUTIONS_DATA_MAX_AGE=720
EXECUTIONS_DATA_PRUNE_MAX_COUNT=50000
DB_SQLITE_VACUUM_ON_STARTUP=true

Affects: Self-hosted n8n 1.x and 2.x with default settings, as of 2026-10

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp