What are common causes of SQLite error 14: unable to open database file - while executing PRAGMA journal_mode = WAL
?
#1351
-
Hello again! We have some analytics around a database upgrade from our old DB to GRDB. One of the errors we see (in ONE of thousands of analytics) is the following:
I'm assuming that's happening as a result of this line in
I have found a few discussions previously in this repo about similar SQLite errors related to multiple processes using the database, but in our case there is only one DBPool for the entirety of the app and it is only used in one process and one method call. We have also seen the low disk space error, which makes sense as a possibility:
So my question is— what are some common causes of SQLite error 14? Is it possible that SQL was able to create the DB, but not the WAL file? In that case, would we still receive SQLite error 13 rather than 14? The database file is written to the application support directory, and since the user did not receive error 13, I'd imagine that their disk space was adequate. Could there be another cause? Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @dawilliams-gpsw, You'll find information about For Maybe a search for |
Beta Was this translation helpful? Give feedback.
Hello @dawilliams-gpsw,
You'll find information about
SQLITE_FULL
(13) in #1251.For
SQLITE_CANTOPEN
(14), I don't have much information. You'll find in this repo several issues aboutSQLITE_CANTOPEN
thrown by read-only connections on a WAL database without a-wal
file (it took quite a long time to understand what was going on) - but this does not precisely apply to you.Maybe a search for
SQLITE_CANTOPEN
in the SQLite forums could help? Or a new question in this forum?