desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Synchronization blip

Open supermensa opened this issue 3 years ago • 23 comments

I experience this a lot, even though I'm on fast networks (goes for both desktop app and mobile):

When creating or updating a file, the app temporarily fails to synchronize and then creates a duplicate version [Conflicted Copy] of said file that differs from the one synchronized. Sometimes this happens as I'm in the middle of writing a sentence. It seems incredibly fast to create duplicate a file that differs from the non synchronized version in a matter of seconds. Is it possible to either delay this a little or make this a variable that you could tweak in settings? Sometimes I spend a lot of file deleting this uneccessary duplicate versions.

supermensa avatar Mar 03 '21 09:03 supermensa

Hi @supermensa,

I'm sorry to hear that. We haven't heard of any similar issues lately, especially since releasing v3.5 of our apps which included several significant underlying changes that helped prevent issues like this. Can you let us know what versions of the desktop and mobile apps you're currently using and what operating systems you're using them on? Are you self-hosting by any chance?

My current understanding is this: by simply typing too fast while writing inside a note, and on only one device at a time, the app generates a conflicted copy at some point. Is that correct?

JaspalSuri avatar Mar 03 '21 11:03 JaspalSuri

I don't think it is the speed of writing that causes it, but the conflicted copy is created in the middle of writing a word. Sometimes 1 or 2 copies are created in a matter of seconds.

VERSIONS AND PLATFORMS OS X desktop version is 3.6.0. IOS version is 3.5.15 (41).

supermensa avatar Mar 03 '21 14:03 supermensa

Console output:

app.js:2
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at xt.stateChangeHandlerForRequest (app.js:2)
    at XMLHttpRequest.e.onreadystatechange (app.js:2)
   
sync.standardnotes.org/items/sync:1
Failed to load resource: net::ERR_NETWORK_CHANGED

supermensa avatar Mar 04 '21 09:03 supermensa

Failed to load resource: net::ERR_NETWORK_CHANGED

Thank you for taking the time to share that! Are you using a VPN or experiencing any issues with your network by any chance? That's generally what causes the app to create conflicted notes.

JaspalSuri avatar Mar 04 '21 16:03 JaspalSuri

No, not using a VPN or experiencing network problems. I don't know how the app is programmed, but I would think that in the event of the app failing to reach a network, it would seem beneficial to delay the conflicted copy locally. I.e. Changes made in a matter of 1-2 minutes would not be considered critical in most use cases, in the case that the network fails.

supermensa avatar Mar 04 '21 20:03 supermensa

I can confirm that error persists with version 3.6.1, OS X.

supermensa avatar Mar 05 '21 11:03 supermensa

@supermensa, thank you for letting me know. If you'd like, please email [email protected] or [email protected] with your notes syncing account's username and a link to this thread so that way we can see if the server logs (for when notes were synced) can provide any useful insights or if there are any fixes that can be applied to your account.

JaspalSuri avatar Mar 06 '21 12:03 JaspalSuri

Hi @supermensa, I just wanted to let you know that the dev team is currently looking into what the best solution would be for handling this issue. Devising a fix will take some time, but I just wanted to let you know that this issue is on their radar.

I also had another question pertaining to your network - do you use a DNS resolution service (such as OpenDNS, Google's DNS, or CloudFlare's WARP)?

JaspalSuri avatar Mar 09 '21 14:03 JaspalSuri

No, no dns resolution services.

supermensa avatar Mar 09 '21 16:03 supermensa

Thank you for letting us know.

JaspalSuri avatar Mar 10 '21 18:03 JaspalSuri

Latest version 3.6.8. Console errors: standard-notes-sync

supermensa avatar May 08 '21 07:05 supermensa

Hi @supermensa, the dev team attempted to address this issue that you are experiencing here, but I'm sorry to hear that it hasn't resolved the issue yet.

Can you try creating a new account, sign into it on the desktop/web and mobile apps, and let us know if the issue exists in that account so that way we know that the issue isn't account specific? Does your existing account offer the ability to upgrade the encryption of your account via the desktop app?

JaspalSuri avatar May 08 '21 10:05 JaspalSuri

  1. Yes, I'll try that and report back.
  2. No, I can't see anywhere that it does. I'm using a free account.

supermensa avatar May 08 '21 14:05 supermensa

  • It's hard to reproduce unless I sit and type for hours, but I have a suspicion that the amount of encrypted notes might also be a part? (I have close to 300 notes in the app at the moment).

supermensa avatar May 08 '21 14:05 supermensa

Hi @supermensa, I apologize for the delayed response as the notification for updates to this thread slipped past me.

Thank you for taking the time to try that! The upgrade is free, so it would have appeared if your account was created several months ago.

It's hard to reproduce unless I sit and type for hours, but I have a suspicion that the amount of encrypted notes might also be a part? (I have close to 300 notes in the app at the moment).

I see, I thought the app was generating several conflicted copies as your were typing out the note. Thank you for providing those additional details. We'll try to reproduce the issue and keep an eye out for similar reports! 🙂

JaspalSuri avatar May 17 '21 11:05 JaspalSuri

Sorry, let me make myself clear: The app IS generating several conflicting versions when typing - in desktop AND mobile app. IF this is account specific, I suspect that it is more likely that you experience the error if you have 200-300 notes as opposed to a more normal low amount of notes (i.e. the notes size may affect the synchronization, is what I suppose…)

supermensa avatar May 17 '21 15:05 supermensa

Hi @supermensa, I apologize for misunderstanding. Were you able to reproduce the issue on a new account? I'll check in with the dev team on this again.

JaspalSuri avatar May 19 '21 09:05 JaspalSuri

No, I wasn’t able to reproduce in the 5 minutes I tried. Could be a number of things, but again: to properly reproduce I think the amount of notes would make a difference. If nothing else, I think the sync is a bit too effective in trying to sync files whilst writing a sentence.

supermensa avatar May 19 '21 14:05 supermensa

Thank you for letting me know. We'll continue investigating.

JaspalSuri avatar May 20 '21 11:05 JaspalSuri

Are there any updates on this issue? I get [Conflicted Copy] all the time when typing in a note, especially when I'm connected to a VPN. It happens on all editor/note types, including plain text.

VERSIONS AND PLATFORMS OS X desktop version is 3.20.0.

vtwang avatar May 30 '22 15:05 vtwang

@vtwang Yes, same here - still happens for me. A real pain, especially mid-sentence diffs. Glad to hear I'm not the only one, though.

supermensa avatar May 30 '22 16:05 supermensa

Thank you for all the hard work and resolving the issue! Unfortunately I seem to be having sync issues again. I started to get [Conflicted Copy] as of 2 days ago.

vtwang avatar Jun 11 '22 17:06 vtwang