What does HRESULT 0x87AF0208 (SQLITE_E_READONLY_CANTLOCK) mean?

 
Previous Next
SQLITE_E_BUSY_SNAPSHOT SQLITE_E_IOERR_SHORT_READ

SQLITE_E_READONLY_CANTLOCK

SQLITE_E_READONLY_CANTLOCK is the extended SQLite read-only result for a lock acquisition failure. SQLite cannot obtain the lock required by the requested operation in the current filesystem state.

What to check

  • Check database and directory write access, mount flags, file attributes, and file-share locking behavior.
  • Check whether the database has been moved to read-only media, a package image, or a protected deployment directory.
  • Use a writable application-data location for databases that must accept updates.
PRAGMA query_only;

SQLite: Result and Error Codes

SQLite: File locking and concurrency


Looking for a different code? Search another status or error code.