Error code

SQLite SQLITE_READONLY_DBMOVED

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

What it means

read-only: the database file has been moved since it was opened.

How to fix it

  1. Close and reopen the database connection after the file move is complete.
  2. Avoid replacing an open database file in-place.
  3. use atomic rename-into-place only when no connections are open.
  4. Implement a reconnection strategy that detects this error and reopens the handle.

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