Getting "SQLite: No temporary directory is accessible." error in v2.7.3

48 views
Skip to first unread message

Nikita Ivanchikov

unread,
Oct 22, 2015, 2:36:44 PM10/22/15
to YapDatabase
Hello Robbie,

I'm using YapDatabase v2.7.3 in one of my projects and today I started receiving following errors on my device (iPhone6, 8.1.4)

<Critical>: SQLite: No temporary directory is accessible.  This is not a legitimate configuration.  Either the process environment or its sandbox is misconfigured.  Various library routines will error out abruptly.
YapDatabaseConnection: Error executing 'yapSetDataForKeyStatement': 23 authorization denied | --[YapDatabaseConnection incrementSnapshotInDatabase]:2740 
YapDatabaseTransaction: Error executing 'yapSetDataForKeyStatement': 23 authorization denied | --[YapDatabaseReadWriteTransaction setStringValue:forKey:extension:]:5757

That's strange, cause DB setup wasn't changed during app development and haven't generated any warnings / errors.  I checked that DB path is set correctly (exists and non-nil), did some fresh app installs and still get the same warnings.

Could you please tell if I'm missing something? (google wasn't much of a help)

Thanks in advance!

Robbie Hanson

unread,
Oct 22, 2015, 7:35:33 PM10/22/15
to yapda...@googlegroups.com
That’s a good one...

Here’s what I was able to dig up with Google.

> “Apparently this is caused by the process no longer having access to the database file due to iOS’s file encryption. Is it possible your code is being invoked when the device is locked?"

Got the idea from here:

You might consider setting the file protection flags to something like NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication for ALL 3 sqlite-related files:

- database.databasePath;
- database.databasePath_wal;
- database.databasePath_shm;

Let me know what you find.

-Robbie Hanson


--
You received this message because you are subscribed to the Google Groups "YapDatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yapdatabase...@googlegroups.com.
To post to this group, send email to yapda...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages