Error: Cannot acquire exclusive lock because the following clients have a sync lock on the target: (2 #3abec15d85f8435b9e0bafe12766306b)

Joplin tries to prevent multiple clients (e.g. both a Desktop app and an iOS app) from writing to Dropbox at the same time by creating files in the Dropbox/Apps/Joplin/locks directory -- while these files are present (and also perhaps depending on the contents of these files) only one client can sync.

Here's what the locks directory in DropBox might look like:

If a client closes unexpectedly during a sync, it's possible for a lock file to persist after a sync (though the client that created the file should remove it on successful startup). As such, if you're certain that no client is currently trying to sync:

  1. Start each client and try to sync
    • Hopefully the client that created the file will finish syncing and delete the lock file.
  2. On failure, close all Joplin clients and delete the file in the locks directory. Re-open one of the clients and try to sync.
    • This might be necessary if the client that created the lock file has been reset or uninstalled. (Or if Joplin has a sync-related bug).