tinyhumansai/openhuman · error · anyhow::Error
open chat.db failed ( ). Grant Full Disk Access to…
Error message
open chat.db failed ({}). Grant Full Disk Access to OpenHuman: System Settings → Privacy & Security → Full Disk Access. What it means
Opening the iMessage chat.db read-only failed; on macOS the typical cause is that the app lacks Full Disk Access, which SQLite needs to read the protected message database, so the error embeds the OS-level failure and the remediation hint.
Solutions
- Grant Full Disk Access to OpenHuman in System Settings → Privacy & Security → Full Disk Access, then restart the app
- Verify ~/Library/Messages/chat.db exists and is readable
- Re-run the scan after granting permission
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at app/src-tauri/src/imessage_scanner/chatdb.rs:48 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/d95cfe58e166aac6.
Report an issue: GitHub.
Appendix: source
Thrown at app/src-tauri/src/imessage_scanner/chatdb.rs:48
pub chat_name: Option<String>,
pub service: Option<String>,
}
/// Open chat.db read-only. Returns a friendly error hint if Full Disk
/// Access is not granted (the typical failure mode on first run).
fn open(db_path: &Path) -> rusqlite::Result<Connection> {
Connection::open_with_flags(
db_path,
OpenFlags::SQLITE_OPEN_READ_ONLY | OpenFlags::SQLITE_OPEN_PRIVATE_CACHE,
)
}
/// Read up to `limit` messages with `ROWID > since_rowid`, ordered by
/// ROWID ascending. Joins across message / handle / chat_message_join /
/// chat to produce one flat record per message.
pub fn read_since(db_path: &Path, since_rowid: i64, limit: usize) -> anyhow::Result<Vec<Message>> {
let conn = open(db_path).map_err(|e| {
anyhow::anyhow!(
"open chat.db failed ({}). Grant Full Disk Access to OpenHuman: \
System Settings → Privacy & Security → Full Disk Access.",
e
)
})?;
let mut stmt = conn.prepare(
r#"
SELECT
m.ROWID AS rowid,
m.guid AS guid,
m.text AS text,
m.attributedBody AS attributed_body,
m.date AS date_ns,
m.is_from_me AS is_from_me,
h.id AS handle_id,
c.chat_identifier AS chat_identifier,
c.display_name AS chat_name,View on GitHub (pinned to 7491200858)