Skip to content
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

Local storage disappeared after my mac shutdown #414

Closed
LadyForest opened this issue Apr 18, 2020 · 6 comments
Closed

Local storage disappeared after my mac shutdown #414

LadyForest opened this issue Apr 18, 2020 · 6 comments
Labels
needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem.

Comments

@LadyForest
Copy link

LadyForest commented Apr 18, 2020

Current behavior

Yesterday my mac suddenly turned off and then I found my local storage disappeared and all my notes are gone. I check the dir ~/Library/Application Support/Boost Note but I don't know how to recover from it. There were ~20 notes and I was really upset :(

Here are some logs to help to debug.

cd ~/Library/Application Support/Boost Note/IndexedDB/file__0.indexeddb.leveldb
cat -n 000006.log | grep -a 'createdAt'
image

Expected behavior

Steps to reproduce

Environment

  • Boostnote version: 0.3.0
  • OS version and name: MacOS Catalina 10.15.4
@Rokt33r Rokt33r transferred this issue from BoostIO/BoostNote-Legacy Apr 19, 2020
@Rokt33r
Copy link
Member

Rokt33r commented Apr 19, 2020

I moved this because you're definitely using BoostNote.next app.
It looks like the app has failed to save storage info in localStorage(https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). But from the screenshot you've shared, the data seem to
exist in indexedDB.
So this solution in here #380 (comment) might work for you. Please try it.

@Rokt33r Rokt33r added the needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem. label Apr 19, 2020
@Rokt33r
Copy link
Member

Rokt33r commented Apr 23, 2020

I'm going to close this issue because of inactivity. I assume it can be fixed by the solution in the previous comment.

Also, I'm going to introduce some recovery tools so you can fix it without opening console of browser or electron. The task will be tracked in #427

@Rokt33r Rokt33r closed this as completed Apr 23, 2020
@LadyForest
Copy link
Author

I moved this because you're definitely using BoostNote.next app.
It looks like the app has failed to save storage info in localStorage(https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). But from the screenshot you've shared, the data seem to
exist in indexedDB.
So this solution in here #380 (comment) might work for you. Please try it.

Thank you and let me try it :)

@LadyForest
Copy link
Author

I moved this because you're definitely using BoostNote.next app.
It looks like the app has failed to save storage info in localStorage(https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). But from the screenshot you've shared, the data seem to
exist in indexedDB.
So this solution in here #380 (comment) might work for you. Please try it.

Thank you and let me try it :)

It works, thanks so much 👍

@code56
Copy link

code56 commented Jun 28, 2021

I deleted Boostsnotes from my MAC and now I re-installed it and I want to recover the notes I had. I am not sure I had them backed up in the Cloud or not. Is it possible to recover them somehow? Thank you in advance.

@Komediruzecki
Copy link
Contributor

Komediruzecki commented Jun 28, 2021

Hi code56,

I cannot tell you which storage you had:

  • if you had local storage, the notes should be on your disk
  • if you had legacy cloud storage, the sync is no longer possible, so you would need to have it synced in other to retrieve them (did you use account to log into boost note) - please contact @Rokt33r for further information on how to get your notes
  • if you had cloud storage, the data should be on your account
  • if you used legacy local storage, the notes should also be in application data (if not removed)

Can you give more information about version of the boost note you had (this might reduce the number of possible storages, since legacy cloud and local storage were removed recently)
Also, did you try looking for boostnote.json file on your file system, if you find something like this, you maybe had local storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem.
Projects
None yet
Development

No branches or pull requests

4 participants