Homepage    |    GitHub    |    API    |    Wiki    |    FAQ

Error on synchronize to Android filesystem due to lock

Hello everyone!
I am trying to synchronize Joplin to filesystem so I can sync it with SyncThing. I create a folder in my file manager and specify the path in Joplin, but when I press "Synchronize" it gives me the following error: (written out so that others can search this in the future, either via Google or on this forum)
Last error: Error: Error: Operation not permitted. Path: /storage/emulated/0/Joplin/locks/exclusive_mobile_5fc55aebc4b14bb1afb1c1efe00d17b.json

If I inspect the directory using my file manager, there are only two empty folders; locks/ and temp/.

I am running Samsung S20 Android 11, Joplin 1.4.11, and have granted Storage permission to Joplin when it asked for it. Also have tried reinstalling the app multiple times.

Does anyone know how I can fix or further debug this issue?

Thanks a lot for the help, and for the great work on the app!

hello
I have the same error here
My phone is Pixel 3 with Android 12, Joplin 2.6.3 / 2.6.1, synchronized with Syncthing
but Joplin 2.4.3 has no such issue
does anyone know how to fix this bug? Thanks :slight_smile:
the debug report is below:
Date,Level,Message
11-24T22:07:23,30,"""DecryptionWorker: cannot start because no master key is currently loaded.""
11-24T22:07:22,20,"Synchronizer: ""Error: Error: Operation not permitted. Path: /storage/emulated/0/Sync/Joplin/locks/2_2_5dcd0e673bb9464496079faeaf6eaf87.json
Code: EUNSPECIFIED
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
11-24T22:07:22,30,"Synchronizer: ""Total folders: 1""
11-24T22:07:22,30,"Synchronizer: ""Total notes: 5""
11-24T22:07:22,30,"Synchronizer: ""Total resources: 3""
11-24T22:07:22,20,"Synchronizer: ""There was some errors:""
11-24T22:07:22,30,"Synchronizer: ""Operations completed: ""
11-24T22:07:22,10,"Synchronizer: ""Error: Error: Operation not permitted. Path: /storage/emulated/0/Sync/Joplin/locks/2_2_5dcd0e673bb9464496079faeaf6eaf87.json
Code: EUNSPECIFIED
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
11-24T22:07:22,30,"Synchronizer: ""Sync: finished: Synchronisation finished [1637762842186]""
11-24T22:07:22,30,"""MigrationHandler: Acquiring exclusive lock""
11-24T22:07:22,30,"""MigrationHandler: Sync target version is 0 or 1 - creating "locks" and "temp" directory:", "{"version":0}""
11-24T22:07:22,30,"Synchronizer: ""Sync target remote info:", "{"version_":0,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0},"ppk_":{"value":null,"updatedTime":0}}""
11-24T22:07:22,30,"Synchronizer: ""Sync target is new - setting it up...""
11-24T22:07:22,30,"""ResourceService::indexNoteResources: Completed""
11-24T22:07:22,30,"""DecryptionWorker: cannot start because no master key is currently loaded.""
11-24T22:07:22,30,"""ResourceService::indexNoteResources: Start""
11-24T22:07:22,30,"Synchronizer: ""Indexing resources...""
11-24T22:07:22,30,"Synchronizer: ""Sync: starting: Starting synchronisation to target 2... supportsAccurateTimestamp = false; supportsMultiPut = false [1637762842186]""
11-24T22:07:22,30,"""Starting scheduled sync""
11-24T22:07:22,30,"""Preparing scheduled sync""
11-24T22:07:21,30,"Synchronizer: ""Total folders: 1""
11-24T22:07:21,30,"Synchronizer: ""Total notes: 5""
11-24T22:07:21,30,"Synchronizer: ""Total resources: 3""
11-24T22:07:21,20,"Synchronizer: ""There was some errors:""
11-24T22:07:21,20,"Synchronizer: ""Error: Error: Operation not permitted. Path: /storage/emulated/0/Sync/Joplin/locks/2_2_5dcd0e673bb9464496079faeaf6eaf87.json
Code: EUNSPECIFIED
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
11-24T22:07:21,30,"Synchronizer: ""Operations completed: ""
11-24T22:07:21,10,"Synchronizer: ""Error: Error: Operation not permitted. Path: /storage/emulated/0/Sync/Joplin/locks/2_2_5dcd0e673bb9464496079faeaf6eaf87.json
Code: EUNSPECIFIED
...

I have the exact same issue. Started to happen today, right after I upgraded on Android to 2.6.3 .

I also use Syncthing to synchronize. But the issue is not with Syncthing - I disabled it (ST), restarted the device, and the issue remains.

This is after Joplin+Synchting always worked great for me (on 3 devices) since I started a couple of months ago.

Can anyone help please?

Thanks

There is also a GitHub issue for Version 2.6.3

I see, thanks! Hopefully it's resolved soon.