New iphone; installed Joplin, successfully connected to sync server (pressed 'Check Sync config' and got a 'Success'! message) but only a few notes have copied over. Now when I press sync it almost immediately tells me that it was completed but no further items are added. All of the files are present on Joplin on my Mac (version 2.12.19). I have 'fail-safe' ticked on the phone. Any suggestions please? Thanks!
As a follow-up, a message pops up at the top on the phone - 'Press to set the decription password'. I haven't done so. Could it be something to do with this?
If you enabled end-to-end encryption in the desktop app, notes are encrypted before being uploaded to Joplin Cloud. Entering the password originally used to enable end-to-end encryption should allow Joplin to decrypt the notes.
I deleted and re-installed Joplin on the iphone and successfully set up the sync again. When I clicked sync it synced the exact same items as before - 418 notes in two notebooks. Frustrating!
Ok, so I made a jex backup of the data, did a clean install of Joplin on Mac (deleted the folder in .config) and reloaded the jex backup, then synced everything to Joplin Cloud. All seemed to go well and over 2000 items were uploaded to the cloud. There is no encryption. So far so good.
I had deleted Joplin from the iPhone so I re-installed, set up and ran the sync, frustratingly with the same result - 561 local items created (as opposed to over 2000 on the Mac. Encryption is also turned off for the iPhone.
I'd really appreciate some help with this as I'm now out of ideas. Thanks
If the above doesn't help, you might also try the beta version of Joplin on iOS — it's possible that the sync issues are related to a bug that has been fixed in the beta version. (The beta version may have new bugs/regressions though).
The beta version also allows sharing logs, which might be helpful in debugging this issue.
I haven't managed to reproduce this yet, but some users have reported problems with syncing notebooks that have certain Emojis in their titles (issue). Could this be related?
I deleted the emojis on the Mac and synced again. Progress! This time all the files synced to the phone but now all in one flat list (no sorting into notebooks). This is an improvement but obviously far from ideal. Thanks again.
From the testing I've done so far, it seems related to initial sync — notebooks with emojis that existed before doing an the first sync don't sync at all. Notebooks imported after an initial sync seem to sync as expected (even if I export a notebook that wasn't syncing correctly, then re-import it).
This is just based on a few minutes of testing, though! (I only had one notebook with emojis before the initial sync).
I'm able to reproduce this with the latest Android build though, so I don't think the TestFlight release will help. (At least not until the issue is fixed, which will hopefully be soon!)
This might help:
Do an initial sync on iOS (get it to a state where things aren't working correctly, but it says everything is synced)
On the Mac, export one of the notebooks that isn't syncing as JEX
Re-import the notebook on the Mac (so there's two copies).
Sync again
The imported copy of the notebook might sync (see issue comment).
Edit: From the Mac, the following may help:
disabling note history (settings > note history), then
going to "Syncrhonization" > "Advanced" > clicking "Re-upload local data", and finally
reinstalling the iOS app
This will take a long time, so I don't currently recommend it.
Exported a notebook as JEX and re-imported. Synced again, no change.
Disabled note history, clicked "Re-upload local data" and re-synced, reinstalled iOS app. Back to syncing about 500 again! Should I try disabling Note History in iOS as well? (EDIT - tried that - didn't work, although it did download about 900 notes???)
I don't know if this is related but there was an issue in Joplin Cloud which means it wouldn't sync all notes right away, and you'd have to click Synchronise again to get all the changes. This is now fixed so it might be worth giving it another try
Hi Laurent - I have synchronised several/many times with no change in the result. Something I just discovered that may be relevant. Although I have deleted and reinstalled Joplin on my phone, when I go to Settings/Encryption Config I see that encryption is: disabled and master password: loaded (as it is on the Mac) there are 3 encryption 'Master keys' saved which I seem unable to delete. Could these be the cause of the problem and if so how can I get rid of them? Thanks for your patience!
It shouldn't be related to the master keys (though enabling encryption could be another thing to try!).
Master keys are used for end-to-end encryption. If they're disabled, they shouldn't be used to encrypt notes.
If you're using the TestFlight version of Joplin, you have the option to share a log. To do this, go to Configuration > Tools > Logs > three dots at the upper right corner > share.
Alternatively, you could try a different sync target (e.g. Dropbox or OneDrive). If sync works with a different sync target, this tells us that this is likely a bug in Joplin Cloud. If not, it's likely a bug in Joplin Desktop or Joplin Mobile. (Dropbox and OneDrive sync will be much slower than sync with Joplin Cloud).