Skip to content
n8n Help Center home

Resolving SQLITE_FULL Errors in n8n Self-Hosted Instances

Updated by Cristopher

Understanding SQLITE_FULL Errors

A SQLITE_FULL error means the disk or volume that holds your n8n SQLite database file has run out of space. When this happens, database operations stop working, which can prevent fetching node types and block workflow creation, modification, or execution.

The most common cause is accumulated execution data. n8n prunes old executions by default, but with SQLite the space freed by pruning isn't returned to the disk. It's reused for future execution data, and only a VACUUM gives it back. That's why you usually need both: pruning configured to fit your disk, and a VACUUM to reclaim the space.

Note: these actions require knowledge about server management and the used deployment method.

It is always recommended to back up your data before taking any action on the n8n database. See Back up and restore: https://docs.n8n.io/deploy/host-n8n/keep-n8n-running/backup-and-restore

Steps to Resolve

  1. Access your server

  • Connect to the machine hosting your n8n instance (for example, via SSH).

  • This might vary depending on how you choose to deploy n8n.
    Using Docker, for example:

    docker exec -it <container_name_or_id> sh

    Finding your container name

    # List all running containers docker ps # Or filter for n8n docker ps | grep n8n
  1. Locate the n8n database

  • The database file is usually named database.sqlite.

  • The default directory is typically /home/node/.n8n/.

  • Example: cd /home/node/.n8n/

  1. Check execution data pruning

Make sure execution data pruning is enabled and set to limits that fit your disk. These environment variables control it:

EXECUTIONS_DATA_PRUNE: enables pruning (on by default)

EXECUTIONS_DATA_MAX_AGE: how many hours to keep finished executions (default 336, which is 14 days)

EXECUTIONS_DATA_PRUNE_MAX_COUNT: the maximum number of executions to keep (default 10,000)

See Manage execution data: https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/manage-execution-data

  1. Reclaim space with VACUUM

  • Run the SQLite VACUUM command to rebuild the database file and free unused space:

sqlite3 database.sqlite "vacuum;"

Make sure to run this command in the directory where your n8n database is located.

  1. If the issue persists

  • Increase the disk/volume size allocated to the database and rerun VACUUM.

  • If you’re using a hosting provider (e.g., Hostinger), contact their support for help with disk resizing or server configuration.

Additional Recommendations

  • Monitor database size regularly and perform periodic cleanups (VACUUM).

  • Set up disk usage alerts to catch low-space conditions early.

  • Plan for additional storage if your data grows steadily.

When to Contact Support

If manual cleanup does not resolve the issue, or if you are unsure about performing these steps, contact your hosting provider's support team or n8n support for further assistance.

For more discussions and community support, visit the n8n Community Forum.

Article Last Updated At: 2026-10-19T07:29:49.962Z