database or disk is full SQL Origin: Data OSI layer 7 · Application Last updated 18 Nov 2026

SQLite: database or disk is full (SQLITE_FULL)

SQLite couldn't allocate more space: the disk, quota or a configured size limit is full.

Exact message you may see database or disk is fullsqlite3.OperationalError: database or disk is fullSQLITE_FULL: database or disk is fullError: SQLITE_FULL
Seen on: SQLite Linux

Meaning

Free disk space (including the temp directory used for sorts/VACUUM), check container/volume quotas, PRAGMA max_page_count, and delete or VACUUM unused data. Large queries use TMPDIR, so a small /tmp can trigger this.

Common causes

  • Disk or volume full
  • Small /tmp for sort/temp files
  • Quota in a container or cloud function
  • max_page_count limit
  • VACUUM needing extra free space

⚡ Quick fix

  1. Free disk space
  2. Set PRAGMA temp_store_directory/TMPDIR to a larger volume
  3. Check quotas and max_page_count

Detailed fix by platform

Linux

  1. bash
    df -h . /tmp
    sqlite3 app.db "PRAGMA max_page_count; PRAGMA page_count;"

How to diagnose

  1. Disk — Full?
  2. /tmp — Small?
  3. Limit — max_page_count?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Data. Errors that are often confused with or caused by this one (click to open):

1105 — SQL Server Error 1105: Could not allocate space for object in database because the PRIMARY filegroup is full (SQL)110553100 — ERROR: could not extend file "base/…": No space left on device (PostgreSQL)531009002 — SQL Server Error 9002: The transaction log for database is full (SQL)9002disk I/O error — SQLite: disk I/O error (SQLITE_IOERR) (SQL)disk I/O errormalformed database — sqlite3.DatabaseError: database disk image is malformed (SQL)malformed databasereadonly database — sqlite3.OperationalError: attempt to write a readonly database (SQL)readonly databaseSQLite FK failed — sqlite3.IntegrityError: FOREIGN KEY constraint failed (SQL)SQLite FK failedSQLite syntax error — sqlite3.OperationalError: near "x": syntax error (SQL)SQLite syntax errordatabase …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.