Never ending synchro

Hello

I have been using Joplin for over a year without any issues.
I have 4 instances: 1 desktop computer , 2 laptops and 1 Android phone.
All these devices are synchronized by Webdav.
All the computers run version 2.8.8

Since a few days, synchronization has not been done on computers (desktop and laptops).
The Android smartphone has no problem but all the computers are perpetually in sync and nothing is synchronized

here is the desktop log . The "in progress" repeats every 5 minutes and never ends
Capture d’écran 2022-10-05 124627

2022-10-05 12:12:55: checkForUpdates: "Starting..."
2022-10-05 12:12:55: checkForUpdates: "Checking with options {"includePreReleases":false}"
2022-10-05 12:12:55: checkForUpdates: "Current version: 2.8.8"
2022-10-05 12:12:55: checkForUpdates: "Latest version: 2.8.8"
2022-10-05 12:12:55: checkForUpdates: "Is Pre-release:", "false"
2022-10-05 12:12:55: checkForUpdates: "Done."
2022-10-05 12:13:00: "SearchEngine: Updating FTS table..."
2022-10-05 12:13:00: "SearchEngine: Updated FTS table in 1ms. Inserted: 0. Deleted: 0"
2022-10-05 12:13:20: "ResourceService::indexNoteResources: Start"
2022-10-05 12:13:20: "ResourceService::indexNoteResources: Completed"
2022-10-05 12:13:20: "ResourceService::deleteOrphanResources:", "[]"
2022-10-05 12:17:50: "Running background sync on timer..."
2022-10-05 12:17:50: "Preparing scheduled sync"
2022-10-05 12:17:50: "Starting scheduled sync"
2022-10-05 12:17:50: "Synchronisation is already in progress. State: in_progress"
2022-10-05 12:20:24: RepositoryApi: "findWorkingMirror: Using: https://raw.githubusercontent.com/joplin/plugins/master"
2022-10-05 12:22:50: "Running background sync on timer..."
2022-10-05 12:22:50: "Preparing scheduled sync"
2022-10-05 12:22:50: "Starting scheduled sync"
2022-10-05 12:22:50: "Synchronisation is already in progress. State: in_progress"
2022-10-05 12:22:50: RevisionService: "maintenance: Starting..."
2022-10-05 12:22:50: RevisionService: "maintenance: Service is enabled"
2022-10-05 12:22:50: RevisionService: "collectRevisions: Created revisions for 0 notes"
2022-10-05 12:22:50: RevisionService: "maintenance: Done in 115ms"
2022-10-05 12:27:50: "Running background sync on timer..."
2022-10-05 12:27:50: "Preparing scheduled sync"
2022-10-05 12:27:50: "Starting scheduled sync"
2022-10-05 12:27:50: "Synchronisation is already in progress. State: in_progress"
2022-10-05 12:32:50: "Running background sync on timer..."
2022-10-05 12:32:50: "Preparing scheduled sync"
2022-10-05 12:32:50: "Starting scheduled sync"
2022-10-05 12:32:50: "Synchronisation is already in progress. State: in_progress"
2022-10-05 12:32:50: RevisionService: "maintenance: Starting..."
2022-10-05 12:32:50: RevisionService: "maintenance: Service is enabled"
2022-10-05 12:32:50: RevisionService: "collectRevisions: Created revisions for 0 notes"
2022-10-05 12:32:50: RevisionService: "maintenance: Done in 114ms"

Another symptom:
if I go to "Tools>options>Synchronization"
and I click on "Check Synchronization configuration" , the test never ends

On one of the laptops, I tried completely uninstalling the app and deleting the old profile.
I reinstalled, there was only the default demo data, I entered the Webdav settings and clicked on "Check Synchronization configuration". The test was OK instantly.
As soon as the sync started, the same problems came back

Do you have an idea of ​​the problem ?
Thank you

(This text is half mine, half Google Translate, sorry if it's not perfect)

What are you using as a WebDAV server (Apache, Nextcloud, something else)?

Hello

I use KDrive
As far as I know, they runs their own software but some sources says it's based on Nextcloud

I have had the same sync settings since march 2020
Everything was fine

I just switched the sync settings to Dropbox.
I synced my Android first, then reset all PCs by doing "Delete local data and redownload from sync target".
Everything seems to be working perfectly now

I did this because I need to find a quick fix for syncing my computers but I'd rather find a way to get back to Kdrive

1 Like

Hello assam
do you have any news on that topic?
I do have the very same issue and I am also synchronizing over kDrive.

Regards,
schrubi64

Hi,

I have the same issue. In the configuration the check configuration button says it work.
Then it started to send files, in the log I can see :

2022-10-14 21:24:01: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Note: (Local 12cd15ae38fa47f782f1dd0f78904f44)"
2022-10-14 21:24:02: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Note: (Local 287f8a540d6142c38b8b580edad9da03)"
2022-10-14 21:24:03: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Note: (Local eb2ac70e109c462294821c51fb00e127)"
2022-10-14 21:24:03: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Note: (Local 4d183de0fbfa42d789b48035ca054e99)"
2022-10-14 21:24:03: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Note: (Local 5c3f999112884d00be3b9a848d85d40a)"
2022-10-14 21:24:04: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Folder: (Local 556204ca12124a7cb301549ee36c6a92)"
2022-10-14 21:24:05: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Resource: (Local 63c8ced6e5544eb6869ce7c3832c05ee)"
2022-10-14 21:24:05: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Resource: (Local c154d506afd941919e219f2981ab5b24)"
2022-10-14 21:24:06: Synchronizer: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Resource: (Local 986a48e05e4440ae8d475722f68346e4)"

With the iOS app, same problem. Except that in this case I finally got an error telling : "No 'Authorization: Basic' header found. Either the client didn't send one, or the server is missconfigured"

I'm sure my credentials are correct I already successfully used them with another tool (Obsidian)

Regards,

Julien

I have the same error!
My Android syncs perfectly. But my Linux Laptop only sends the notes and don't receive them.

It's quite annoying that after going through much of the online documentation of Kdrive, I cannot even ascertain what kind of technology they are using and thus hampering any assistance that anyone outside of their own development team can offer.

Endless synchronization: I have the same problem with on computers (MacOS and Linux) and on iPhone. The credentials are correct. The Android devices seem to be working fine.
The good part is that the kDrive folder is updated - the new notes are uploaded, which is good!!! This makes me think the problem is on the client syncing side.

Did anyone try "Delete local data and redownload from sync target" on computers or iPhone?

But, isn't WebDav something standard ?

To check if the URL I specified is correct I tried to open it in a browser. After it asked me for the credential I got this error : "Sabre\DAV\Exception\NotImplemented There was no plugin in the system that was willing to handle this GET method. Enable the Browser plugin to get a better result here."

Could this explain why Joplin manage to send the data, but not retrieve them ?

Julien

WebDAV is a standard (RFC 4918) but I bet kdrive's implementation is something else entirely.

I think the problem is that webdav is such a complicated standard that no server fully implements it, or takes some liberty on how it's implemented.

That's why we have many hacks to support various popular implementations and their glitches but we can't support everything.

In some cases you can get things working by tweaking the server configuration.

1 Like

But why it works on Android but not on Desktop and IPhone? The WebDav implemention on KDrive should be broken on all devices?

I opened a ticket with the Infomaniak support to try to solve this problem.

If Joplin can't get a response from kDrive, why does it go in this infinite sync loop ? Would it be possible to display any error coming from kDrive ? I'm still in contact with the Infomaniak support and it would be useful to have more information

Julien

Yeah, this is exactly my same situation.

Infomaniak was not able to find what could cause the problem. Having more information on what occurs on Joplin side would be useful.
They also told me that the Joplin developers can directly contact Infomaniak.

Regards,

Julien

Hey!

Thank you for asking Infomaniak and thank you Joplin Devs! I dont know how made it, but the sync is now working fine again after the new Update!

Thank you a lot!

Just wanted to say that I got the synchronization on a loop as well after upgrading on Desktop. Downgrading wasn't helping. Switching to prerelease didn't help.

What did the trick was:

  • Synching on Android while syncing on Desktop
  • This stopped the sync on Desktop and afterwards everything was syncing peachfully :peach:
1 Like

For your information

1 Like