New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file is not a database: , while compiling: select count(*) from sqlite_master; #594
Comments
What version of SQLCipher was the database created with vs. what version of SQLCipher are you using when the error occurs? If there is a major version difference, that could account for the failure depending on how your application handles database file format migrations. |
All versions so far have used |
I got the same issue when I create database with createFromAsset method. and I used dependencies: |
Hello @xinpengfei520, Thanks for your interest in SQLCipher. We reserve GitHub Issues for tracking defects within the software library itself. This particular question should be posted to the SQLCipher Community Discuss site, please consider reposting there instead. Thanks! |
Hello, I am getting the same exception The above exception appeared after upgrading the Is there is something device specific or any unpredicted scenario? Have you ever encountered that kind of issues? |
Hi @saaakiss That error message will occur when an invalid password is provided, or more generally when the derived encryption key is unable to decrypt a portion of the database file. Are you able to reproduce the issue on one of those devices locally? If so, can you pull off the database from the device and attempt to open it using the SQLCipher command line shell, or DB Browser for SQLite to see if it's accessible via the same password? Thank you, |
Hi @developernotes , thank you for your reply! |
Hi @saaakiss An invalid password would also produce this behavior. Is there reason for you to think this is not the case? |
Hello, Is there any update about this issue |
Closing for lack of updates. |
My issue is my files are missing |
I've run into an issue where the error in the title is faced by a tiny portion of our users. I haven't been able to reproduce the issue on any devices myself, but based on previous reports, this should mean that the passphrase has changed (or rather, is different from what was initially used). However, I don't see how it could possibly happen, as it only happens for less than 1% of our users. The reports seem to spike after each update we release, but cannot figure out what could cause this.
The stack trace from Crashlytics looks like this:
The passphrase we use is essentially a hard-coded constant value, so it seems weird that it would appear to be changing.
The text was updated successfully, but these errors were encountered: