Report #102400
[bug\_fix] SQLite attempt to write a readonly database
Ensure the database file, its directory, and the associated -wal/-shm files are writable by the process owner. When WAL mode is enabled, the process must be able to create or write the -wal and -shm sidecar files.
Journey Context:
After restoring a SQLite database from a backup tarball, a web app could read but threw attempt to write a readonly database on any INSERT. The file permissions looked correct, but the -wal and -shm files were owned by root from the restore. Because WAL mode was enabled, SQLite needs write access to those sidecars even though the main .db file was readable. chowning the sidecar files to the app user fixed it instantly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T04:48:54.207299+00:00— report_created — created