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

Cannot synchronize with filesystem: No such master key #6978

Closed
piotrek-k opened this issue Oct 30, 2022 · 7 comments
Closed

Cannot synchronize with filesystem: No such master key #6978

piotrek-k opened this issue Oct 30, 2022 · 7 comments
Labels
bug It's a bug desktop All desktop platforms high High priority issues

Comments

@piotrek-k
Copy link

piotrek-k commented Oct 30, 2022

tl;dr: My existing notes cannot be synchronized from Filesystem sync target

Hello,

I'm setting up a new Joplin instance. I want to import my existing notes. Here is an error that I see after specifying path to my notes:

image

Completed: 30/10/2022 14:59 (148ms)
Last error: Error: No such master key: fd68c0bcbfc14a0e80b677316e1bb8e1

There is also an error in console in Dev tools:

Logger.ts:219 14:59:45: Synchronizer: Error: No such master key: fd68c0bcbfc14a0e80b677316e1bb8e1
    at setMasterKeyHasBeenUsed (node_modules/@joplin/lib/services/synchronizer/syncInfoUtils.js:300)
    at Synchronizer.<anonymous> (node_modules/@joplin/lib/Synchronizer.js:434)
    at Generator.next (<anonymous>)
    at fulfilled (node_modules/@joplin/lib/Synchronizer.js:5)

My notes are not encrypted. Isn't term "master key" connected to encryption feature? Might it be that Joplin tries to decrypt my notes?

Environment

Joplin version: 2.8.8 (prod, linux, flatpak)
Platform: Linux desktop
OS specifics: Ubuntu 22.04

Steps to reproduce

  1. Install Joplin
  2. Set sync to Filesystem sync, provide path
  3. Click "Synchronize"

Logfile

joplin_logs.txt

@piotrek-k piotrek-k added the bug It's a bug label Oct 30, 2022
@laurent22
Copy link
Owner

They have never been encrypted?

@laurent22 laurent22 added desktop All desktop platforms high High priority issues labels Oct 30, 2022
@piotrek-k
Copy link
Author

Might be that I've tried this option a few months ago, but since then I've worked on unencrypted notes. I can see right now that all my notes on filesystem are plain text

@wh201906
Copy link
Contributor

This problem might be similar to this one
https://discourse.joplinapp.org/t/error-no-such-master-key-new-install-on-ipad/27308

@laurent22
Copy link
Owner

Yes, probably. You can delete the "activeMasterKeyId" block in info.json to solve the issue. I don't quite understand how there can be a key ID there when there's no master key, but I'll add a fix to better handle this anyway.

@wh201906
Copy link
Contributor

Is it necessary to backup the sync target directory first then modify the info.json?

@laurent22
Copy link
Owner

No, it's relatively safe to modify info.json. Just to be sure, you might want to keep a copy of the original info.json

@piotrek-k
Copy link
Author

piotrek-k commented Oct 31, 2022

Thank you, deleting "activeMasterKeyId" solved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues
Projects
None yet
Development

No branches or pull requests

3 participants