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

Lost all notes when updating to newer cloud-based version #1538

Open
rockobonaparte opened this issue Mar 13, 2022 · 1 comment
Open

Lost all notes when updating to newer cloud-based version #1538

rockobonaparte opened this issue Mar 13, 2022 · 1 comment

Comments

@rockobonaparte
Copy link

Current behavior

Latest Boost Note (no version posted anywhere so I will just say as of 11:20PM 3/12/2022) shows sign up/sign in screen I don't remember from previous versions I was running. I cannot be sure but I think I was running a 0.14. The installer I still have around is 0.12.4 but it had been updated in-place since then. Get real confused. Create account on GitHub. Log in. Not seeing any of my old stuff. Rerun the 0.23.1 version. See entries for all of my storage but all of the notes are gone. Everything is just gone.

I found #645 and tried to look in the developer console. I see pouches in IndexedDB corresponding to the different databases I have but non of them have any documents except one that has a stub untitled one I created when trying to figure out if it correlated to my current situation.

Expected behavior

I figured I'd at least see my notes in the old version...

Steps to reproduce

  1. Install Boost Note 0.23.1.
  2. Create some local storage.
  3. Create some notes.
  4. Select File->Check for Updates. An update will be found! Install it, and then restart.
  5. Be very confused why you suddenly need to be on the cloud.
  6. Reinstall 0.23.1.
  7. Lose everything.

Environment

Desktop/Web

Desktop. Windows 10.
Boost Note 12.4 and I guess Boost Note.next 1.57.1

PS: #645 referenced a Slack but I can't seem to log into it. At any rate, my inference was that the document stores in the pouches were all wiped anyways so it was moot.

@Komediruzecki
Copy link
Contributor

Komediruzecki commented Mar 13, 2022

Hi,

Can you tell me the reason why you cannot log into slack? Try here: https://join.slack.com/t/boostnote-group/shared_invite/zt-cun7pas3-WwkaezxHBB1lCbUHrwQLXw

Just use regular slack login and you should be able to enter.

For this issue, if you did have PouchDB (old cloud storages), you can follow this procedure from slack:

You can force app to reload the local storage easily really

Please read all the instructions before starting the procedure.

You need your:
- pouch db ID(s),
- and boost note application prior to deprecation (not latest version), or at least the one which can load local storage, for example 0.19.x, or 0.17.x will work.

Your pouch database ID is the one after _pouch_ string in indexed DBs, eg. in _pouch_zm2ok5Noh the ID is zm2ok5Noh

General procedure for restoring
If you had local storage, i.e data stored in indexed DBs, aka pouch storages:
1. Backup your local storage with indexed DBs, just in case something bad happens, you can find it in your boostnote application data location, depends on operating system, if you are unsure where it is, please contact me directly.

2. Open console (from menu, or ctrl+shift+I shortcut), and find your indexed DBs pouch db storage ids

3. On application tab in console, find local storage on left pane, click on it and in main window some key value pairs will appear, locate the one called something like note.boostio.co:storageDataList

4. If it is not empty, please ensure you back it up, otherwise you can replace its contents with the following:

The below JSON is not for immediate use, please change IDs to your ones, and adjust the number of storages you want to add as necessary:
[{
       "type": "pouch",
        "id": "<your-id>",
        "name": "Notes_1"
    },
    {
        "type": "pouch",
        "id": "<your-id-2>",
        "name": "Notes_2"
    }
]


Example with fake IDs:
[{    
        "type": "pouch",
        "id": "zm2ok5Noh",
        "name": "Notes_1"
    },
    {
        "type": "pouch",
        "id": "Z5K2tm_5b",
        "name": "Notes_2"
    }
]


Of course replace the IDs in your pouch db storage info with the actual ID you find in indexed DBs in developer console.

5. If the list is not empty, you can carefully, add more storages, like the ones above, alongside others, be sure to back the list of storages prior to updating/reloading the app, in case something bad happens

6. When you are happy with the added storages, you can also check JSON validity on any validator online (https://jsonlint.com/)

7. Just reload the app, either Ctrl+r, or from menu

The BoostNote will try load all the storages, when it does, you can get your data, transfer it to local file system storage, etc.

If it fails, or JSON data entered is invalid, it will clear all storages from storage data list, so please back it up previously (indexed DBs will still be available, you just need to see where is the problem and enter valid pouch IDs and storage data list should be valid i.e. correct based on above validator)

You need to do this in 0.19.x or earlier version, but not the latest one of BoostNote app

If you have any questions or are unsure about the procedure please contact me on DM

If not, you probably had local storage, can you try looking for boostnote.json files on your file system, or notes and attachments folders with notes *.JSON inside.

For PouchDB storage, you need 0.19.x to inspect them, but you also need to load them by the above procedure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants