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

Had to reauth and all notes are missing my content #50

Open
thorms11 opened this issue Feb 15, 2023 · 11 comments
Open

Had to reauth and all notes are missing my content #50

thorms11 opened this issue Feb 15, 2023 · 11 comments

Comments

@thorms11
Copy link

I received an alert that I needed to setup Matter for Obsidian. When I did, I had to scan my QR code again. My entire Master folder sync’s, replacing all my old files with new ones.

My custom syntax is changed and my inline changes to metadata are all missing. How do I fix this?

This is a really big bug for me.

@hunterclarke
Copy link
Collaborator

Hey @thorms11 that does sound like a bad experience. The only way to have that kind of data loss would be by deleting or breaking the data.json file in the plugin folder. Did you reinstall the plugin or otherwise rearrange the plugin data file?

@thorms11
Copy link
Author

I did not delete that file or reinstall the plugin.

I just suddenly received an alert to log in to matter. When I did all my notes resync'd with the wrong syntax. I then dun in deeper to see that all my highlights were wrong.

If I have a backup of my vault, could I manually reconstruct my old system? Maybe my reading the data.json file? Or is there more to it?

@hunterclarke
Copy link
Collaborator

hunterclarke commented Feb 16, 2023

@thorms11 it's possible there was a filesystem failure that caused the default data file to replace your current setup. If you have a backup of the data.json file and the Matter folder, that would be the shortest path to replacing your data. I'm going to look into mitigating this failure today.

As background: we use an Obsidian managed method of loading and storing your data. If the Obsidian API fails to read the file, it'll return nothing. That can cause our plugin to think it's just been installed. I'm hopeful I can prevent this from happening again, but there's only so much I can do from the plugin sandbox.

Edit: background information.

@thorms11
Copy link
Author

Thanks @hunterclarke!

So simply delete the json file and matter folder, then relaunch obsidian. any new notes will auto sync, right?

Should my custom syntax also be restored?

@hunterclarke
Copy link
Collaborator

hunterclarke commented Feb 16, 2023

Here's how I would do it:

  1. Quit Obsidian
  2. Replace plugins/obsidian-matter/data.json and any of the new incorrect notes with backup versions via your filesystem
  3. Open Obsidian

If the Matter plugin still seems broken after you do that, let me know.

@thorms11
Copy link
Author

So, do not add my backup of the Matter folder?

@hunterclarke
Copy link
Collaborator

@thorms11 that would work!

@hunterclarke
Copy link
Collaborator

To clarify:

You'll want to replace both the matter plugin folder and the matter highlights folder with backups. That will restore your notes as well as the plugin configuration.

@thorms11
Copy link
Author

This seems like it fixed the issue. Thanks @hunterclarke!

@hunterclarke
Copy link
Collaborator

That's great news! If you don't mind I'm going to leave this open as a reminder to mitigate the effects of the error. Let me know if you have any other questions!

@thorms11
Copy link
Author

Not a problem! Let me know if I can help at all.

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