1
0
Fork 0
mirror of https://github.com/anyproto/docs.git synced 2025-06-08 05:47:05 +09:00

GITBOOK-470: How to recover data in case of a suspected database corruption

This commit is contained in:
Filip Bozicevic 2024-04-17 10:14:30 +00:00 committed by gitbook-bot
parent fa0949aebd
commit d022fa4f8a
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -9,3 +9,27 @@ If you get an error, you can try these steps before checking the [forum](https:/
5. Try to Log in from another device (& network)
6. For iOS users, check if the sync status turns green. If not, attempt connecting from different networks.
7. If you are having graphical issues, try deleting the GPUCache folder under \~/.config/anytype.
### How to Recover Data After a Suspected Database Corruption (Win 11)
If youre experiencing issues with Anytype, such as after a sudden power loss, and suspect database corruption, follow these step-by-step instructions to recover your data:
**Step 1**: Locate the Anytype Account Data
1. Open File Explorer: Press `Win + E` to open File Explorer.
2. Access the AppData Folder: In the address bar, type `%AppData%` and press `Enter`. This takes you to the `Roaming` folder inside `AppData`.
3. Navigate to Anytype Data Folder: Go to the Anytype folder by following this path:
4. `Anytype > data > <accountId>` or `Anytype > beta > data > <accountId>` in case you are on the Pre-release(beta) channel in anytype
5. Replace `<accountId>` with your specific account ID.
**Step 2:** Rename the Localstore Database
1. Find the Localstore Folder: Inside the Anytype data folder, look for a folder named `localstore`.
2. Rename the Localstore Folder: Right-click on the `localstore` folder and select `Rename`. Change the name to something like `localstore_backup`. This step ensures that Anytype will create a new localstore database when it runs next, while keeping your old data safe in the renamed folder.
**Step 3:** Restart Anytype
1. Launch Anytype: Open the Anytype application on your computer.
2. Check for Normal Operation: Anytype should now launch without issues. It will create a new localstore database automatically.
If after these steps Anytype still doesnt launch, probably you have spacestore database corrupted. Please take a look at this instruction [A tool to fix the 'Anytype Helper Crashed' Issue 2](https://community.anytype.io/t/a-tool-to-fix-the-anytype-helper-crashed-issue/13653).