Error: attempt to write a readonly database (code 1032)
See original GitHub issueCurrent behavior
Error: attempt to write a readonly database (code 1032)
at f(node_modules/@react-native-community/async-storage/lib/AsyncStorage.js:413:25)
at map(app:///[native code]:0:0)
at apply(node_modules/@react-native-community/async-storage/lib/AsyncStorage.js:127:22)
at __invokeCallback(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:483:13)
at fn(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:135:12)
at value(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:384:9)
at value(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:134:18)
at value(app:///[native code]:0:0)
We’re currently seeing a large spike of Android users receiving Error attempt to write a readonly database (code 1032)
.
Looks like our dependencies that rely on async-storage
are throwing errors as well.
Expected behavior
No errors.
Environment
- Async Storage version:
1.8.1
- React-Native version:
0.61.4
- Platform tested:
Android
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
SQLiteReadOnlyDatabaseExcep...
SQLiteReadOnlyDatabaseException : attempt to write a readonly database (code 1032) · The DB really is being closed/set to "readonly" in that 1ms ...
Read more >attempt to write a readonly database (code 1032 ... - GitHub
I have users receiving this error: attempt to write a readonly database (code 1032 SQLITE_READONLY_DBMOVED[1032]) Some Googling and #178 ...
Read more >attempt to write a readonly database (code 1032 ...
Coding example for the question I encounter Error [Error: attempt to write a readonly database (code 1032 SQLITE_READONLY_DBMOVED)] using expo-sqlite-React ...
Read more >Fix the SQLite "attempt to write a readonly database" error
The database file's write bit for the web server user or group wasn't set. So, after setting it appropriately, the application would work....
Read more >8 attempt to write a readonly database' after migrating
This article explains the 'General error: 8 attempt to write a readonly database' sometimes seen after migrating Tenable.sc to a new host.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wish we had a repro. We haven’t been able to get any of our devices in this state (either accidentally or attempting to force db states). We’re just seeing thousands of users who are now unable to write anything to async storage. I’m going to look at all of our dependencies to see if I can find any that are using the Core’s version of
AsyncStorage
.I suspect this could be related to having both Community’s and Core’s
AsyncStorage
in a project. What Android are you seeing the issue on?