BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.08k stars 1.47k forks source link

Lost all files in Boostnote local storage for unknown reason #3708

Open shuoO-24 opened 3 years ago

shuoO-24 commented 3 years ago

Current behavior

The last time I used Boostnote was about a month ago, and I stored all my Algo notes inside Boostnote storage. But I could not find any local notes below my second local storage location at all. All the local settings have been renewed, except notes stored in the first default storage location, and I did not know what happened within this month. I did not upgrade it neither reinstall it.

The local storage location I chose for storing those data was empty now: image

Then I used Houdahspot to try to search for other possible location of that missing folder(s) in my local storage. I could not find it. All files have been encrypted and I could not identify whether the data of those notes are still stored in my computer. But the original files might be lost completely.

That is the result I found in Houdahspot: image

Inside each folder: image image image

This is the main page of my "renewed" Boostnote: image

Expected behavior

All user setups and data are back up safely in another local storage location and can be recovered easily by users. Do not delete data completely in local storage if the users have not authorized it to do so.

Steps to reproduce

  1. Create a new storage location in local computer
  2. Create some folders and notes inside it in Boostnote
  3. Wait for some time, and it might accidentally disappear (since I didn't know the reason)

Environment

Komediruzecki commented 3 years ago

Hi,

By this picture: image

I can see that you mistakenly added notes folder inside boost note notes folder. I think this might cause issue loading this storage.

Firstly, backup your notes from this image, the files ending in *.cson are your notes, you can actually inspect them via any text editor, since the content should be inside, alongside some note metadata which boost note reads.

How many notes did you have, it seems by this that it is only two?

After that, you can try cleaning up boost note storage location/folder in a way that it only contains:

  1. storage location - only folder 'notes', folder 'attachments' and 'boostnote.json'
  2. notes folder inside storage/folder location - all your notes ending in *.cson (no additional files, folders)
  3. attachments folder - your attachments, and only attachments ending in *.png

Once you clean up the storage in this way, try loading this folder location in boost note (the folder where boostnote.json resides, not any internal folder)

I am not sure how this would otherwise happened and why would it lose your view/preferences, it could be caused by corrupted boostnote.json file.