Error code

SQLite SQLITE_PERM

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

What it means

access permission denied — the OS refused the file operation.

How to fix it

  1. Grant the process the necessary read/write permissions on the database file and its directory.
  2. Check for lock files left by a crashed process that may be blocking access.
  3. Run the application under the correct user account that owns or has rights to the database file.

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