Error code

SQLite SQLITE_BUSY_SNAPSHOT

SQLITESQLITE_BUSY_SNAPSHOT
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

WAL snapshot conflict — a snapshot-isolated read cannot see a newer WAL frame.

How to fix it

  1. Commit or close the long-running read transaction so the WAL can be checkpointed.
  2. Avoid holding read transactions open across long periods when writers are active.
  3. Use BEGIN IMMEDIATE or BEGIN EXCLUSIVE when write ordering is required rather than relying on snapshot reads.

Not affiliated with SQLite. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.