Power outage during re-encryption caused stuck sync

Hi all - I have a problem where the power went out during a re-encryption (to upgrade to newer keys).

(Linux app image, 1.0.195)

Now the sync is stuck, I can still close the main window, etc., but can’t select notes. If I kill Joplin, then hit re-encrypt before the sync starts, it will sync through about 1000 notes, then get stuck. If I just sync without re-encrypting, it just sits stuck on “Updated remote items: 1.”

Here is the end of the log. After this point it just repeats the trying the scheduled sync, and quits that waiting on that last sync that is still in_progress.

Thanks for any ideas on how to get this unstuck!

2020-03-27 15:56:26: “put 49f81c9d9b5a41889a98b774aa840ed0.md”, “null”
2020-03-27 15:56:28: “stat 1cda090cc4a2663152a16d25b62b4b25.md”
2020-03-27 15:56:28: “get 1cda090cc4a2663152a16d25b62b4b25.md”
2020-03-27 15:56:28: "Sync: updateRemote: local has changes: Resource: (Local 1cda090cc4a2663152a16d25b62b4b25): (Remote 1cda090cc4a2663152a16d25b62b4b25.md)"
2020-03-27 15:58:12: “RevisionService::maintenance: Starting…”
2020-03-27 15:58:12: “RevisionService::maintenance: Service is enabled”
2020-03-27 15:58:12: “Running background sync on timer…”
2020-03-27 15:58:12: “Scheduling sync operation…”, “0”
2020-03-27 15:58:12: “Preparing scheduled sync”
2020-03-27 15:58:12: “Starting scheduled sync”
2020-03-27 15:58:12: “Synchronisation is already in progress. State: in_progress”

I ended up deleting the .config/joplin and joplin-desktop folders and re-syncing, so this fixed it.

1 Like