Thanks so much for the quick fix!
Confirmed now working on iPad Pro M1. Thank you!
I'm still having issues unfortunately. I also deleted the app from my iPhone and it seems to get stuck when re-syncing my notes.
Not working completely for me, either. I have an iphone and an ipad. On start, both devices eventually reported "fetched items 41/xxx" where xxx is different on each device. Aside from being a prime, not sure what else is significant about 41...
They sync process was long enough on my phone that the screen turned off; I think that would have interrupted the sync process. On my ipad, I set the screen to never turn off and let it run. It eventually failed with the message
05-07T23:08:27: Synchronizer: "On file ef11ecbdfa7f4c59bd7da7c8927cf9b0.md: Sync target lock error: syncLockGone. Original error was: POST files/list_folder: Error (429): {"error_summary": "too_many_requests/", "error": {"reason": {".tag": "too_many_requests"}, "retry_after": 300}}"
I force quit Joplin, and tried to sync on ipad again. Now, it hits 41, sits, and fails with message below, or just crashes.
05-07T23:23:14: Synchronizer: "Could not refresh lock - cancelling sync. Error was:", "Error: Lock has expired
Code: lockExpired
Error: Lock has expired
Full log attached. ipad/iphone 17.4.1.
mobile-log-ipad-rerun.log (89.0 KB)
I'm still having issues unfortunately.
Not working completely for me, either.
I've re-opened the GitHub issue and have proposed a change to the original workaround.
Locally, I haven't experienced the "Lock has expired" error, but am currently testing the updated workaround by syncing roughly 2000 notes (I may experience the lock error during this sync).
Thank you for the additional information.
See also:
- A workaround for an older sync-lock-related issue (may be helpful as a temporary workaround for the "sync lock" issue)
- GitHub issue for the iOS/Android Dropbox sync issue
- Upstream Dropbox forum discussion
- GitHub issue that proposes removing sync locks
For what it's worth, I'm no longer having the issue but I'm still on version 12.14.6!
I updated to 12.14.7, but I still have a problem syncing with Dropbox on my iPhone. Since I removed my application and reinstalled it, I lost all the data on the phone. Prior to the update, the sync would fetch nothing. Now it fetches a few notes, but no notebooks are shown. This is really unfortunate.
Try to start the synchronisation, and leave your phone on for as long as you can (overnight for example) and make sure it doesn't go in standby since it might take a very long time.
Probably it hasn't downloaded the notebook objects yet which is why you're not seeing any notes yet. Maybe if you click on "All notes" you'll see some of them
I did that, but the phone got very hot and crashed after around 10-15 minutes. When I reopened the app, I had: Completed: 08/05/2024 14:13 (6s) Last error: Error: Cannot acquire sync lock: either the lock could be written but not read back. Or it was expired before it was read again.
I did that, but the phone got very hot and crashed after around 10-15 minutes. When I reopened the app, I had: Completed: 08/05/2024 14:13 (6s) Last error: Error: Cannot acquire sync lock: either the lock could be written but not read back. Or it was expired before it was read again.
Thank you for letting us know!
Version 2.14.8 should now be released with a fix for Dropbox sync performance issues on large note collections (relevant pull request).
If the sync lock error persists, this workaround may help. (Also, please let us know if the sync lock error still happens!)
I updated on both ipad+iphone, and they both completed syncing. The logs had a lot of "retry" messages like
file-api-driver-dropbox: "Request to files/download failed. Retrying with workaround. Error: ", "Error: GET files/download: Error (409): {"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}
I compared "sync status" with my computer as a quick check, and they both seem to have completed correctly. Yay! Thank you, very much!
Having said that, it looks suspicious. I updated and synced my iphone and tablet one at a time, and both stalled at fetching 53 items (another prime). I pulled the logs and counted the number of fetches in a row ("Sync: fetchingProcessed: Processing fetched item") and retries in a row ("Retrying with workaround").
Both syncs had a pattern of fetching ~40 items, retrying 10, and fetching ~10 items to hit 53 fetched items. This is followed by ~160 retries, and a series of 1-3 fetches and retries. At the very end is ~100 fetches in a row to complete the sync. It all feels like throttling or some kind of resource constraint.
Either way, syncing workaround works; thanks again.
Had this error, update fixed it. Thanks.
It’s definitely working for me now, but extremely slowly. I’ve been letting it do its thing, but it’s crashed 3 times and gets stuck fetching items in between syncing notes. My best guess for why it’s really slow/ crashing is because my phone is quite an old model (iPhone 11).
Edit: okay I’ve been staring at the scroll wheel for probably around 2.5 hours and I gotta call it quits for today! It’s randomly stuck at “fetched items 144/500” for around 20 minutes until it cancels itself. I appreciate you all working on this, I hope my comments aren't coming across in any way negative!
This pull request might help.
Thank you! I’ll look into this tomorrow.
Thank you to all who have worked on the fix. I am getting rapid syncs with ios, mac and windows. All are using the most recent updates as of this afternoon. I had to re-upload local data to sync target on the windows install, it seemed normal speed for a few thousand notes (not many have attachments).
Guys, thank you so much for your effort. Unfortunately, I still have a problem with the latest version "2.14.8". I tried the workaround suggested by @personalizedrefriger for "sync lock", but it didn't help.
Let me explain in more detail:
My Archive:
- I have around 900 notes and approximately 100 images in resources, totaling about 2MB.
- The notes in Markdown, along with their "front matter," amount to a bit more than 3MB.
- Some of my notes are RTL.
On Windows:
- I have no problem with the Windows client; it syncs smoothly.
On iOS:
- I have deleted the app several times and reinstalled it, with both versions 2.14.7 and 2.14.8.
- When I try to sync, it downloads the same 32 notes with no notebooks.
- For example, it says it has created 993 (or 995) items locally on the iPhone, but I don't know what that amounts to because I still get the same 32 notes every time.
- It usually halts at 1110/1499 or 110/499 fetched items, though when it's finished after 10 to 20 minutes, sometimes it says it had fetched 1111 or 111 items.
- Now I either get the "sync lock error" or this new one:
file-api-driver-dropbox: "Request to files/download failed. Retrying with workaround. Error: ", "Error: GET files/download: Error (409): {"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}
I have moved to OneDrive, problem eliminated.
I am having a similar sync problem, just on one device. Sync works fine on Mac (Monterey 12.6.9 on Mac Mini) and iPad Air 2 (iOS 15.8.2). I am using Dropbox.
The problem is my new iPhone 13 (iOS 17.4.1) using Joplin 12.14.8. I am still trying to create a complete initial sync.
When I sync, it seems to happen at “normal” speed, but doesn’t load all notes or create all notebooks. My full database has about 1300 notes in 15 notebooks. One notebook has 11 sub-notebooks. In the iPhone, I have only 8 notebooks, no subnotebooks (and ?? notes – a lot but not all, and many of them belong in notebooks that have not yet been downloaded by Joplin).
Stats shown after the iPhone completes a sync:
Created local items: 70.
Fetched items: 4153/4500.
Completed: 10/05/2024
23:12 (1092s)
I have tried uninstalling and reinstalling Joplin (including reauthorizing my Dropbox file as the sync target). I have made many sync attempts. No joy.
Sync configuration:
Synchronisation target – Dropbox
Synchronisation interval – 12 hours (I have also tried a sync with 5 minutes as the interval)
Sync only over Wifi – On (I am on Wifi, and I set my phone to never sleep and kept the Joplin window in front)
Encryption is disabled
Attachment download – always
Max concurrent connections – 5
Proxy – disabled
Fail-safe – On
Other suggestions? I am tech-literate but not a coder, appreciate replies in layperson language!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.