MAC: Joplin Synchronise Issues

OS: Mac Catalina 10.15.7
App: Joplin for Desktop 1.3.18
Synchronisation Method: OneDrive

Hi Team,

I recently upgraded Joplin to 1.3.18 (Monday 9th Nov)

Joplin 1.3.18 (prod, darwin)

Client ID: 9baf2adb755641da8e2d8d1d055f37e0
Sync Version: 2
Profile Version: 34
Keychain Supported: Yes

Revision: 6b75485 (master)

Once upgraded I started getting the following error message:

"Last error: Error: The provided drive id appears to be malformed, or does not represent a valid drive."

Joplin was Syncing correctly from Joplin to OneDrive without any issues up until this point.

I also have Joplin on my iOS device and that is still syncing without issues.

I have tried to remove/rename/uninstall Joplin and re-install without luck, I have also revoked the App Auth in OneDrive and still can get the desktop version to Sync again.

Anyone else experience this issue on Mac?

Thanks Team

This is a very intersting error. As far as I can see this kind of error has never been reported before. I don't think that it has anything to do with the upgrade as there hasn't been any changes to onedrive in 1.3.18. Can you provide the log file? And are you using an Onedrive Business or a Personal Account?

Hey Johnny,

Thats for the fast response.

I created a personal OneDrive Account for Joplin and only using the free 5GB.

I am also debugging to see if I can find cause of issue.

Thanks Johnny

Regards
Joseph

I created a personal OneDrive Account for Joplin and only using the free 5GB

Ok, but do you also have a Business Account (or school account which is basically the same)? I am asking this because it currently can happen unfortunately very easily that you accidentally login to the wrong account. This would explain why you get this error only on one device and not on another device.

I googled this error and could only find one similar issue / solution. In this case the error accord because of a permission issue with a Business account. However this was reported 4 years ago for a now deprecated api. So I am not sure if this is still up to date. Maybe also this could help even though I don't really understand what they are saying at the moment.

Thank Johnny,

I saw that article last night also and tried solution without luck.

But to answer your question yes I do have a business account for work that I checked and made sure that I was disconnected from (including clearing cache) and continued to test without luck.

I am still trying to work through the logs and find a solution also.

Thanks Johnny

Regards
Joseph

Also just to confirm that renaming /usr/local/Caskroom/joplin to somethingelse will be enough to reset the .config to get the application to setup a new connection?

Also just to confirm that renaming /usr/local/Caskroom/joplin to somethingelse will be enough to reset the .config to get the application to setup a new connection?

I am not a MacOS user but in Linux the configuration files are saved to: ~/.config/joplin-desktop and I think it is the same on MacOS.

So if I were you I would do the following:

  1. Make a backup by export your notes as .jex file in the desktop app (File--> Export all -->JEX)
  2. Delete Joplin on IOS and clear all App Data.
  3. Delete the joplin folder from your OneDrive Account
  4. Check that you are not loged in to your OneDrive Business Account by visiting https://login.microsoftonline.com in your default browser. I recently found out that is not enough to check that you are not logged in to onedrive.com with you Business Account. Because it is actually possible to be logged in on https://login.microsoftonline.com and onedrive.com with different Accounts. You obviously would think that it is important to log out of onedrive.com but this is not the case. You must make sure that either the microsoft log-in dialog is shown when you visit https://login.microsoftonline.com or it is shown the office.com landing page of your personal and not of your Business Microsoft account.
  5. Delete the config folder from joplin ~/.config/joplin-desktop
  6. Restart joplin. Import your .jex file (File--> Import -->JEX) and select onedrive as sync target

Let me know if it helps. If not there is most likely a bug in joplin which I would like to fix in that case.