Error code

SQLite SQLITE_READONLY

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

What it means

attempt to write to a read-only database.

How to fix it

  1. Verify that the process has write permission on the database file and its directory.
  2. Close any other connections that may have opened the database read-only.
  3. Re-open the database connection without the SQLITE_OPEN_READONLY flag.

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